com.isti.quakewatch.guiutil
Class EventTreeTableModel.EventNode

java.lang.Object
  extended by com.isti.quakewatch.guiutil.EventTreeTableModel.EventNode
Enclosing class:
EventTreeTableModel

protected static class EventTreeTableModel.EventNode
extends java.lang.Object

A EventNode is used to maintain a cache of an events's children.


Field Summary
protected  EventTreeTableModel.EventNode[] children
          Children of the node.
protected  java.lang.Object node
          object the node represents.
 
Constructor Summary
protected EventTreeTableModel.EventNode(EventTreeTableModel.EventNode parent, java.lang.Object node)
           
protected EventTreeTableModel.EventNode(java.lang.Object node)
           
 
Method Summary
protected  java.lang.Object[] getChildren()
          Returns the children for this event.
 java.util.List getChildren(java.lang.Object node)
          Returns the children for the particular node.
 java.lang.String getLongestName()
           
 java.lang.String getLongestValue()
           
 java.lang.Object getObject()
          Returns the object the node represents.
 EventTreeTableModel.EventNode getParent()
          Returns the parent of the node.
 java.lang.String getValue()
          Returns the the value to be used to display this leaf in the JTree.
 java.lang.String getValue(org.jdom.Element node)
          Returns the the value to be used to display this leaf in the JTree.
 java.lang.String toString()
          Returns the the string to be used to display this leaf in the JTree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

node

protected final java.lang.Object node
object the node represents.


children

protected final EventTreeTableModel.EventNode[] children
Children of the node.

Constructor Detail

EventTreeTableModel.EventNode

protected EventTreeTableModel.EventNode(java.lang.Object node)

EventTreeTableModel.EventNode

protected EventTreeTableModel.EventNode(EventTreeTableModel.EventNode parent,
                                        java.lang.Object node)
Method Detail

getLongestName

public java.lang.String getLongestName()
Returns:
the longest name string.

getLongestValue

public java.lang.String getLongestValue()
Returns:
the longest value string.

getChildren

public java.util.List getChildren(java.lang.Object node)
Returns the children for the particular node.

Parameters:
node - the particular node.
Returns:
the children for the particular node.

toString

public java.lang.String toString()
Returns the the string to be used to display this leaf in the JTree.

Overrides:
toString in class java.lang.Object
Returns:
the the string to be used to display this leaf in the JTree.

getValue

public java.lang.String getValue()
Returns the the value to be used to display this leaf in the JTree.

Returns:
the the value to be used to display this leaf in the JTree.

getValue

public java.lang.String getValue(org.jdom.Element node)
Returns the the value to be used to display this leaf in the JTree.

Parameters:
node - the node to get the value of.
Returns:
the the value to be used to display this leaf in the JTree.

getObject

public java.lang.Object getObject()
Returns the object the node represents.

Returns:
the object the node represents.

getParent

public EventTreeTableModel.EventNode getParent()
Returns the parent of the node.

Returns:
the parent of the node.

getChildren

protected java.lang.Object[] getChildren()
Returns the children for this event.

Returns:
the children for this event.