public class JspStateManagementStrategy
extends javax.faces.view.StateManagementStrategy
Modifier and Type | Class and Description |
---|---|
private static class |
JspStateManagementStrategy.FacetNode
Inner class used to store a facet in the saved component tree.
|
private static class |
JspStateManagementStrategy.TreeNode
Inner class used to store a node in the saved component tree.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.lang.Class<?>> |
classMap
Stores the class map.
|
private boolean |
isDevelopmentMode
Are we in development mode.
|
private static java.util.logging.Logger |
LOGGER
Stores the logger.
|
Constructor and Description |
---|
JspStateManagementStrategy()
Constructor.
|
JspStateManagementStrategy(javax.faces.context.FacesContext context)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
captureChild(java.util.List<JspStateManagementStrategy.TreeNode> tree,
int parent,
javax.faces.component.UIComponent c)
Capture the child.
|
private void |
captureFacet(java.util.List<JspStateManagementStrategy.TreeNode> tree,
int parent,
java.lang.String name,
javax.faces.component.UIComponent c)
Capture the facet.
|
private void |
captureRest(java.util.List<JspStateManagementStrategy.TreeNode> tree,
int pos,
javax.faces.component.UIComponent c)
Capture the rest.
|
private javax.faces.component.UIComponent |
newInstance(JspStateManagementStrategy.TreeNode n)
Create a new component instance.
|
private javax.faces.component.UIViewRoot |
restoreTree(javax.faces.context.FacesContext context,
java.lang.String renderKitId,
java.lang.Object[] tree)
Restore the component tree.
|
javax.faces.component.UIViewRoot |
restoreView(javax.faces.context.FacesContext context,
java.lang.String viewId,
java.lang.String renderKitId)
Restore the view.
|
java.lang.Object |
saveView(javax.faces.context.FacesContext context)
Save the view.
|
private static final java.util.logging.Logger LOGGER
private java.util.Map<java.lang.String,java.lang.Class<?>> classMap
private boolean isDevelopmentMode
public JspStateManagementStrategy()
public JspStateManagementStrategy(javax.faces.context.FacesContext context)
context
- the Faces context.private void captureChild(java.util.List<JspStateManagementStrategy.TreeNode> tree, int parent, javax.faces.component.UIComponent c)
tree
- the tree.parent
- the parent.c
- the component.private void captureFacet(java.util.List<JspStateManagementStrategy.TreeNode> tree, int parent, java.lang.String name, javax.faces.component.UIComponent c)
tree
- the tree.parent
- the parent.name
- the facet name.c
- the component.private void captureRest(java.util.List<JspStateManagementStrategy.TreeNode> tree, int pos, javax.faces.component.UIComponent c)
tree
- the tree.pos
- the position.c
- the component.private javax.faces.component.UIComponent newInstance(JspStateManagementStrategy.TreeNode n) throws javax.faces.FacesException
n
- the tree node.javax.faces.FacesException
- when a serious error occurs.private javax.faces.component.UIViewRoot restoreTree(javax.faces.context.FacesContext context, java.lang.String renderKitId, java.lang.Object[] tree) throws javax.faces.FacesException
renderKitId
- the render kit id.tree
- the saved tree.javax.faces.FacesException
- when a serious error occurs.public javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext context, java.lang.String viewId, java.lang.String renderKitId)
restoreView
in class javax.faces.view.StateManagementStrategy
context
- the Faces context.viewId
- the view id.renderKitId
- the render kit id.public java.lang.Object saveView(javax.faces.context.FacesContext context)
saveView
in class javax.faces.view.StateManagementStrategy
context
- the Faces context.Copyright © 2002-2013 Oracle America, Inc. All Rights Reserved.