org.alfresco.web.bean.generator
Interface IComponentGenerator

All Known Implementing Classes:
AjaxTagPickerGenerator, AssociationGenerator, BaseComponentGenerator, CategorySelectorGenerator, CharsetSelectorGenerator, CheckboxGenerator, ChildAssociationGenerator, DatePickerGenerator, DateTimePickerGenerator, HeaderSeparatorGenerator, HtmlSeparatorGenerator, LabelGenerator, LabelSeparatorGenerator, LanguageSelectorGenerator, LinkGenerator, MimeTypeSelectorGenerator, MlContainerLanguageSelectorGenerator, MultilingualTextAreaGenerator, MultilingualTextFieldGenerator, SeparatorGenerator, SpaceIconPickerGenerator, TextAreaGenerator, TextFieldGenerator

public interface IComponentGenerator

Interface definition for objects that dynamically generate components.


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.
 

Method Detail

generate

javax.faces.component.UIComponent generate(javax.faces.context.FacesContext context,
                                           java.lang.String id)
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

javax.faces.component.UIComponent generateAndAdd(javax.faces.context.FacesContext context,
                                                 UIPropertySheet propertySheet,
                                                 PropertySheetItem item)
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.

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.