ewe.ui
Class SoftKeyEvent

java.lang.Object
  extended byewe.ui.Event
      extended byewe.ui.SoftKeyEvent

public class SoftKeyEvent
extends Event


Field Summary
 String action
          This is the action for the button or for the selected menu item if available.
static int ACTION
           
 SoftKeyBar bar
          This is the bar that generated the event.
 Control proxy
          If the SoftKey button or menu item was a proxy for another control (usually a button) then this will be set to be that Control.
 MenuItem selectedItem
          If the event was caused by a menu item selection, then this will be that selected item.
 int whichKey
          This is the SoftKey that generated the event, starting from a value of 1 for the left key.
 
Fields inherited from class ewe.ui.Event
consumed, events, flags, target, timeStamp, type, window
 
Constructor Summary
SoftKeyEvent()
           
 
Method Summary
 boolean fireProxyAction()
          If the SoftKeyEvent was generated by a button or menu item that is associated with a proxy control, then call doAction() on that proxy and then return true.
 
Methods inherited from class ewe.ui.Event
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode
 

Field Detail

ACTION

public static final int ACTION
See Also:
Constant Field Values

bar

public SoftKeyBar bar
This is the bar that generated the event.


whichKey

public int whichKey
This is the SoftKey that generated the event, starting from a value of 1 for the left key.


action

public String action
This is the action for the button or for the selected menu item if available.


selectedItem

public MenuItem selectedItem
If the event was caused by a menu item selection, then this will be that selected item.


proxy

public Control proxy
If the SoftKey button or menu item was a proxy for another control (usually a button) then this will be set to be that Control.

Constructor Detail

SoftKeyEvent

public SoftKeyEvent()
Method Detail

fireProxyAction

public boolean fireProxyAction()
If the SoftKeyEvent was generated by a button or menu item that is associated with a proxy control, then call doAction() on that proxy and then return true. Otherwise do nothing and return false.