All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.habanero.AWTEventAction

java.lang.Object
   |
   +----ncsa.habanero.HabaneroAction
           |
           +----ncsa.habanero.AWTEventAction

public class AWTEventAction
extends HabaneroAction
The AppletAction represents an AWT event; its action is to deliver that event to its target.


Variable Index

 o arg
 o event
 o eventSource

Constructor Index

 o AWTEventAction(AWTEvent)
 o AWTEventAction(AWTEvent, Object)

Method Index

 o act(Targetable)
 o describe()
 o getAWTEvent()
 o toString()

Variables

 o event
 protected AWTEvent event
 o eventSource
 protected Object eventSource
 o arg
 protected Object arg

Constructors

 o AWTEventAction
 public AWTEventAction(AWTEvent event,
                       Object argument)
Parameters:
event - the event to be sent to the other applets
Returns:
Initialize the AppletAction with the Event it represents
 o AWTEventAction
 public AWTEventAction(AWTEvent event)

Methods

 o act
 public void act(Targetable target)
Parameters:
target - where this action is going to act upon
Returns:
Tries to deliver the event to the target. Calls deliverEvent, first on the target, and then potentially on any ancestor of the target which supports the deliverEvent method, until one returns true.
Overrides:
act in class HabaneroAction
 o getAWTEvent
 public AWTEvent getAWTEvent()
Returns:
the event that is stored in the AppletAction
 o describe
 public String describe()
Returns:
a string that describes this object
Overrides:
describe in class HabaneroAction
 o toString
 public String toString()
Returns:
a string representing an applet actino
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index