|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.omnifaces.component.EditableValueHolderStateHelper
public final class EditableValueHolderStateHelper
Helper class to save and restore state of an EditableValueHolder
.
Constructor Summary | |
---|---|
EditableValueHolderStateHelper()
|
Method Summary | |
---|---|
static EditableValueHolderStateHelper |
get(javax.faces.component.StateHelper stateHelper,
java.lang.String clientId)
Returns the state helper of the EditableValueHolder child associated with the given client ID. |
void |
restore(javax.faces.component.EditableValueHolder holder)
Restore the state of the given EditableValueHolder . |
static void |
restore(javax.faces.context.FacesContext context,
javax.faces.component.StateHelper stateHelper,
java.util.Iterator<javax.faces.component.UIComponent> children)
Restore state of any EditableValueHolder children. |
void |
save(javax.faces.component.EditableValueHolder holder)
Save the state of the given EditableValueHolder . |
static void |
save(javax.faces.context.FacesContext context,
javax.faces.component.StateHelper stateHelper,
java.util.Iterator<javax.faces.component.UIComponent> children)
Save state of any EditableValueHolder children. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EditableValueHolderStateHelper()
Method Detail |
---|
public void save(javax.faces.component.EditableValueHolder holder)
EditableValueHolder
.
holder
- The EditableValueHolder
to save the state for.public void restore(javax.faces.component.EditableValueHolder holder)
EditableValueHolder
.
holder
- The EditableValueHolder
to restore the state for.public static void save(javax.faces.context.FacesContext context, javax.faces.component.StateHelper stateHelper, java.util.Iterator<javax.faces.component.UIComponent> children)
EditableValueHolder
children.
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()
.public static void restore(javax.faces.context.FacesContext context, javax.faces.component.StateHelper stateHelper, java.util.Iterator<javax.faces.component.UIComponent> children)
EditableValueHolder
children.
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()
.public static EditableValueHolderStateHelper get(javax.faces.component.StateHelper stateHelper, java.lang.String clientId)
EditableValueHolder
child associated with the given client ID.
stateHelper
- The state helper of the parent component.clientId
- The client ID of the EditableValueHolder
child to return the state helper for.
EditableValueHolder
child associated with the given client ID.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |