| Modifier and Type | Class and Description |
|---|---|
| private static class | FaceletFullStateManagementStrategy.FacetNode
Inner class used to store a facet in the saved component tree. |
| private static class | FaceletFullStateManagementStrategy.TreeNode
Inner class used to store a node in the saved component tree. |
| Modifier and Type | Field and Description |
|---|---|
| private Map | classMap
Stores the class map. |
| private boolean | isDevelopmentMode
Are we in development mode. |
| private static final Logger | LOGGER
Stores the logger. |
| private static final String | SKIP_ITERATION_HINT
Stores the skip hint. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | captureChild(List<FaceletFullStateManagementStrategy.
the tree. tree,the parent. parent, UIComponent the component. component)Capture the child. |
| private void | captureFacet(List<FaceletFullStateManagementStrategy.
the tree. tree,the parent. parent, String the facet name. name, UIComponent the component. component)Capture the facet. |
| private void | captureRest(List<FaceletFullStateManagementStrategy.
the tree. tree,the position. pos, UIComponent the component. component)Capture the rest. |
| private int | Returns: the calculated index.the UI component. component)Helper method that determines what the index of the given child component will be taking transient siblings into account. |
| private UIComponent | locateComponentByClientId(final FacesContext
the Faces context. context, final UIComponent subTree, final String the client id of the component to find. clientId)Find the given component in the component tree. |
| private UIComponent | Returns: the UI component.the tree node. treeNodeCreate a new component instance. |
| private void | pruneAndReAddToDynamicActions(List<ComponentStruct>
the dynamic action list. dynamicActionList, ComponentStruct the component struct to add. struct)Methods that takes care of pruning and re-adding an action to the dynamic action list. |
| private void | restoreComponentState(final FacesContext
the Faces context. context, final HashMap<String, Object> the component state. state)Restore the component state. |
| private void | restoreDynamicActions(FacesContext
the Faces context. context, StateContext the state context. stateContext, HashMap<String, Object> the state. state)Restore the list of dynamic actions and replay them. |
| private void | restoreDynamicAdd(FacesContext
the Faces context. context, Map<String, Object> the state. state, ComponentStruct the component struct. struct)Method that takes care of restoring a dynamic add. |
| private void | restoreDynamicRemove(FacesContext
the Faces context. context, ComponentStruct the component struct. struct)Method that takes care of restoring a dynamic remove. |
| private UIViewRoot | Returns: the view root.the Faces context. context, String the render kit id. renderKitId, Object[] the saved tree. tree)Restore the component tree. |
| public UIViewRoot | Returns: the view root.the Faces context. context, String the view id. viewId, String the render kit id. renderKitId)Implements abstract javax. |
| private Object | Returns: the saved state.the Faces context. context)Save the component state. |
| private void | saveDynamicActions(FacesContext
the Faces context. context, StateContext the state context. stateContext, UIViewRoot the state. viewRoot)Save the dynamic actions. |
| public Object | Returns: the saved view.the Faces context. context)Implements abstract javax. |
| classMap | back to summary |
|---|---|
| private Map<String, Class<?>> classMap Stores the class map. | |
| isDevelopmentMode | back to summary |
|---|---|
| private boolean isDevelopmentMode Are we in development mode. | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER Stores the logger. | |
| SKIP_ITERATION_HINT | back to summary |
|---|---|
| private static final String SKIP_ITERATION_HINT Stores the skip hint. | |
| FaceletFullStateManagementStrategy | back to summary |
|---|---|
| public FaceletFullStateManagementStrategy() Constructor. | |
| FaceletFullStateManagementStrategy | back to summary |
|---|---|
| public FaceletFullStateManagementStrategy(FacesContext context) Constructor.
| |
| captureChild | back to summary |
|---|---|
| private void captureChild(List<FaceletFullStateManagementStrategy. Capture the child.
| |
| captureFacet | back to summary |
|---|---|
| private void captureFacet(List<FaceletFullStateManagementStrategy. Capture the facet.
| |
| captureRest | back to summary |
|---|---|
| private void captureRest(List<FaceletFullStateManagementStrategy. Capture the rest.
| |
| getProperChildIndex | back to summary |
|---|---|
| private int getProperChildIndex(UIComponent component) Helper method that determines what the index of the given child component will be taking transient siblings into account.
| |
| locateComponentByClientId | back to summary |
|---|---|
| private UIComponent locateComponentByClientId(final FacesContext context, final UIComponent subTree, final String clientId) Find the given component in the component tree.
| |
| newInstance | back to summary |
|---|---|
| private UIComponent newInstance(FaceletFullStateManagementStrategy. Create a new component instance.
| |
| pruneAndReAddToDynamicActions | back to summary |
|---|---|
| private void pruneAndReAddToDynamicActions(List<ComponentStruct> dynamicActionList, ComponentStruct struct) Methods that takes care of pruning and re-adding an action to the dynamic action list. If you remove a component, re-add it to the same parent and then remove it again, you only have to capture the FIRST remove. Similarly if you add a component, remove it, and then re-add it to the same parent you only need to capture the LAST add.
| |
| restoreComponentState | back to summary |
|---|---|
| private void restoreComponentState(final FacesContext context, final HashMap<String, Object> state) Restore the component state.
| |
| restoreDynamicActions | back to summary |
|---|---|
| private void restoreDynamicActions(FacesContext context, StateContext stateContext, HashMap<String, Object> state) Restore the list of dynamic actions and replay them.
| |
| restoreDynamicAdd | back to summary |
|---|---|
| private void restoreDynamicAdd(FacesContext context, Map<String, Object> state, ComponentStruct struct) Method that takes care of restoring a dynamic add.
| |
| restoreDynamicRemove | back to summary |
|---|---|
| private void restoreDynamicRemove(FacesContext context, ComponentStruct struct) Method that takes care of restoring a dynamic remove.
| |
| restoreTree | back to summary |
|---|---|
| private UIViewRoot restoreTree(FacesContext context, String renderKitId, Object[] tree) throws FacesException Restore the component tree.
| |
| restoreView | back to summary |
|---|---|
| public UIViewRoot restoreView(FacesContext context, String viewId, String renderKitId) Implements abstract javax. Restore the view.
| |
| saveComponentState | back to summary |
|---|---|
| private Object saveComponentState(FacesContext context) Save the component state.
| |
| saveDynamicActions | back to summary |
|---|---|
| private void saveDynamicActions(FacesContext context, StateContext stateContext, UIViewRoot viewRoot) Save the dynamic actions.
| |
| saveView | back to summary |
|---|---|
| public Object saveView(FacesContext context) Implements abstract javax. Save the view.
| |
| Modifier and Type | Field and Description |
|---|---|
| private String | facetName
Stores the facet name. |
| private static final long | serialVersionUID
Hides com. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | FacetNode(int
the parent. parent, String the facet name. name, UIComponent the component. c)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | readExternal(ObjectInput
the object input. in)Overrides com. Implements java. |
| public void | writeExternal(ObjectOutput
the object output. out)Overrides com. Implements java. |
| facetName | back to summary |
|---|---|
| private String facetName Stores the facet name. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. Stores the serial version UID. | |
| FacetNode | back to summary |
|---|---|
| public FacetNode() Constructor. | |
| FacetNode | back to summary |
|---|---|
| public FacetNode(int parent, String name, UIComponent c) Constructor.
| |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException Overrides com. Implements java. Read the facet node in.
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException Overrides com. Implements java. Write the facet node out.
| |
| Modifier and Type | Field and Description |
|---|---|
| private String | componentType
Stores the component type. |
| private String | id
Stores the id. |
| private static final String | NULL_ID
Stores the NULL_ID constant. |
| private int | parent
Stores the parent. |
| private static final long | serialVersionUID
Stores the serial version UID. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public void | readExternal(ObjectInput
the object input. in)Implements java. |
| public void | writeExternal(ObjectOutput
the object output. out)Implements java. |
| componentType | back to summary |
|---|---|
| private String componentType Stores the component type. | |
| id | back to summary |
|---|---|
| private String id Stores the id. | |
| NULL_ID | back to summary |
|---|---|
| private static final String NULL_ID Stores the NULL_ID constant. | |
| parent | back to summary |
|---|---|
| private int parent Stores the parent. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Stores the serial version UID. | |
| TreeNode | back to summary |
|---|---|
| public TreeNode() Constructor. | |
| TreeNode | back to summary |
|---|---|
| public TreeNode(int parent, UIComponent c) Constructor.
| |
| getParent | back to summary |
|---|---|
| public int getParent() | |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException Implements java. Read the tree node in.
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException Implements java. Write the tree node out.
| |