public class UIPropertySheet extends UIPanel implements NamingContainer
Modifier and Type | Class and Description |
---|---|
static class |
UIPropertySheet.ClientValidation
Inner class representing a validation case that must be enforced.
|
Modifier and Type | Field and Description |
---|---|
static String |
EDIT_MODE |
protected List<UIPropertySheet.ClientValidation> |
validations |
static String |
VIEW_MODE |
COMPONENT_FAMILY, COMPONENT_TYPE
SEPARATOR_CHAR
Constructor and Description |
---|
UIPropertySheet()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addClientValidation(UIPropertySheet.ClientValidation validation)
Adds a validation case to the property sheet
|
void |
encodeBegin(FacesContext context) |
void |
encodeEnd(FacesContext context) |
List<UIPropertySheet.ClientValidation> |
getClientValidations() |
String |
getConfigArea() |
String |
getFamily() |
String |
getFinishButtonId()
Returns the id of the finish button
|
String |
getMode() |
String |
getNextButtonId()
Returns the id of the next button
|
Node |
getNode() |
String |
getVar() |
boolean |
inEditMode()
Determines whether the property sheet is in edit mode
|
boolean |
isReadOnly() |
boolean |
isValidationEnabled() |
protected void |
renderValidationMethod(ResponseWriter out,
UIPropertySheet.ClientValidation validation,
boolean lastMethod,
boolean showMessage) |
protected void |
renderValidationScript(FacesContext context)
Renders the necessary JavaScript to enforce any constraints the properties
have.
|
void |
restoreState(FacesContext context,
Object state) |
Object |
saveState(FacesContext context) |
void |
setConfigArea(String configArea) |
void |
setFinishButtonId(String finishButtonId)
Sets the id of the finish button being used on the page
|
void |
setMode(String mode) |
void |
setNextButtonId(String nextButtonId)
Sets the id of the next button being used on the page
|
void |
setNode(Node node) |
void |
setReadOnly(boolean readOnly) |
void |
setValidationEnabled(boolean validationEnabled) |
void |
setVar(String variable) |
addFacesListener, broadcast, decode, encodeChildren, 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
public static final String VIEW_MODE
public static final String EDIT_MODE
protected List<UIPropertySheet.ClientValidation> validations
public String getFamily()
getFamily
in class UIPanel
UIComponent.getFamily()
public void encodeBegin(FacesContext context) throws IOException
encodeBegin
in class UIComponentBase
IOException
UIComponent.encodeBegin(javax.faces.context.FacesContext)
public void encodeEnd(FacesContext context) throws IOException
encodeEnd
in class UIComponentBase
IOException
UIComponent.encodeBegin(javax.faces.context.FacesContext)
public 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 Node getNode()
public void setNode(Node node)
node
- The nodepublic String getVar()
public void setVar(String variable)
variable
- The variable to set.public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
readOnly
- Sets the read only flag for the property sheetpublic boolean isValidationEnabled()
public void setValidationEnabled(boolean validationEnabled)
validationEnabled
- Sets the validationEnabled flagpublic String getFinishButtonId()
public void setFinishButtonId(String finishButtonId)
finishButtonId
- The id of the finish buttonpublic String getNextButtonId()
public void setNextButtonId(String nextButtonId)
nextButtonId
- The id of the next buttonpublic String getMode()
public void setMode(String mode)
mode
- Sets the modepublic boolean inEditMode()
public String getConfigArea()
public void setConfigArea(String configArea)
configArea
- Sets the config area to usepublic void addClientValidation(UIPropertySheet.ClientValidation validation)
validation
- The validation case to enforcepublic List<UIPropertySheet.ClientValidation> getClientValidations()
protected void renderValidationScript(FacesContext context) throws IOException
context
- FacesContextIOException
protected void renderValidationMethod(ResponseWriter out, UIPropertySheet.ClientValidation validation, boolean lastMethod, boolean showMessage) throws IOException
IOException
Copyright © 2005–2017 Alfresco Software. All rights reserved.