|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.maverick.events.EventObject
com.maverick.events.Event
Superclass of all events that may be fired during the life of J2SSH.
All events have the following attributes in common :-
int and must be unique across the
whole of J2SSH.
| Field Summary |
| Fields inherited from class com.maverick.events.EventObject |
source |
| Constructor Summary | |
Event(java.lang.Object source,
int id,
boolean state)
|
|
| Method Summary | |
Event |
addAttribute(java.lang.String key,
java.lang.Object value)
Add an attribute to the event |
java.lang.String |
getAllAttributes()
|
java.lang.Object |
getAttribute(java.lang.String key)
Get the value of an event attribute |
int |
getId()
Get the unique event id |
boolean |
getState()
Get the event state. |
| Methods inherited from class com.maverick.events.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Event(java.lang.Object source,
int id,
boolean state)
source - source of eventid - event code| Method Detail |
public int getId()
public boolean getState()
#STATE_SUCCESSFUL or
#STATE_UNSUCCESSFUL.
public java.lang.Object getAttribute(java.lang.String key)
key - key of event
public java.lang.String getAllAttributes()
public Event addAttribute(java.lang.String key,
java.lang.Object value)
key - key of attribute
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||