|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.web.bean.generator.BaseComponentGenerator
org.alfresco.web.bean.generator.HtmlSeparatorGenerator
public class HtmlSeparatorGenerator
Generates a component to represent a separator.
The HTML to be used for the separator is configured via the
setHtml
method.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.alfresco.web.bean.generator.BaseComponentGenerator |
---|
BaseComponentGenerator.ControlType |
Field Summary | |
---|---|
protected java.lang.String |
html
|
Constructor Summary | |
---|---|
HtmlSeparatorGenerator()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String html
Constructor Detail |
---|
public HtmlSeparatorGenerator()
Method Detail |
---|
public 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)
IComponentGenerator
context
- FacesContextid
- Optional id for the newly created component, if null
is passed a unique id is generated
protected javax.faces.component.UIComponent createComponent(javax.faces.context.FacesContext context, UIPropertySheet propertySheet, PropertySheetItem item)
BaseComponentGenerator
createComponent
in class BaseComponentGenerator
context
- FacesContextpropertySheet
- The property sheet being generateditem
- The property or association being generated
protected 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 item
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |