public class ControlEvent extends Event
Modifier and Type | Field and Description |
---|---|
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. one of the exit keys was pressed).
|
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 |
START_CUSTOM_EVENTS |
static int |
STRUCTURE_CHANGED
Used to indicate that the Control has changed its structure rather
than the user make a change.
|
static int |
TIMER
The event type for a timer event.
|
Constructor and Description |
---|
ControlEvent() |
ControlEvent(int type,
Control c)
Constructs a control event of the given type.
|
clearPostData, getPostData, isReused, setPostData, setReused
_getFieldType, _getSetField, cache, compareTo, copied, copyFrom, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getMyFieldList, getNew
public static final int PRESSED
public static final int FOCUS_IN
public static final int FOCUS_OUT
public static final int TIMER
public static final int CANCELLED
public static final int EXITED
public static final int MENU_SHOWN
public static final int STRUCTURE_CHANGED
public static final int START_CUSTOM_EVENTS
public static final int OPERATION_CANCELLED
public static final int POPUP_CLOSED
public int exitKey
public int exitKeyModifiers
public Control oldOrNewFocus
public String action
public ControlEvent()
public ControlEvent(int type, Control c)
type
- the type of eventc
- the target control