com.sssw.rt.event
Class AgoEvent
java.lang.Object
|
+--java.util.EventObject
|
+--com.sssw.rt.event.AgoEvent
- All Implemented Interfaces:
- Serializable
- public class AgoEvent
- extends EventObject
Generic Event object that carries a single argument object along with
the source of the event.
- See Also:
AgpEventLinkEvent
,
AgpFileUploadEvent
,
AgoBusinessObjectEvent
,
AgoClusterServerStartEvent
,
AgoClusterServerStopEvent
,
AgoHttpRequestEvent
,
AgoInvokedEvent
,
AgoDataSourceEvent
,
AgoMailEvent
,
AgoScheduledEvent
,
AgoServerStartEvent
,
AgoServerStopEvent
,
AgoTableEvent
,
AgoTableRowEvent
,
AgoRowDeleteEvent
,
AgoRowInsertEvent
,
AgoRowModifyEvent
,
AgoTransactionAbortEvent
,
AgoUserLoginEvent
,
AgoUserLogoutEvent
, Serialized Form
Method Summary |
void |
consume()
Mark the event as consumed |
Object |
getArgument()
Returns the argument for the event |
int |
getID()
Get the ID of the event |
boolean |
wasConsumed()
Determine whether the event has been consumed |
AgoEvent
public AgoEvent(Object source,
Object argument)
- Construct an AgoEventObject
- Parameters:
source
- the source of the event; that is, the object firing the eventargument
- an arbitrary argument carried by the event
AgoEvent
public AgoEvent(Object source,
int id,
Object argument)
- Construct an AgoEventObject
- Parameters:
source
- the source of the event; that is, the object firing the eventid
- an identifier for the event, used by some subclassesargument
- an arbitrary argument carried by the event
wasConsumed
public boolean wasConsumed()
- Determine whether the event has been consumed
consume
public void consume()
- Mark the event as consumed
getArgument
public Object getArgument()
- Returns the argument for the event
getID
public int getID()
- Get the ID of the event