org.alfresco.web.bean.generator
Class LabelSeparatorGenerator

java.lang.Object
  extended by org.alfresco.web.bean.generator.BaseComponentGenerator
      extended by org.alfresco.web.bean.generator.HtmlSeparatorGenerator
          extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.alfresco.web.bean.generator.BaseComponentGenerator
BaseComponentGenerator.ControlType
 
Field Summary
protected  java.lang.String style
           
protected  java.lang.String styleClass
           
 
Fields inherited from class org.alfresco.web.bean.generator.HtmlSeparatorGenerator
html
 
Constructor Summary
LabelSeparatorGenerator()
           
 
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.HtmlSeparatorGenerator
createComponent, generate, getHtml, setHtml
 
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
 

Field Detail

style

protected java.lang.String style

styleClass

protected java.lang.String styleClass
Constructor Detail

LabelSeparatorGenerator

public LabelSeparatorGenerator()
Method Detail

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 separator
item - The separator item
Returns:
The resolved HTML


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.