All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.aglet.system.ContextEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----com.ibm.aglet.event.AgletEvent
                   |
                   +----com.ibm.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 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 static final int CONTEXT_FIRST
Marks the first integer id for the range of context event ids.

 o CONTEXT_LAST
 public static final int CONTEXT_LAST
Marks the last integer id for the range of context event ids.

 o STARTED
 public static final int STARTED
The STARTED event type is delivered when the aglet is started.

See Also:
start
 o SHUTDOWN
 public static final int SHUTDOWN
The STARTED event type is delivered when the context is being shutting down.

See Also:
shutdown
 o CREATED
 public static final int CREATED
The CREATED event type is delivered when an aglet is created.

See Also:
createAglet
 o CLONED
 public static final int CLONED
The CLONED event type is delivered when an aglet is cloned.

See Also:
clone
 o DISPOSED
 public static final int DISPOSED
The DISPOSED event type is delivered when an aglet is disposed.

See Also:
dispose
 o DISPATCHED
 public static final int DISPATCHED
The DISPATCHED event type is delivered when an aglet is dispatched.

See Also:
dispatch
 o REVERTED
 public static final int REVERTED
The DISPATCHED event type is delivered when an aglet is retracted.

See Also:
retractAglet
 o ARRIVED
 public static final int ARRIVED
The ARRIVED event type is delivered when an aglet is arrived at the context.

 o DEACTIVATED
 public static final int DEACTIVATED
The DEACTIVATED event type is delivered when an aglet is deactivated

See Also:
deactivate
 o ACTIVATED
 public static final int ACTIVATED
The ACTIVATED event type is delivered when an aglet is activated.

See Also:
activate
 o STATE_CHANGED
 public static final int STATE_CHANGED
The STATE_CHANGED event type is delivered when the state of an aglet has been changed.

 o SHOW_DOCUMENT
 public static final 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 static final int MESSAGE
The MESSAGE event type is delivered when an context tries to show an message.

 o NO_RESPONSE
 public static final int NO_RESPONSE
Not used.

 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 EventObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index