public class CategorySelectorGenerator extends BaseComponentGenerator
BaseComponentGenerator.ControlType| Constructor and Description |
|---|
CategorySelectorGenerator() |
| Modifier and Type | Method and Description |
|---|---|
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 BaseComponentGenerator.ControlType |
getControlType()
Returns the type of the control 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)
Sets up a client mandatory validation rule with the property
sheet for the given item.
|
addStringConstraintParam, createAndSetConverter, createOutputTextComponent, generateAndAdd, getAssociationDefinition, getPropertyDefinition, isEnabledInEditMode, setupAssociation, setupConstraints, setupConverter, setupConverter, setupMandatoryAssociationIfNecessary, setupMandatoryMarker, setupMandatoryPropertyIfNecessary, setupMultiValuePropertyIfNecessary, setupNumericRangeConstraint, setupProperty, setupRegexConstraint, setupStringLengthConstraintpublic javax.faces.component.UIComponent generate(javax.faces.context.FacesContext context,
java.lang.String id)
IComponentGeneratorcontext - FacesContextid - Optional id for the newly created component, if null
is passed a unique id is generatedprotected javax.faces.component.UIComponent createComponent(javax.faces.context.FacesContext context,
UIPropertySheet propertySheet,
PropertySheetItem item)
BaseComponentGeneratorcreateComponent in class BaseComponentGeneratorcontext - FacesContextpropertySheet - The property sheet being generateditem - The property or association being generatedprotected void setupMandatoryValidation(javax.faces.context.FacesContext context,
UIPropertySheet propertySheet,
PropertySheetItem item,
javax.faces.component.UIComponent component,
boolean realTimeChecking,
java.lang.String idSuffix)
BaseComponentGeneratorsetupMandatoryValidation 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 idprotected BaseComponentGenerator.ControlType getControlType()
BaseComponentGeneratorgetControlType in class BaseComponentGeneratorCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.