org.alfresco.web.bean.generator
Class LabelGenerator

java.lang.Object
  extended by org.alfresco.web.bean.generator.BaseComponentGenerator
      extended by org.alfresco.web.bean.generator.LabelGenerator
All Implemented Interfaces:
IComponentGenerator

public class LabelGenerator
extends BaseComponentGenerator

Generates a text field component to represent a label.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.alfresco.web.bean.generator.BaseComponentGenerator
BaseComponentGenerator.ControlType
 
Constructor Summary
LabelGenerator()
           
 
Method Summary
 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.
 
Methods inherited from class org.alfresco.web.bean.generator.BaseComponentGenerator
addStringConstraintParam, createAndSetConverter, createComponent, createOutputTextComponent, getAssociationDefinition, getControlType, getPropertyDefinition, isEnabledInEditMode, setupAssociation, setupConstraints, setupConverter, setupConverter, setupMandatoryAssociationIfNecessary, setupMandatoryMarker, setupMandatoryPropertyIfNecessary, setupMandatoryValidation, setupMultiValuePropertyIfNecessary, setupNumericRangeConstraint, setupProperty, setupRegexConstraint, setupStringLengthConstraint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelGenerator

public LabelGenerator()
Method Detail

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 - FacesContext
id - Optional id for the newly created component, if null is passed a unique id is generated
Returns:
The component instance

generateAndAdd

public javax.faces.component.UIComponent generateAndAdd(javax.faces.context.FacesContext context,
                                                        UIPropertySheet propertySheet,
                                                        PropertySheetItem item)
Description copied from interface: IComponentGenerator
Dynamically generates a component for the given property sheet item. The generated component is also setup appropriately for it's model definition and added to the given property sheet.

Specified by:
generateAndAdd in interface IComponentGenerator
Overrides:
generateAndAdd in class BaseComponentGenerator
Parameters:
context - FacesContext
propertySheet - The property sheet component
item - The wrappper component representing the item to generate, either a property, association or child association
Returns:
The component instance


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.