All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.habanero.HabaneroEvent

java.lang.Object
   |
   +----java.awt.Event
           |
           +----ncsa.habanero.HabaneroEvent

public class HabaneroEvent
extends Event
This extends Event to allow it to be initialized from a string. The tokens String is a list of tokens to pass to a StringTokenizer. The arg instance variable is handled as an object, not as part of the String, allowing it to be marshalled.


Variable Index

 o QUIT_APP
 o QUIT_SESSION

Constructor Index

 o HabaneroEvent(String, Object)
Create a new Event object by parsing the String representation of the Event.

Method Index

 o tokens()
Return the list of tokens
 o toLocal(Component)
Since event coordinates get translated to the Frame's coordinate system, this method translates them back.

Variables

 o QUIT_APP
 public static final int QUIT_APP
 o QUIT_SESSION
 public static final int QUIT_SESSION

Constructors

 o HabaneroEvent
 public HabaneroEvent(String eventRep,
                      Object arg)
Create a new Event object by parsing the String representation of the Event. Try to create a new instance of the target; if that fails, leave it as a String object.

Methods

 o tokens
 public static String tokens()
Return the list of tokens

 o toLocal
 public void toLocal(Component target)
Since event coordinates get translated to the Frame's coordinate system, this method translates them back. This is very inefficient. Really, it is.


All Packages  Class Hierarchy  This Package  Previous  Next  Index