harmonic.mz.event
Class NodeEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--java.beans.PropertyChangeEvent
              |
              +--harmonic.mz.event.NodeEvent
All Implemented Interfaces:
java.io.Serializable

public class NodeEvent
extends java.beans.PropertyChangeEvent

This object is sent when a tree node changes in any way

See Also:
Serialized Form

Field Summary
static int ADDED
          Node has been added
static int DEREFERENCED
          Node has been unpointed from another
static int DESELECTED
          Node has been un-selected
static int LAST_EVENT
          Start extension event ID's after this
 DataNode node
          Node sending the event
 java.util.Vector path
          List of nodes that propogated event
static int POST_VALIDATE
          Node has been validated
static int PRE_VALIDATE
          Node will be validated
 DataNode producer
          Original node that was changed (this will not change as event is propogated from listener to listener)
static int REFERENCED
          Node has been pointed to another
static int REMOVED
          Node has been removed
static int RENAME_IN_GUI
          UI should start a renamer
static int RENAMED
          Node has been renamed
static int REPARENTED
          Node has been reparented
static int SELECTED
          Node has been selected
static int SHOW_IN_GUI
          UI should make visible
static int TAGGED
          Node has been tagged
static int TRANSFORMED
          Node has been transformed
static int TREE_REBUILT
          Uncommonly big change to tree, as when a file is opened.
static int VALUE_CHANGED
          Node's value has been changed
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
NodeEvent(DataNode producer, DataNode node, int id)
          Create a node event
 
Method Summary
 int getID()
          Return event id
 DataNode getNode()
          Return sending node
 java.util.Vector getPath()
          Return progation path
 DataNode getProducer()
          Return originator of event
 
Methods inherited from class java.beans.PropertyChangeEvent
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REMOVED

public static final int REMOVED
Node has been removed

See Also:
Constant Field Values

ADDED

public static final int ADDED
Node has been added

See Also:
Constant Field Values

VALUE_CHANGED

public static final int VALUE_CHANGED
Node's value has been changed

See Also:
Constant Field Values

RENAMED

public static final int RENAMED
Node has been renamed

See Also:
Constant Field Values

REFERENCED

public static final int REFERENCED
Node has been pointed to another

See Also:
Constant Field Values

DEREFERENCED

public static final int DEREFERENCED
Node has been unpointed from another

See Also:
Constant Field Values

SELECTED

public static final int SELECTED
Node has been selected

See Also:
Constant Field Values

DESELECTED

public static final int DESELECTED
Node has been un-selected

See Also:
Constant Field Values

REPARENTED

public static final int REPARENTED
Node has been reparented

See Also:
Constant Field Values

TRANSFORMED

public static final int TRANSFORMED
Node has been transformed

See Also:
Constant Field Values

PRE_VALIDATE

public static final int PRE_VALIDATE
Node will be validated

See Also:
Constant Field Values

POST_VALIDATE

public static final int POST_VALIDATE
Node has been validated

See Also:
Constant Field Values

RENAME_IN_GUI

public static final int RENAME_IN_GUI
UI should start a renamer

See Also:
Constant Field Values

SHOW_IN_GUI

public static final int SHOW_IN_GUI
UI should make visible

See Also:
Constant Field Values

TAGGED

public static final int TAGGED
Node has been tagged

See Also:
Constant Field Values

TREE_REBUILT

public static final int TREE_REBUILT
Uncommonly big change to tree, as when a file is opened.

See Also:
Constant Field Values

LAST_EVENT

public static final int LAST_EVENT
Start extension event ID's after this

See Also:
Constant Field Values

producer

public DataNode producer
Original node that was changed (this will not change as event is propogated from listener to listener)


node

public DataNode node
Node sending the event


path

public java.util.Vector path
List of nodes that propogated event

Constructor Detail

NodeEvent

public NodeEvent(DataNode producer,
                 DataNode node,
                 int id)
Create a node event

Method Detail

getID

public int getID()
Return event id


getPath

public java.util.Vector getPath()
Return progation path


getNode

public DataNode getNode()
Return sending node


getProducer

public DataNode getProducer()
Return originator of event