|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.adf.view.faces.model.PathHelper | +--oracle.adf.view.faces.model.TreeState
This class tracks the expand/collapse state of nodes in a tree.
Constructor Summary | |
TreeState()
|
Method Summary | |
void |
collapseAll()
Collapses the current rowKey, and all its children. |
void |
expandAll()
Expands the current rowKey, and all its children. |
protected java.lang.Object |
getLastPathData()
|
java.util.List |
getPath()
Gets the current path. |
java.lang.String |
getPath(int index)
Gets a rowKey at the specified location in the path. |
protected java.lang.Object |
getPathData(int index)
Gets the path data at the specified index. |
int |
getPathSize()
|
java.lang.String |
getRowKey()
|
boolean |
isExpanded()
Gets the expanded state of the current rowKey. |
void |
popPath()
Removes the last rowKey from the end of this path. |
void |
pushPath()
Pushes the current rowKey onto the path. |
protected java.lang.Object |
pushPath(java.lang.Object parentElement,
java.lang.String rowKey)
Gets the path data to use for a new path segment. |
void |
readExternal(java.io.ObjectInput in)
|
void |
setExpandAllDepth(int depth)
Sets the maximum depth of an expandAll operation. |
void |
setExpanded(boolean isExpanded)
Sets the expanded state of the current rowKey. |
void |
setPath(java.util.List path)
Sets the path. |
void |
setRowKey(java.lang.String rowKey)
Sets the current rowKey. |
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TreeState()
Method Detail |
public void setExpandAllDepth(int depth)
depth
- use 0 to expandAll indefinitely.public void expandAll()
public void collapseAll()
protected final java.lang.Object getLastPathData()
getLastPathData
in class oracle.adf.view.faces.model.PathHelper
public boolean isExpanded()
public void setExpanded(boolean isExpanded)
isExpanded
- true if it must be expandedprotected final java.lang.Object pushPath(java.lang.Object parentElement, java.lang.String rowKey)
oracle.adf.view.faces.model.PathHelper
pushPath
in class oracle.adf.view.faces.model.PathHelper
parentElement
- the path data of the previous path segmentrowKey
- the path segment that is just about to be added.
PathHelper.getPathData(int)
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public final void setRowKey(java.lang.String rowKey)
rowKey
- public final java.lang.String getRowKey()
public final int getPathSize()
public final java.util.List getPath()
public final java.lang.String getPath(int index)
index
-
public final void setPath(java.util.List path)
path
- a List with each element a rowKey Stringprotected final java.lang.Object getPathData(int index)
index
-
PathHelper.pushPath(Object,String)
public final void pushPath()
public final void popPath()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |