public class HtmlSeparatorGenerator extends BaseComponentGenerator
The HTML to be used for the separator is configured via the
setHtml method.
BaseComponentGenerator.ControlType| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
html |
| Constructor and Description |
|---|
HtmlSeparatorGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.faces.component.UIComponent |
createComponent(javax.faces.context.FacesContext context,
UIPropertySheet propertySheet,
PropertySheetItem item)
Creates the component for the given proerty sheet item.
|
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 |
getHtml()
Returns the HTML configured to be used for this separator
|
protected java.lang.String |
getResolvedHtml(javax.faces.component.UIComponent component,
PropertySheetItem item)
Returns the resolved HTML to use for the separator.
|
void |
setHtml(java.lang.String html)
Sets the HTML to display for the separator
|
addStringConstraintParam, createAndSetConverter, createOutputTextComponent, generateAndAdd, getAssociationDefinition, getControlType, getPropertyDefinition, isEnabledInEditMode, setupAssociation, setupConstraints, setupConverter, setupConverter, setupMandatoryAssociationIfNecessary, setupMandatoryMarker, setupMandatoryPropertyIfNecessary, setupMandatoryValidation, setupMultiValuePropertyIfNecessary, setupNumericRangeConstraint, setupProperty, setupRegexConstraint, setupStringLengthConstraintpublic java.lang.String getHtml()
public void setHtml(java.lang.String html)
html - The HTMLpublic javax.faces.component.UIComponent generate(javax.faces.context.FacesContext context,
java.lang.String id)
IComponentGeneratorcontext - FacesContextid - Optional id for the newly created component, if null
is passed a unique id is generatedprotected javax.faces.component.UIComponent createComponent(javax.faces.context.FacesContext context,
UIPropertySheet propertySheet,
PropertySheetItem item)
BaseComponentGeneratorcreateComponent in class BaseComponentGeneratorcontext - FacesContextpropertySheet - The property sheet being generateditem - The property or association being generatedprotected java.lang.String getResolvedHtml(javax.faces.component.UIComponent component,
PropertySheetItem item)
In the default case we just return the HTML set via setHtml however subclasses may choose to generate the resulting HTML using a combination of the HTML set via setHtml and the given PropertySheetItem.
component - The JSF component representing the separatoritem - The separator itemCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.