| 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.portal.context.Node
public class Node
encapsulates about a node described/contained by a Web Map Context
| Field Summary | |
|---|---|
(package private)  List<Node[]> | 
tree
 | 
| Constructor Summary | |
|---|---|
Node(int id,
         Node parent,
         String title,
         boolean selectable,
         boolean collapsed)
Creates a new ContextNode object.  | 
|
| Method Summary | |
|---|---|
 Node[][] | 
getFlatTree()
 | 
 int | 
getId()
The id of the selected node.  | 
 int | 
getMaxNodeId()
return the maximum id of all nodes  | 
 Node | 
getNode(int nodeId)
Returns a childnodes of the selected node by id  | 
 Node | 
getNode(int nodeId,
               Node[] nodes)
 | 
 Node[] | 
getNodes()
The childnodes of the selected node in the tree  | 
 Node | 
getParent()
 | 
 String | 
getTitle()
The title of the selected node.  | 
 boolean | 
isCollapsed()
The status of the node (collapsed or not (expanded)).  | 
 boolean | 
isSelectable()
The selectable status of the node.  | 
 void | 
moveNode(int nodeId,
                 Boolean up)
moves a node within the tree up or down  | 
 void | 
setCollapsed(boolean collapsed)
 | 
 void | 
setId(int id)
 | 
 void | 
setNodes(Node[] nodes)
 | 
 void | 
setParent(Node parent)
 | 
 void | 
setSelectable(boolean selectable)
 | 
 void | 
setTitle(String title)
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
List<Node[]> tree
| Constructor Detail | 
|---|
public Node(int id,
            Node parent,
            String title,
            boolean selectable,
            boolean collapsed)
     throws ContextException
id - id of the selected nodeparent - title - title of the selected nodeselectable - collapsed - defines if the node is collapsed in the legend viewer
ContextException| Method Detail | 
|---|
public Node[] getNodes()
public Node getNode(int nodeId)
public Node getNode(int nodeId,
                    Node[] nodes)
nodeId - nodes - 
public int getMaxNodeId()
public void setParent(Node parent)
parent - public Node getParent()
public int getId()
public String getTitle()
public boolean isCollapsed()
public boolean isSelectable()
public void setNodes(Node[] nodes)
nodes - public void setSelectable(boolean selectable)
selectable - public void setCollapsed(boolean collapsed)
collapsed - public void setId(int id)
id - 
public void setTitle(String title)
              throws ContextException
title - 
ContextExceptionpublic Node[][] getFlatTree()
public void moveNode(int nodeId,
                     Boolean up)
nodeId - up - 
  | 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
					For more information visit: http://deegree.sourceforge.net