|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.tree.DefaultMutableTreeNode | +--Watcher.v2_1.Node
A Node contains data which is shown in an instance of JTree. A Node can be of different types; Grouping (the root node), Actor or RoleSession nodes.
Inner classes inherited from class javax.swing.tree.DefaultMutableTreeNode |
javax.swing.tree.DefaultMutableTreeNode.BreadthFirstEnumeration, javax.swing.tree.DefaultMutableTreeNode.PathBetweenNodesEnumeration, javax.swing.tree.DefaultMutableTreeNode.PostorderEnumeration, javax.swing.tree.DefaultMutableTreeNode.PreorderEnumeration |
Field Summary | |
private java.lang.String |
gai
The node's GAI which uniquely defines it. |
private java.lang.String |
label
The node's label. |
private int |
nodetype
Specifies which type of node this is. |
static int |
NODETYPE_ACTOR
|
static int |
NODETYPE_GROUPING
|
static int |
NODETYPE_ROLESESSION
|
private WatcherWindow |
window
Reference to the WatcherWindow used for debugging |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
Node(WatcherWindow ww,
int type,
java.lang.String label,
java.lang.String gai)
Creates a new node with the specified nodetype, label and GAI. |
Method Summary | |
boolean |
containsGAI(java.lang.String tmpGAI)
Returns True if the node's GAI matches the specified GAI, else it returns False. |
private void |
dbg(java.lang.String dbg)
Writes debug-information to the DebugView via WatcherWindow's debug(). |
java.lang.String |
getGAI()
Returns the node's GAI as a string. |
java.lang.String |
getLabel()
Returns the node's label. |
int |
getNodetype()
Returns the nodetype of this Node. |
java.lang.String |
toString()
This method is a redefinition of the toString method inherited from Object. |
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
Field Detail |
public static final int NODETYPE_GROUPING
public static final int NODETYPE_ACTOR
public static final int NODETYPE_ROLESESSION
private WatcherWindow window
private int nodetype
private java.lang.String label
private java.lang.String gai
Constructor Detail |
public Node(WatcherWindow ww, int type, java.lang.String label, java.lang.String gai)
ww
- Reference to WatcherWindow.type
- The type of node created.label
- The label of the node.gai
- The node's GAI as a string.Method Detail |
public boolean containsGAI(java.lang.String tmpGAI)
tmpGAI
- The GAI which is matched against this node's GAI.public java.lang.String getGAI()
public java.lang.String getLabel()
public int getNodetype()
public java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode
private void dbg(java.lang.String dbg)
dbg
- The debug-information.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |