fri.gui.swing.polytreetable
Class PolyTreeTableModelEvent

java.lang.Object
  |
  +--fri.gui.swing.polytreetable.PolyTreeTableModelEvent

public class PolyTreeTableModelEvent
extends java.lang.Object

An event that is created when nodes were inserted or removed from the data model. Information about inserted/deleted nodes or change of node properties (name) is provided.

Author:
Ritzberger Fritz
See Also:
PolyTreeTableModel

Field Summary
static int CHILDREN_DELETED
          Identifies an event that tells about children inserted into node.
static int CHILDREN_INSERTED
          Identifies an event that tells about children inserted into node.
static int NODE_CHANGED
          Identifies an event that tells about node properties changed.
static int PARENTS_DELETED
          Identifies an event that tells about parents inserted into node.
static int PARENTS_INSERTED
          Identifies an event that tells about parents inserted into node.
 
Constructor Summary
PolyTreeTableModelEvent(int type, MutablePolyTreeNode node, PolyTreeNode[] nodes, int[] indizes)
          Create an event about an insertion or deletion.
PolyTreeTableModelEvent(MutablePolyTreeNode node)
          Create an event about a node change.
 
Method Summary
 int[] getIndizes()
          Returns the indizes of the inserted or deleted nodes.
 MutablePolyTreeNode getNode()
          Returns the originator node on which the event occured.
 PolyTreeNode[] getNodes()
          Returns the inserted or deleted nodes.
 int getType()
          Returns the type of event: PARENTS_INSERTED, CHILDREN_DELETED, ....
 java.lang.String toString()
          Writes all event information to a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PARENTS_INSERTED

public static final int PARENTS_INSERTED
Identifies an event that tells about parents inserted into node.

See Also:
Constant Field Values

CHILDREN_INSERTED

public static final int CHILDREN_INSERTED
Identifies an event that tells about children inserted into node.

See Also:
Constant Field Values

PARENTS_DELETED

public static final int PARENTS_DELETED
Identifies an event that tells about parents inserted into node.

See Also:
Constant Field Values

CHILDREN_DELETED

public static final int CHILDREN_DELETED
Identifies an event that tells about children inserted into node.

See Also:
Constant Field Values

NODE_CHANGED

public static final int NODE_CHANGED
Identifies an event that tells about node properties changed.

See Also:
Constant Field Values
Constructor Detail

PolyTreeTableModelEvent

public PolyTreeTableModelEvent(MutablePolyTreeNode node)
Create an event about a node change.


PolyTreeTableModelEvent

public PolyTreeTableModelEvent(int type,
                               MutablePolyTreeNode node,
                               PolyTreeNode[] nodes,
                               int[] indizes)
Create an event about an insertion or deletion.

Method Detail

getType

public int getType()
Returns the type of event: PARENTS_INSERTED, CHILDREN_DELETED, ....


getNode

public MutablePolyTreeNode getNode()
Returns the originator node on which the event occured.


getNodes

public PolyTreeNode[] getNodes()
Returns the inserted or deleted nodes.


getIndizes

public int[] getIndizes()
Returns the indizes of the inserted or deleted nodes.


toString

public java.lang.String toString()
Writes all event information to a String.

Overrides:
toString in class java.lang.Object