com.iisc.jwc.jsheet
Class SessionEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.iisc.jwc.jsheet.SessionEvent
All Implemented Interfaces:
java.io.Serializable

public class SessionEvent
extends java.util.EventObject
implements java.io.Serializable

The SessionEvent contains information about the events in this session.

See Also:
Serialized Form

Field Summary
static int BOOK_CLOSED
          Book closed event type.
static int BOOK_OPENED
          Book opened event type.
static int KILL_CLIENT
          Kill client event type.
static int MESSAGE_RECEIVED
          Message received event type.
 
Constructor Summary
SessionEvent(java.lang.Object source, int id, boolean flag)
          Constructs a SessionEvent.
SessionEvent(java.lang.Object source, int id, java.lang.String name)
          Constructs a SessionEvent.
SessionEvent(java.lang.Object source, int id, java.lang.String sender, java.lang.String msg)
          Constructs a SessionEvent.
 
Method Summary
 boolean getFlag()
          Returns the flag setting.
 int getID()
          Returns the event ID for this object.
 java.lang.String getMsg()
          Returns the message sent by a user.
 java.lang.String getName()
          Returns the name of the book.
 java.lang.String getSender()
          Returns the user name of the sender.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BOOK_CLOSED

public static final int BOOK_CLOSED
Book closed event type.

See Also:
Constant Field Values

BOOK_OPENED

public static final int BOOK_OPENED
Book opened event type.

See Also:
Constant Field Values

KILL_CLIENT

public static final int KILL_CLIENT
Kill client event type.

See Also:
Constant Field Values

MESSAGE_RECEIVED

public static final int MESSAGE_RECEIVED
Message received event type.

See Also:
Constant Field Values
Constructor Detail

SessionEvent

public SessionEvent(java.lang.Object source,
                    int id,
                    boolean flag)
Constructs a SessionEvent.

Parameters:
source - the object where the event originated.
id - the event type.
flag - the setting.

SessionEvent

public SessionEvent(java.lang.Object source,
                    int id,
                    java.lang.String name)
Constructs a SessionEvent.

Parameters:
source - the object where the event originated.
id - the event type.
name - the name of the book.

SessionEvent

public SessionEvent(java.lang.Object source,
                    int id,
                    java.lang.String sender,
                    java.lang.String msg)
Constructs a SessionEvent.

Parameters:
source - the object where the event originated.
id - the event type.
sender - the sender of a message.
msg - the message.
Method Detail

getFlag

public boolean getFlag()
Returns the flag setting.

Returns:
the flag setting.

getID

public int getID()
Returns the event ID for this object.

Returns:
the event ID.

getMsg

public java.lang.String getMsg()
Returns the message sent by a user.

Returns:
the message.

getName

public java.lang.String getName()
Returns the name of the book.

Returns:
the book name.

getSender

public java.lang.String getSender()
Returns the user name of the sender.

Returns:
sender's user name.

Email JSheet Support

www.jsheet.com
Copyright 1995 - 2003 Investment Intelligence Systems Limited.