|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjist.runtime.guilog.GuiLog.EventNode
public static class GuiLog.EventNode
An EventNode encapsulates the construct formed by an Event and the relationships it has with its parent and children Events. EventNodes strung together form a one-to-many tree structure.
| Field Summary | |
|---|---|
private java.util.Vector |
children
The node's and Event's child EventNode(s). |
private Event |
ev
The node's Event. |
private GuiLog.EventNode |
parent
The node's and Event's parent EventNode. |
| Constructor Summary | |
|---|---|
GuiLog.EventNode(Event ev,
GuiLog.EventNode parent)
The constructor for the EventNode creates the relationships of Parent and Children between the Event and its Parent. |
|
| Method Summary | |
|---|---|
void |
addChild(GuiLog.EventNode child)
Adds a child EventNode to the node. |
GuiLog.EventNode |
getChild(int i)
Returns a node's specific Child. |
Event |
getEvent()
Returns the node's Event. |
int |
getNumChildren()
Returns the node's number of Children. |
GuiLog.EventNode |
getParent()
Returns the node's Parent. |
void |
removeChild(GuiLog.EventNode child)
Remove a child EventNode from the node. |
void |
removeChildren()
Removes all child EventNodes from the node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Event ev
private GuiLog.EventNode parent
private java.util.Vector children
| Constructor Detail |
|---|
public GuiLog.EventNode(Event ev,
GuiLog.EventNode parent)
ev - Event The node's Event.parent - EventNode The node's parent EventNode.| Method Detail |
|---|
public Event getEvent()
public GuiLog.EventNode getParent()
public int getNumChildren()
public GuiLog.EventNode getChild(int i)
i - int The desired index for the Child.
public void addChild(GuiLog.EventNode child)
child - EventNode The child EventNode to add.public void removeChild(GuiLog.EventNode child)
child - EventNode The child EventNode to remove.public void removeChildren()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||