mavis
Class SessionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by mavis.SessionEvent
All Implemented Interfaces:
java.io.Serializable

public class SessionEvent
extends java.util.EventObject

SessionEvent is used to notify others about the state change of the session. Derived from ProjectEvent.

See Also:
Serialized Form

Nested Class Summary
static class SessionEvent.Type
          The type of a project event.
 
Field Summary
private  Session session
          The session that sent this event.
private  SessionEvent.Type type
          The type of event this is.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SessionEvent(Session s, SessionEvent.Type type)
          Creates a session event.
 
Method Summary
 Session getSession()
          Returns the table model that sent this event.
 SessionEvent.Type getType()
          Returns the type of this event.
 
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

session

private Session session
The session that sent this event.


type

private SessionEvent.Type type
The type of event this is.

Constructor Detail

SessionEvent

public SessionEvent(Session s,
                    SessionEvent.Type type)
Creates a session event.

Parameters:
s - the table model that sends this event.
type - the type of the event.
Throws:
java.lang.NullPointerException - if any of the arguments is null.
Method Detail

getSession

public Session getSession()
Returns the table model that sent this event.


getType

public SessionEvent.Type getType()
Returns the type of this event.