org.alfresco.web.bean.generator
Class ChildAssociationGenerator
java.lang.Object
org.alfresco.web.bean.generator.BaseComponentGenerator
org.alfresco.web.bean.generator.ChildAssociationGenerator
- All Implemented Interfaces:
- IComponentGenerator
public class ChildAssociationGenerator
- extends BaseComponentGenerator
Generates a component to manage child associations.
Method Summary |
javax.faces.component.UIComponent |
generate(javax.faces.context.FacesContext context,
java.lang.String id)
Dynamically generates a component in a default state |
java.lang.String |
getAvailableOptionsSize()
|
void |
setAvailableOptionsSize(java.lang.String optionsSize)
|
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 org.alfresco.web.bean.generator.BaseComponentGenerator |
addStringConstraintParam, createAndSetConverter, createComponent, createOutputTextComponent, generateAndAdd, getAssociationDefinition, getControlType, getPropertyDefinition, isEnabledInEditMode, setupAssociation, setupConstraints, setupConverter, setupConverter, setupMandatoryAssociationIfNecessary, setupMandatoryMarker, setupMandatoryPropertyIfNecessary, setupMultiValuePropertyIfNecessary, setupNumericRangeConstraint, setupProperty, setupRegexConstraint, setupStringLengthConstraint |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
optionsSize
protected java.lang.String optionsSize
ChildAssociationGenerator
public ChildAssociationGenerator()
getAvailableOptionsSize
public java.lang.String getAvailableOptionsSize()
setAvailableOptionsSize
public void setAvailableOptionsSize(java.lang.String optionsSize)
generate
public javax.faces.component.UIComponent generate(javax.faces.context.FacesContext context,
java.lang.String id)
- Description copied from interface:
IComponentGenerator
- Dynamically generates a component in a default state
- Parameters:
context
- FacesContextid
- Optional id for the newly created component, if null
is passed a unique id is generated
- Returns:
- The component instance
setupMandatoryValidation
protected void setupMandatoryValidation(javax.faces.context.FacesContext context,
UIPropertySheet propertySheet,
PropertySheetItem item,
javax.faces.component.UIComponent component,
boolean realTimeChecking,
java.lang.String idSuffix)
- Description copied from class:
BaseComponentGenerator
- Sets up a client mandatory validation rule with the property
sheet for the given item.
- Overrides:
setupMandatoryValidation
in class BaseComponentGenerator
- Parameters:
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 id
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.