SessionEventpublic final class SessionEvent extends EventObject General event for notifying listeners of significant changes on a Session. |
Fields Summary |
---|
private Object | dataThe event data associated with this event. | private Session | sessionThe Session on which this event occurred. | private String | typeThe event type this instance represents. |
Constructors Summary |
---|
public SessionEvent(Session session, String type, Object data)Construct a new SessionEvent with the specified parameters.
super(session);
this.session = session;
this.type = type;
this.data = data;
|
Methods Summary |
---|
public java.lang.Object | getData()Return the event data of this event.
return (this.data);
| public Session | getSession()Return the Session on which this event occurred.
return (this.session);
| public java.lang.String | getType()Return the event type of this event.
return (this.type);
| public java.lang.String | toString()Return a string representation of this event.
return ("SessionEvent['" + getSession() + "','" +
getType() + "']");
|
|