harmonic.mz.event
Class ModelFileEvent

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

public class ModelFileEvent
extends java.util.EventObject

Event type sent by DataManager when tree changes

See Also:
Serialized Form

Field Summary
static int CURRENT_FILE_CHANGED
           
static int FILE_ADDED
           
static int FILE_REMOVED
           
static int FILE_RENAMED
           
static int FILE_SAVED
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ModelFileEvent(FileNode node, int id)
           
 
Method Summary
 int getID()
          Returns event id
 FileNode getModelFile()
          Returns (DataNode)getSource() if source is a data node.
 
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

FILE_ADDED

public static int FILE_ADDED

FILE_REMOVED

public static int FILE_REMOVED

FILE_RENAMED

public static int FILE_RENAMED

FILE_SAVED

public static int FILE_SAVED

CURRENT_FILE_CHANGED

public static int CURRENT_FILE_CHANGED
Constructor Detail

ModelFileEvent

public ModelFileEvent(FileNode node,
                      int id)
Method Detail

getID

public int getID()
Returns event id


getModelFile

public FileNode getModelFile()
Returns (DataNode)getSource() if source is a data node. For some events source will be the DataManager.