public class LabelGenerator extends BaseComponentGenerator
BaseComponentGenerator.ControlType
Constructor and Description |
---|
LabelGenerator() |
Modifier and Type | Method and Description |
---|---|
javax.faces.component.UIComponent |
generate(javax.faces.context.FacesContext context,
java.lang.String id)
Dynamically generates a component in a default state
|
javax.faces.component.UIComponent |
generateAndAdd(javax.faces.context.FacesContext context,
UIPropertySheet propertySheet,
PropertySheetItem item)
Dynamically generates a component for the given property sheet item.
|
addStringConstraintParam, createAndSetConverter, createComponent, createOutputTextComponent, getAssociationDefinition, getControlType, getPropertyDefinition, isEnabledInEditMode, setupAssociation, setupConstraints, setupConverter, setupConverter, setupMandatoryAssociationIfNecessary, setupMandatoryMarker, setupMandatoryPropertyIfNecessary, setupMandatoryValidation, setupMultiValuePropertyIfNecessary, setupNumericRangeConstraint, setupProperty, setupRegexConstraint, setupStringLengthConstraint
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 generatedpublic javax.faces.component.UIComponent generateAndAdd(javax.faces.context.FacesContext context, UIPropertySheet propertySheet, PropertySheetItem item)
IComponentGenerator
generateAndAdd
in interface IComponentGenerator
generateAndAdd
in class BaseComponentGenerator
context
- FacesContextpropertySheet
- The property sheet componentitem
- The wrappper component representing the item to generate,
either a property, association or child associationCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.