|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.web.bean.generator.BaseComponentGenerator
org.alfresco.web.bean.generator.TextFieldGenerator
public class TextFieldGenerator
Generates a text field component.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.alfresco.web.bean.generator.BaseComponentGenerator |
|---|
BaseComponentGenerator.ControlType |
| Constructor Summary | |
|---|---|
TextFieldGenerator()
|
|
| Method Summary | |
|---|---|
protected javax.faces.component.UIComponent |
createComponent(javax.faces.context.FacesContext context,
UIPropertySheet propertySheet,
PropertySheetItem item)
Creates the component for the given proerty sheet item. |
javax.faces.component.UIComponent |
generate(javax.faces.context.FacesContext context,
java.lang.String id)
Dynamically generates a component in a default state |
protected org.alfresco.repo.dictionary.constraint.ListOfValuesConstraint |
getListOfValuesConstraint(javax.faces.context.FacesContext context,
UIPropertySheet propertySheet,
PropertySheetItem item)
Retrieves the list of values constraint for the item, if it has one |
int |
getMaxLength()
|
int |
getSize()
|
void |
setMaxLength(int maxLength)
|
void |
setSize(int size)
|
protected void |
setupConstraints(javax.faces.context.FacesContext context,
UIPropertySheet propertySheet,
PropertySheetItem property,
org.alfresco.service.cmr.dictionary.PropertyDefinition propertyDef,
javax.faces.component.UIComponent component)
Sets up client validation rules for any constraints the property has. |
protected void |
setupConverter(javax.faces.context.FacesContext context,
UIPropertySheet propertySheet,
PropertySheetItem property,
org.alfresco.service.cmr.dictionary.PropertyDefinition propertyDef,
javax.faces.component.UIComponent component)
Sets up the appropriate converter for the given property |
protected void |
setupMandatoryValidation(javax.faces.context.FacesContext context,
UIPropertySheet propertySheet,
PropertySheetItem item,
javax.faces.component.UIComponent component,
boolean realTimeChecking,
java.lang.String idSuffix)
Sets up a client mandatory validation rule with the property sheet for the given item. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextFieldGenerator()
| Method Detail |
|---|
public int getSize()
public void setSize(int size)
size - Sets the size of a text fieldpublic int getMaxLength()
public void setMaxLength(int maxLength)
maxLength - Sets the max length of the text field
public javax.faces.component.UIComponent generate(javax.faces.context.FacesContext context,
java.lang.String id)
IComponentGenerator
context - FacesContextid - Optional id for the newly created component, if null
is passed a unique id is generated
protected javax.faces.component.UIComponent createComponent(javax.faces.context.FacesContext context,
UIPropertySheet propertySheet,
PropertySheetItem item)
BaseComponentGenerator
createComponent in class BaseComponentGeneratorcontext - FacesContextpropertySheet - The property sheet being generateditem - The property or association being generated
protected void setupMandatoryValidation(javax.faces.context.FacesContext context,
UIPropertySheet propertySheet,
PropertySheetItem item,
javax.faces.component.UIComponent component,
boolean realTimeChecking,
java.lang.String idSuffix)
BaseComponentGenerator
setupMandatoryValidation in class BaseComponentGeneratorcontext - FacesContextpropertySheet - The property sheet to add the validation rule toitem - The item being generatedcomponent - The component representing the itemrealTimeChecking - true to make the client validate as the user typesidSuffix - An optional suffix to add to the client id
protected void setupConstraints(javax.faces.context.FacesContext context,
UIPropertySheet propertySheet,
PropertySheetItem property,
org.alfresco.service.cmr.dictionary.PropertyDefinition propertyDef,
javax.faces.component.UIComponent component)
BaseComponentGenerator
setupConstraints in class BaseComponentGeneratorcontext - FacesContext
propertySheet The property sheet being generatedproperty - The property being generatedpropertyDef - The data dictionary definition of the propertycomponent - The component representing the property
protected org.alfresco.repo.dictionary.constraint.ListOfValuesConstraint getListOfValuesConstraint(javax.faces.context.FacesContext context,
UIPropertySheet propertySheet,
PropertySheetItem item)
context - FacesContextpropertySheet - The property sheet being generateditem - The item being generated
protected void setupConverter(javax.faces.context.FacesContext context,
UIPropertySheet propertySheet,
PropertySheetItem property,
org.alfresco.service.cmr.dictionary.PropertyDefinition propertyDef,
javax.faces.component.UIComponent component)
BaseComponentGenerator
setupConverter in class BaseComponentGeneratorcontext - FacesContextpropertySheet - The property sheet being generatedproperty - The property being generatedpropertyDef - The data dictionary definition of the propertycomponent - The component representing the property
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||