public abstract class PropertySheetItem
extends javax.faces.component.UIPanel
implements javax.faces.component.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 |
| 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,
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(javax.faces.context.FacesContext context,
Object state) |
Object |
saveState(javax.faces.context.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, setValueBindingprotected String name
protected String displayLabel
protected String converter
protected Boolean readOnly
protected Boolean ignoreIfMissing
protected String componentGenerator
protected String resolvedDisplayLabel
public void encodeBegin(javax.faces.context.FacesContext context)
throws IOException
encodeBegin in class javax.faces.component.UIComponentBaseIOExceptionUIComponentBase.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(javax.faces.context.FacesContext context,
Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.UIComponentBaseStateHolder.restoreState(javax.faces.context.FacesContext, java.lang.Object)public 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 String getResolvedDisplayLabel()
protected abstract void generateItem(javax.faces.context.FacesContext context,
UIPropertySheet propSheet)
throws IOException
context - FacesContextpropSheet - The property sheet that the item is a child ofIOExceptionprotected abstract String getIncorrectParentMsg()
protected void generateLabel(javax.faces.context.FacesContext context,
UIPropertySheet propSheet,
String displayLabel)
context - JSF contextpropSheet - The property sheet that the item is a child ofdisplayLabel - The display label textCopyright © 2005–2018 Alfresco Software. All rights reserved.