Class aglet.system.ContextEvent
All Packages Class Hierarchy This Package Previous Next Index
Class aglet.system.ContextEvent
java.lang.Object
|
+----aglet.event.AgletEvent
|
+----aglet.system.ContextEvent
- public class ContextEvent
- extends AgletEvent
Context level event
-
ACTIVATED
- The ACTIVATED event type is delivered when an aglet is activated.
-
agletproxy
- AgletProxy proxy
-
arg
- Arbitary arguments
-
ARRIVED
- The ARRIVED event type is delivered when an aglet is arrived at the
context.
-
CLONED
- The CLONED event type is delivered when an aglet is cloned.
-
CONTEXT_FIRST
- Marks the first integer id for the range of context event ids.
-
CONTEXT_LAST
- Marks the last integer id for the range of context event ids.
-
CREATED
- The CREATED event type is delivered when an aglet is created.
-
DEACTIVATED
- The DEACTIVATED event type is delivered when an aglet is deactivated
-
DISPATCHED
- The DISPATCHED event type is delivered when an aglet is dispatched.
-
DISPOSED
- The DISPOSED event type is delivered when an aglet is disposed.
-
MESSAGE
- The MESSAGE event type is delivered when an context tries to show
an message.
-
NO_RESPONSE
- Not used.
-
REVERTED
- The DISPATCHED event type is delivered when an aglet is retracted.
-
SHOW_DOCUMENT
- The SHOW_DOCUMENT event type is delivered when an aglet requests to
show an document specified by the URL.
-
SHUTDOWN
- The STARTED event type is delivered when the context is being
shutting down.
-
STARTED
- The STARTED event type is delivered when the aglet is started.
-
STATE_CHANGED
- The STATE_CHANGED event type is delivered when the state of an aglet
has been changed.
-
ContextEvent(int, Object, AgletProxy)
- Constructs an ContextEvent with id.
-
ContextEvent(int, Object, AgletProxy, Object)
- Constructs an ContextEvent with id.
-
getAgletContext()
- Gets AgletContext object of this event
-
getAgletProxy()
- Gets AgletProxy object of this event
null if the event is STARTED or STOPPED
-
getDocumentURL()
- Gets the document URL.
-
getMessage()
- Gets the message to show
-
getText()
-
-
toString()
-
CONTEXT_FIRST
public final static int CONTEXT_FIRST
- Marks the first integer id for the range of context event ids.
CONTEXT_LAST
public final static int CONTEXT_LAST
- Marks the last integer id for the range of context event ids.
STARTED
public final static int STARTED
- The STARTED event type is delivered when the aglet is started.
- See Also:
- start
SHUTDOWN
public final static int SHUTDOWN
- The STARTED event type is delivered when the context is being
shutting down.
- See Also:
- shutdown
CREATED
public final static int CREATED
- The CREATED event type is delivered when an aglet is created.
- See Also:
- createAglet
CLONED
public final static int CLONED
- The CLONED event type is delivered when an aglet is cloned.
- See Also:
- clone
DISPOSED
public final static int DISPOSED
- The DISPOSED event type is delivered when an aglet is disposed.
- See Also:
- dispose
DISPATCHED
public final static int DISPATCHED
- The DISPATCHED event type is delivered when an aglet is dispatched.
- See Also:
- dispatch
REVERTED
public final static int REVERTED
- The DISPATCHED event type is delivered when an aglet is retracted.
- See Also:
- retractAglet
ARRIVED
public final static int ARRIVED
- The ARRIVED event type is delivered when an aglet is arrived at the
context.
DEACTIVATED
public final static int DEACTIVATED
- The DEACTIVATED event type is delivered when an aglet is deactivated
- See Also:
- deactivate
ACTIVATED
public final static int ACTIVATED
- The ACTIVATED event type is delivered when an aglet is activated.
- See Also:
- activate
STATE_CHANGED
public final static int STATE_CHANGED
- The STATE_CHANGED event type is delivered when the state of an aglet
has been changed.
SHOW_DOCUMENT
public final static int SHOW_DOCUMENT
- The SHOW_DOCUMENT event type is delivered when an aglet requests to
show an document specified by the URL.
- See Also:
- showDocument
MESSAGE
public final static int MESSAGE
- The MESSAGE event type is delivered when an context tries to show
an message.
NO_RESPONSE
public final static int NO_RESPONSE
- Not used.
agletproxy
protected AgletProxy agletproxy
- AgletProxy proxy
arg
public Object arg
- Arbitary arguments
ContextEvent
public ContextEvent(int id,
Object context,
AgletProxy target,
Object arg)
- Constructs an ContextEvent with id.
ContextEvent
public ContextEvent(int id,
Object context,
AgletProxy target)
- Constructs an ContextEvent with id.
getAgletContext
public AgletContext getAgletContext()
- Gets AgletContext object of this event
getAgletProxy
public AgletProxy getAgletProxy()
- Gets AgletProxy object of this event
null if the event is STARTED or STOPPED
getMessage
public String getMessage()
- Gets the message to show
getText
public String getText()
getDocumentURL
public URL getDocumentURL()
- Gets the document URL.
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index