org.alfresco.web.bean.generator
Class LabelSeparatorGenerator
java.lang.Object
org.alfresco.web.bean.generator.BaseComponentGenerator
org.alfresco.web.bean.generator.HtmlSeparatorGenerator
org.alfresco.web.bean.generator.LabelSeparatorGenerator
- All Implemented Interfaces:
- IComponentGenerator
public class LabelSeparatorGenerator
- extends HtmlSeparatorGenerator
Generates a component to represent a separator that uses the
property sheet display label configuration. The CSS class used
for the HTML representing the label can also be configured via
the setStyleClass
method.
Field Summary |
protected java.lang.String |
style
|
protected java.lang.String |
styleClass
|
Method Summary |
protected java.lang.String |
getResolvedHtml(javax.faces.component.UIComponent component,
PropertySheetItem item)
Returns the resolved HTML to use for the separator. |
java.lang.String |
getStyle()
Returns the CSS style configured to be used for this separator |
java.lang.String |
getStyleClass()
Returns the CSS class configured to be used for this separator |
void |
setStyle(java.lang.String style)
Sets the CSS style to use for the separator |
void |
setStyleClass(java.lang.String styleClass)
Sets the CSS class to use for the separator |
Methods inherited from class org.alfresco.web.bean.generator.BaseComponentGenerator |
addStringConstraintParam, createAndSetConverter, createOutputTextComponent, generateAndAdd, getAssociationDefinition, getControlType, getPropertyDefinition, isEnabledInEditMode, setupAssociation, setupConstraints, setupConverter, setupConverter, setupMandatoryAssociationIfNecessary, setupMandatoryMarker, setupMandatoryPropertyIfNecessary, setupMandatoryValidation, setupMultiValuePropertyIfNecessary, setupNumericRangeConstraint, setupProperty, setupRegexConstraint, setupStringLengthConstraint |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
style
protected java.lang.String style
styleClass
protected java.lang.String styleClass
LabelSeparatorGenerator
public LabelSeparatorGenerator()
getStyleClass
public java.lang.String getStyleClass()
- Returns the CSS class configured to be used for this separator
- Returns:
- The CSS class
setStyleClass
public void setStyleClass(java.lang.String styleClass)
- Sets the CSS class to use for the separator
- Parameters:
styleClass
- The CSS class
getStyle
public java.lang.String getStyle()
- Returns the CSS style configured to be used for this separator
- Returns:
- The CSS style
setStyle
public void setStyle(java.lang.String style)
- Sets the CSS style to use for the separator
- Parameters:
style
- The CSS style
getResolvedHtml
protected java.lang.String getResolvedHtml(javax.faces.component.UIComponent component,
PropertySheetItem item)
- Description copied from class:
HtmlSeparatorGenerator
- Returns the resolved HTML to use for the separator.
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.
- Overrides:
getResolvedHtml
in class HtmlSeparatorGenerator
- Parameters:
component
- The JSF component representing the separatoritem
- The separator item
- Returns:
- The resolved HTML
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.