public interface IComponentGenerator
Modifier and Type | Method and Description |
---|---|
UIComponent |
generate(FacesContext context,
String id)
Dynamically generates a component in a default state
|
UIComponent |
generateAndAdd(FacesContext context,
UIPropertySheet propertySheet,
PropertySheetItem item)
Dynamically generates a component for the given property sheet item.
|
boolean |
isEnabledInEditMode(FacesContext context,
UIComponent control,
org.alfresco.service.cmr.dictionary.PropertyDefinition propDef)
Determines whether the component will be enabled when rendered.
|
UIComponent generate(FacesContext context, String id)
context
- FacesContextid
- Optional id for the newly created component, if null
is passed a unique id is generatedUIComponent generateAndAdd(FacesContext context, UIPropertySheet propertySheet, PropertySheetItem item)
context
- FacesContextpropertySheet
- The property sheet componentitem
- The wrappper component representing the item to generate,
either a property, association or child associationboolean isEnabledInEditMode(FacesContext context, UIComponent control, org.alfresco.service.cmr.dictionary.PropertyDefinition propDef)
context
- FacesContextcontrol
- The control being renderedpropDef
- The definition of the propertyCopyright © 2005–2017 Alfresco Software. All rights reserved.