public abstract class PropertySheetItem
extends javax.faces.component.UIPanel
implements javax.faces.component.NamingContainer
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
componentGenerator |
protected java.lang.String |
converter |
protected java.lang.String |
displayLabel |
protected java.lang.Boolean |
ignoreIfMissing |
protected java.lang.String |
name |
protected java.lang.Boolean |
readOnly |
protected java.lang.String |
resolvedDisplayLabel |
| Constructor and Description |
|---|
PropertySheetItem() |
| Modifier and Type | Method and Description |
|---|---|
void |
encodeBegin(javax.faces.context.FacesContext context) |
protected abstract void |
generateItem(javax.faces.context.FacesContext context,
UIPropertySheet propSheet)
Generates the label and control for the item
|
protected void |
generateLabel(javax.faces.context.FacesContext context,
UIPropertySheet propSheet,
java.lang.String displayLabel)
Generates a JSF OutputText component/renderer
|
java.lang.String |
getComponentGenerator() |
java.lang.String |
getConverter() |
java.lang.String |
getDisplayLabel() |
boolean |
getIgnoreIfMissing() |
protected abstract java.lang.String |
getIncorrectParentMsg()
Returns the message to use in the exception that is thrown if the component
is not nested inside a PropertySheet component
|
java.lang.String |
getName() |
java.lang.String |
getResolvedDisplayLabel()
Returns the resolved display label
|
boolean |
isReadOnly() |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state) |
java.lang.Object |
saveState(javax.faces.context.FacesContext context) |
void |
setComponentGenerator(java.lang.String componentGenerator) |
void |
setConverter(java.lang.String converter) |
void |
setDisplayLabel(java.lang.String displayLabel) |
void |
setIgnoreIfMissing(boolean ignoreIfMissing) |
void |
setName(java.lang.String name) |
void |
setReadOnly(boolean readOnly) |
addFacesListener, broadcast, decode, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBindingprotected java.lang.String name
protected java.lang.String displayLabel
protected java.lang.String converter
protected java.lang.Boolean readOnly
protected java.lang.Boolean ignoreIfMissing
protected java.lang.String componentGenerator
protected java.lang.String resolvedDisplayLabel
public void encodeBegin(javax.faces.context.FacesContext context)
throws java.io.IOException
encodeBegin in class javax.faces.component.UIComponentBasejava.io.IOExceptionUIComponentBase.encodeBegin(javax.faces.context.FacesContext)public java.lang.String getDisplayLabel()
public void setDisplayLabel(java.lang.String displayLabel)
displayLabel - Sets the display labelpublic java.lang.String getName()
public void setName(java.lang.String name)
name - Sets the namepublic java.lang.String getConverter()
public void setComponentGenerator(java.lang.String componentGenerator)
componentGenerator - Sets the component generatorpublic java.lang.String getComponentGenerator()
public void setConverter(java.lang.String converter)
converter - Sets the converterpublic boolean isReadOnly()
public void setReadOnly(boolean readOnly)
readOnly - Sets the read only flag for the componentpublic boolean getIgnoreIfMissing()
public void setIgnoreIfMissing(boolean ignoreIfMissing)
ignoreIfMissing - Sets the whether the item will be ignored
if it can not be foundpublic void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.UIComponentBaseStateHolder.restoreState(javax.faces.context.FacesContext, java.lang.Object)public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class javax.faces.component.UIComponentBaseStateHolder.saveState(javax.faces.context.FacesContext)public java.lang.String getResolvedDisplayLabel()
protected abstract void generateItem(javax.faces.context.FacesContext context,
UIPropertySheet propSheet)
throws java.io.IOException
context - FacesContextpropSheet - The property sheet that the item is a child ofjava.io.IOExceptionprotected abstract java.lang.String getIncorrectParentMsg()
protected void generateLabel(javax.faces.context.FacesContext context,
UIPropertySheet propSheet,
java.lang.String displayLabel)
context - JSF contextpropSheet - The property sheet that the item is a child ofdisplayLabel - The display label textCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.