public class AssociationGenerator extends BaseComponentGenerator
BaseComponentGenerator.ControlType
Modifier and Type | Field and Description |
---|---|
protected String |
optionsSize |
dataDictionary
Constructor and Description |
---|
AssociationGenerator() |
Modifier and Type | Method and Description |
---|---|
UIComponent |
generate(FacesContext context,
String id)
Dynamically generates a component in a default state
|
String |
getAvailableOptionsSize() |
void |
setAvailableOptionsSize(String optionsSize) |
protected void |
setupMandatoryValidation(FacesContext context,
UIPropertySheet propertySheet,
PropertySheetItem item,
UIComponent component,
boolean realTimeChecking,
String idSuffix)
Sets up a client mandatory validation rule with the property
sheet for the given item.
|
addStringConstraintParam, createAndSetConverter, createComponent, createOutputTextComponent, generateAndAdd, getAssociationDefinition, getControlType, getPropertyDefinition, isEnabledInEditMode, setupAssociation, setupConstraints, setupConverter, setupConverter, setupMandatoryAssociationIfNecessary, setupMandatoryMarker, setupMandatoryPropertyIfNecessary, setupMultiValuePropertyIfNecessary, setupNumericRangeConstraint, setupProperty, setupRegexConstraint, setupStringLengthConstraint
protected String optionsSize
public String getAvailableOptionsSize()
public void setAvailableOptionsSize(String optionsSize)
public UIComponent generate(FacesContext context, String id)
IComponentGenerator
context
- FacesContextid
- Optional id for the newly created component, if null
is passed a unique id is generatedprotected void setupMandatoryValidation(FacesContext context, UIPropertySheet propertySheet, PropertySheetItem item, UIComponent component, boolean realTimeChecking, String idSuffix)
BaseComponentGenerator
setupMandatoryValidation
in class BaseComponentGenerator
context
- 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 idCopyright © 2005–2017 Alfresco Software. All rights reserved.