org.embl.ebi.escience.scufl
Class ScuflModelEvent

java.lang.Object
  extended by org.embl.ebi.escience.scufl.ScuflModelEvent
Direct Known Subclasses:
MinorScuflModelEvent, ScuflModelAddEvent, ScuflModelRemoveEvent, ScuflModelRenameEvent

public class ScuflModelEvent
extends java.lang.Object

Signifies a change in the model that might be of interest to a view

Author:
Tom Oinn

Field Summary
static int LOAD
           
static int UNKNOWN
           
 
Constructor Summary
ScuflModelEvent(java.lang.Object source, java.lang.String message)
          Construct a new event, the object generating the event should put itself in the source field, and may optionally supply a textual message as well
ScuflModelEvent(java.lang.Object source, java.lang.String message, int eventType)
          Construct a new event with the specified event type
 
Method Summary
 int getEventType()
          Get the event type
 java.lang.String getMessage()
          Get the message
 java.lang.Object getSource()
          Get the source of the event
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static int UNKNOWN

LOAD

public static int LOAD
Constructor Detail

ScuflModelEvent

public ScuflModelEvent(java.lang.Object source,
                       java.lang.String message)
Construct a new event, the object generating the event should put itself in the source field, and may optionally supply a textual message as well


ScuflModelEvent

public ScuflModelEvent(java.lang.Object source,
                       java.lang.String message,
                       int eventType)
Construct a new event with the specified event type

Method Detail

getMessage

public java.lang.String getMessage()
Get the message


getEventType

public int getEventType()
Get the event type


getSource

public java.lang.Object getSource()
Get the source of the event


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object