- java.lang.Object
- 
- org.omnifaces.component.EditableValueHolderStateHelper
 
- 
 public final class EditableValueHolderStateHelper extends Object Helper class to save and restore state of anEditableValueHolder.- Author:
- Bauke Scholtz.
 
- 
- 
Constructor SummaryConstructors Constructor Description EditableValueHolderStateHelper()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EditableValueHolderStateHelperget(StateHelper stateHelper, String clientId)Returns the state helper of theEditableValueHolderchild associated with the given client ID.voidrestore(EditableValueHolder holder)Restore the state of the givenEditableValueHolder.static voidrestore(FacesContext context, StateHelper stateHelper, Iterator<UIComponent> children)Restore state of anyEditableValueHolderchildren.voidsave(EditableValueHolder holder)Save the state of the givenEditableValueHolder.static voidsave(FacesContext context, StateHelper stateHelper, Iterator<UIComponent> children)Save state of anyEditableValueHolderchildren.
 
- 
- 
- 
Method Detail- 
savepublic void save(EditableValueHolder holder) Save the state of the givenEditableValueHolder.- Parameters:
- holder- The- EditableValueHolderto save the state for.
 
 - 
restorepublic void restore(EditableValueHolder holder) Restore the state of the givenEditableValueHolder.- Parameters:
- holder- The- EditableValueHolderto restore the state for.
 
 - 
savepublic static void save(FacesContext context, StateHelper stateHelper, Iterator<UIComponent> children) Save state of anyEditableValueHolderchildren.- Parameters:
- context- The faces context to work with.
- stateHelper- The state helper of the parent component.
- children- An iterator with all child facets and components of the parent component as obtained by- UIComponentBase.getFacetsAndChildren().
 
 - 
restorepublic static void restore(FacesContext context, StateHelper stateHelper, Iterator<UIComponent> children) Restore state of anyEditableValueHolderchildren.- Parameters:
- context- The faces context to work with.
- stateHelper- The state helper of the parent component.
- children- An iterator with all child facets and components of the parent component as obtained by- UIComponentBase.getFacetsAndChildren().
 
 - 
getpublic static EditableValueHolderStateHelper get(StateHelper stateHelper, String clientId) Returns the state helper of theEditableValueHolderchild associated with the given client ID.- Parameters:
- stateHelper- The state helper of the parent component.
- clientId- The client ID of the- EditableValueHolderchild to return the state helper for.
- Returns:
- The state helper of the EditableValueHolderchild associated with the given client ID.
 
 
- 
 
-