ewe.ui
Class ControlEvent

java.lang.Object
  extended byewe.ui.Event
      extended byewe.ui.ControlEvent
Direct Known Subclasses:
FormEvent, FrameEvent, MenuEvent, MultiPanelEvent, ScrollEvent, TableEvent, TextDisplay.HotSpotEvent, TreeEvent

public class ControlEvent
extends Event

ControlEvent is an event posted by a control.


Field Summary
 String action
          If the event is a PRESSED event, and an mButton generated the event, then this value will be equal to the "action" value of the button, or the button's text if its action is null.
static int CANCELLED
          The event type for a Cancel event (e.g.
static int EXITED
          The event type for a Exit event (i.e.
 int exitKey
          This is set if one of the exit keys was pressed.
 int exitKeyModifiers
          This is set if one of the exit keys was pressed.
static int FOCUS_IN
          The event type for a focus in event.
static int FOCUS_OUT
          The event type for a focus out event.
static int MENU_SHOWN
          The event type for when a control shows its associated menu.
 Control oldOrNewFocus
          If the event is a FOCUS_IN then this is the control that is losing focus.
static int OPERATION_CANCELLED
           
static int POPUP_CLOSED
           
static int PRESSED
          The event type for a pressed event.
static int TIMER
          The event type for a timer event.
 
Fields inherited from class ewe.ui.Event
consumed, events, flags, target, timeStamp, type, window
 
Constructor Summary
ControlEvent()
           
ControlEvent(int type, Control c)
          Constructs a control event of the given type.
 
Methods inherited from class ewe.ui.Event
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode
 

Field Detail

PRESSED

public static final int PRESSED
The event type for a pressed event.

See Also:
Constant Field Values

FOCUS_IN

public static final int FOCUS_IN
The event type for a focus in event.

See Also:
Constant Field Values

FOCUS_OUT

public static final int FOCUS_OUT
The event type for a focus out event.

See Also:
Constant Field Values

TIMER

public static final int TIMER
The event type for a timer event.

See Also:
Constant Field Values

CANCELLED

public static final int CANCELLED
The event type for a Cancel event (e.g. ESC pressed).

See Also:
Constant Field Values

EXITED

public static final int EXITED
The event type for a Exit event (i.e. one of the exit keys was pressed).

See Also:
Constant Field Values

MENU_SHOWN

public static final int MENU_SHOWN
The event type for when a control shows its associated menu.

See Also:
Constant Field Values

OPERATION_CANCELLED

public static final int OPERATION_CANCELLED
See Also:
Constant Field Values

POPUP_CLOSED

public static final int POPUP_CLOSED
See Also:
Constant Field Values

exitKey

public int exitKey
This is set if one of the exit keys was pressed.


exitKeyModifiers

public int exitKeyModifiers
This is set if one of the exit keys was pressed.


oldOrNewFocus

public Control oldOrNewFocus
If the event is a FOCUS_IN then this is the control that is losing focus. If it is a FOCUS_OUT then this is the control that is taking away the focus.


action

public String action
If the event is a PRESSED event, and an mButton generated the event, then this value will be equal to the "action" value of the button, or the button's text if its action is null.

Constructor Detail

ControlEvent

public ControlEvent()

ControlEvent

public ControlEvent(int type,
                    Control c)
Constructs a control event of the given type.

Parameters:
type - the type of event
c - the target control