public abstract class PropertySheetItem extends UIPanel implements NamingContainer
Modifier and Type | Field and Description |
---|---|
protected String |
componentGenerator |
protected String |
converter |
protected String |
displayLabel |
protected Boolean |
ignoreIfMissing |
protected String |
name |
protected Boolean |
readOnly |
protected String |
resolvedDisplayLabel |
COMPONENT_FAMILY, COMPONENT_TYPE
SEPARATOR_CHAR
Constructor and Description |
---|
PropertySheetItem() |
Modifier and Type | Method and Description |
---|---|
void |
encodeBegin(FacesContext context) |
protected abstract void |
generateItem(FacesContext context,
UIPropertySheet propSheet)
Generates the label and control for the item
|
protected void |
generateLabel(FacesContext context,
UIPropertySheet propSheet,
String displayLabel)
Generates a JSF OutputText component/renderer
|
String |
getComponentGenerator() |
String |
getConverter() |
String |
getDisplayLabel() |
boolean |
getIgnoreIfMissing() |
protected abstract String |
getIncorrectParentMsg()
Returns the message to use in the exception that is thrown if the component
is not nested inside a PropertySheet component
|
String |
getName() |
String |
getResolvedDisplayLabel()
Returns the resolved display label
|
boolean |
isReadOnly() |
void |
restoreState(FacesContext context,
Object state) |
Object |
saveState(FacesContext context) |
void |
setComponentGenerator(String componentGenerator) |
void |
setConverter(String converter) |
void |
setDisplayLabel(String displayLabel) |
void |
setIgnoreIfMissing(boolean ignoreIfMissing) |
void |
setName(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, setValueBinding
protected String name
protected String displayLabel
protected String converter
protected Boolean readOnly
protected Boolean ignoreIfMissing
protected String componentGenerator
protected String resolvedDisplayLabel
public void encodeBegin(FacesContext context) throws IOException
encodeBegin
in class UIComponentBase
IOException
UIComponentBase.encodeBegin(javax.faces.context.FacesContext)
public String getDisplayLabel()
public void setDisplayLabel(String displayLabel)
displayLabel
- Sets the display labelpublic String getName()
public void setName(String name)
name
- Sets the namepublic String getConverter()
public void setComponentGenerator(String componentGenerator)
componentGenerator
- Sets the component generatorpublic String getComponentGenerator()
public void setConverter(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(FacesContext context, Object state)
restoreState
in interface StateHolder
restoreState
in class UIComponentBase
StateHolder.restoreState(javax.faces.context.FacesContext, java.lang.Object)
public Object saveState(FacesContext context)
saveState
in interface StateHolder
saveState
in class UIComponentBase
StateHolder.saveState(javax.faces.context.FacesContext)
public String getResolvedDisplayLabel()
protected abstract void generateItem(FacesContext context, UIPropertySheet propSheet) throws IOException
context
- FacesContextpropSheet
- The property sheet that the item is a child ofIOException
protected abstract String getIncorrectParentMsg()
protected void generateLabel(FacesContext context, UIPropertySheet propSheet, String displayLabel)
context
- JSF contextpropSheet
- The property sheet that the item is a child ofdisplayLabel
- The display label textCopyright © 2005–2017 Alfresco Software. All rights reserved.