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 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,
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(javax.faces.component.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, setupStringLengthConstraintprotected String html
public String getHtml()
public void setHtml(String html)
html - The HTMLpublic javax.faces.component.UIComponent generate(javax.faces.context.FacesContext context,
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 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–2018 Alfresco Software. All rights reserved.