de.sciss.jcollider
Class ServerEvent

java.lang.Object
  extended by java.util.EventObject
      extended by de.sciss.app.BasicEvent
          extended by de.sciss.jcollider.ServerEvent
All Implemented Interfaces:
java.io.Serializable

public class ServerEvent
extends de.sciss.app.BasicEvent

These kind of events get delivered by a server represenation to inform listeners about server status changes

Version:
0.33, 19-Mar-08
Author:
Hanns Holger Rutz
See Also:
Serialized Form

Field Summary
static int COUNTS
          returned by getID() : the server status has been updated
static int RUNNING
          returned by getID() : the server started running
static int STOPPED
          returned by getID() : the server stopped running
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
protected ServerEvent(java.lang.Object source, int ID, long when, Server server)
           
 
Method Summary
 Server getServer()
           
 boolean incorporate(de.sciss.app.BasicEvent oldEvent)
          Used by the EventManager to fuse successive events together when they queue.
 
Methods inherited from class de.sciss.app.BasicEvent
getID, getWhen
 
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

RUNNING

public static final int RUNNING
returned by getID() : the server started running

See Also:
Constant Field Values

STOPPED

public static final int STOPPED
returned by getID() : the server stopped running

See Also:
Constant Field Values

COUNTS

public static final int COUNTS
returned by getID() : the server status has been updated

See Also:
Constant Field Values
Constructor Detail

ServerEvent

protected ServerEvent(java.lang.Object source,
                      int ID,
                      long when,
                      Server server)
Parameters:
source - who fired the event
ID - the type of status change, e.g. RUNNING
when - timestamp of the event (e.g. System.currentTimeMillis())
server - the representation of the server whose status changed
Method Detail

getServer

public Server getServer()
Returns:
the representation of the server whose status changed

incorporate

public boolean incorporate(de.sciss.app.BasicEvent oldEvent)
Used by the EventManager to fuse successive events together when they queue. Do not call this method.

Specified by:
incorporate in class de.sciss.app.BasicEvent
Parameters:
oldEvent - the most recent event in the queue which might be incorporated by this new event.
Returns:
true if this object was able to incorporate the older event. in this case the oldEvent is removed from the event queue. false states that the oldEvent was incompatible and should remain in the queue.
See Also:
javax.swing.undo.UndoableEdit#replaceEdit( UndoableEdit )