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

Variable Index

 o ACTIVATED
The ACTIVATED event type is delivered when an aglet is activated.
 o agletproxy
AgletProxy proxy
 o arg
Arbitary arguments
 o ARRIVED
The ARRIVED event type is delivered when an aglet is arrived at the context.
 o CLONED
The CLONED event type is delivered when an aglet is cloned.
 o CONTEXT_FIRST
Marks the first integer id for the range of context event ids.
 o CONTEXT_LAST
Marks the last integer id for the range of context event ids.
 o CREATED
The CREATED event type is delivered when an aglet is created.
 o DEACTIVATED
The DEACTIVATED event type is delivered when an aglet is deactivated
 o DISPATCHED
The DISPATCHED event type is delivered when an aglet is dispatched.
 o DISPOSED
The DISPOSED event type is delivered when an aglet is disposed.
 o MESSAGE
The MESSAGE event type is delivered when an context tries to show an message.
 o NO_RESPONSE
Not used.
 o REVERTED
The DISPATCHED event type is delivered when an aglet is retracted.
 o SHOW_DOCUMENT
The SHOW_DOCUMENT event type is delivered when an aglet requests to show an document specified by the URL.
 o SHUTDOWN
The STARTED event type is delivered when the context is being shutting down.
 o STARTED
The STARTED event type is delivered when the aglet is started.
 o STATE_CHANGED
The STATE_CHANGED event type is delivered when the state of an aglet has been changed.

Constructor Index

 o ContextEvent(int, Object, AgletProxy)
Constructs an ContextEvent with id.
 o ContextEvent(int, Object, AgletProxy, Object)
Constructs an ContextEvent with id.

Method Index

 o getAgletContext()
Gets AgletContext object of this event
 o getAgletProxy()
Gets AgletProxy object of this event null if the event is STARTED or STOPPED
 o getDocumentURL()
Gets the document URL.
 o getMessage()
Gets the message to show
 o getText()
 o toString()

Variables

 o CONTEXT_FIRST
  public final static int CONTEXT_FIRST
Marks the first integer id for the range of context event ids.
 o CONTEXT_LAST
  public final static int CONTEXT_LAST
Marks the last integer id for the range of context event ids.
 o STARTED
  public final static int STARTED
The STARTED event type is delivered when the aglet is started.
See Also:
start
 o SHUTDOWN
  public final static int SHUTDOWN
The STARTED event type is delivered when the context is being shutting down.
See Also:
shutdown
 o CREATED
  public final static int CREATED
The CREATED event type is delivered when an aglet is created.
See Also:
createAglet
 o CLONED
  public final static int CLONED
The CLONED event type is delivered when an aglet is cloned.
See Also:
clone
 o DISPOSED
  public final static int DISPOSED
The DISPOSED event type is delivered when an aglet is disposed.
See Also:
dispose
 o DISPATCHED
  public final static int DISPATCHED
The DISPATCHED event type is delivered when an aglet is dispatched.
See Also:
dispatch
 o REVERTED
  public final static int REVERTED
The DISPATCHED event type is delivered when an aglet is retracted.
See Also:
retractAglet
 o ARRIVED
  public final static int ARRIVED
The ARRIVED event type is delivered when an aglet is arrived at the context.
 o DEACTIVATED
  public final static int DEACTIVATED
The DEACTIVATED event type is delivered when an aglet is deactivated
See Also:
deactivate
 o ACTIVATED
  public final static int ACTIVATED
The ACTIVATED event type is delivered when an aglet is activated.
See Also:
activate
 o STATE_CHANGED
  public final static int STATE_CHANGED
The STATE_CHANGED event type is delivered when the state of an aglet has been changed.
 o 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
 o MESSAGE
  public final static int MESSAGE
The MESSAGE event type is delivered when an context tries to show an message.
 o NO_RESPONSE
  public final static int NO_RESPONSE
Not used.
 o agletproxy
  protected AgletProxy agletproxy
AgletProxy proxy
 o arg
  public Object arg
Arbitary arguments

Constructors

 o ContextEvent
  public ContextEvent(int id,
                      Object context,
                      AgletProxy target,
                      Object arg)
Constructs an ContextEvent with id.
 o ContextEvent
  public ContextEvent(int id,
                      Object context,
                      AgletProxy target)
Constructs an ContextEvent with id.

Methods

 o getAgletContext
  public AgletContext getAgletContext()
Gets AgletContext object of this event
 o getAgletProxy
  public AgletProxy getAgletProxy()
Gets AgletProxy object of this event null if the event is STARTED or STOPPED
 o getMessage
  public String getMessage()
Gets the message to show
 o getText
  public String getText()
 o getDocumentURL
  public URL getDocumentURL()
Gets the document URL.
 o toString
  public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index