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 String |
html |
dataDictionary
Constructor and Description |
---|
HtmlSeparatorGenerator() |
Modifier and Type | Method and Description |
---|---|
protected UIComponent |
createComponent(FacesContext context,
UIPropertySheet propertySheet,
PropertySheetItem item)
Creates the component for the given proerty sheet item.
|
UIComponent |
generate(FacesContext context,
String id)
Dynamically generates a component in a default state
|
String |
getHtml()
Returns the HTML configured to be used for this separator
|
protected String |
getResolvedHtml(UIComponent component,
PropertySheetItem item)
Returns the resolved HTML to use for the separator.
|
void |
setHtml(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, setupStringLengthConstraint
protected String html
public String getHtml()
public void setHtml(String html)
html
- The HTMLpublic UIComponent generate(FacesContext context, String id)
IComponentGenerator
context
- FacesContextid
- Optional id for the newly created component, if null
is passed a unique id is generatedprotected UIComponent createComponent(FacesContext context, UIPropertySheet propertySheet, PropertySheetItem item)
BaseComponentGenerator
createComponent
in class BaseComponentGenerator
context
- FacesContextpropertySheet
- The property sheet being generateditem
- The property or association being generatedprotected String getResolvedHtml(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–2017 Alfresco Software. All rights reserved.