|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.portal.context.Node
public class Node
encapsulates about a node described/contained by a Web Map Context
Field Summary | |
---|---|
(package private) java.util.List<Node[]> |
tree
|
Constructor Summary | |
---|---|
Node(int id,
Node parent,
java.lang.String title,
boolean selectable,
boolean collapsed)
Creates a new ContextNode object. |
Method Summary | |
---|---|
void |
appendNode(Node childNode)
adds a new child node to the node |
Node[][] |
getFlatTree()
|
int |
getId()
The id of the selected node. |
int |
getIndex(int nodeID)
returns the index of the child node |
int |
getMaxNodeId()
return the maximum id of all nodes |
Node |
getNode(int nodeId)
Returns a childnode 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()
|
java.lang.String |
getTitle()
The title of the selected node. |
void |
insertNode(Node childNode,
int index)
insert a new child node at given position |
boolean |
isCollapsed()
The status of the node (collapsed or not (expanded)). |
boolean |
isSelectable()
The selectable status of the node. |
void |
moveNode(int nodeId,
java.lang.Boolean up)
moves a node within the tree up or down |
boolean |
removeNode(int nodeID)
removes a node |
void |
setCollapsed(boolean collapsed)
|
void |
setId(int id)
|
void |
setNodes(Node[] nodes)
|
void |
setParent(Node parent)
|
void |
setSelectable(boolean selectable)
|
void |
setTitle(java.lang.String title)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.util.List<Node[]> tree
Constructor Detail |
---|
public Node(int id, Node parent, java.lang.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)
nodeId
- to retrieve
null
if not foundpublic Node getNode(int nodeId, Node[] nodes)
nodeId
- nodes
-
public int getMaxNodeId()
public void setParent(Node parent)
parent
- public Node getParent()
public int getId()
public java.lang.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(java.lang.String title) throws ContextException
title
-
ContextException
public Node[][] getFlatTree()
public void moveNode(int nodeId, java.lang.Boolean up)
nodeId
- up
- public void appendNode(Node childNode)
childNode
- public void insertNode(Node childNode, int index)
childNode
- the new child nodeindex
- the position of the new child node (0=first node)
java.lang.IndexOutOfBoundsException
public boolean removeNode(int nodeID)
nodeID
- the id of the node
public int getIndex(int nodeID)
nodeID
- the node id to look for
|
deegree 2.5 (2011/06/29 09:44 build-8-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://www.deegree.org