|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaffa.presentation.portlet.widgets.model.WidgetModel
org.jaffa.presentation.portlet.widgets.model.TreeModel
Model for the Tree widget.
| Field Summary | |
static String |
ATTRIBUTE_NODE_TYPE
Constant for the attribute node type. |
| Constructor Summary | |
TreeModel()
|
|
| Method Summary | |
Node |
getNode(String id)
Returns a node if it exists based on the passed ID string. |
Node |
getRootNode()
Returns the root node. |
boolean |
isExpanded(Node n)
Returns a true if the input Node is expanded. |
void |
setAllExpanded()
Sets all the nodes to be expanded. |
void |
setExpanded(ArrayList num)
Sets an attribute on the node to expanded ="true" for caching. |
void |
setNoneExpanded()
Sets all the nodes to be non-expanded. |
void |
setRootNode(Node node)
Sets a node to be the root node. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String ATTRIBUTE_NODE_TYPE
| Constructor Detail |
public TreeModel()
| Method Detail |
public void setRootNode(Node node)
node - node to be made root.public Node getRootNode()
public Node getNode(String id)
id - The node id.
public void setExpanded(ArrayList num)
num - A List of String objects, each String containing the node id.public boolean isExpanded(Node n)
n - The Node.
public void setAllExpanded()
public void setNoneExpanded()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||