public class ControlEvent extends Event<ControlListener>
Event.Type<H>| Modifier and Type | Field and Description |
|---|---|
static int |
CURSOR_CHANGED
Event sent when user called Edit.setCursorPos
|
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 |
HIGHLIGHT_IN
The event type for the control focus indicator changing to a new control.
|
static int |
HIGHLIGHT_OUT
The event type for the control focus indicator leaving a control.
|
static int |
PRESSED
The event type for a pressed event.
|
static int |
SIP_CLOSED
The event type fot the SIP being closed by the system.
|
static int |
WINDOW_CLOSED
The event type for a closing window.
|
| Constructor and Description |
|---|
ControlEvent()
Constructs an empty ControlEvent.
|
ControlEvent(int type,
Control c)
Constructs a control event of the given type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispatch(ControlListener listener) |
java.lang.String |
toString() |
ControlEvent |
update(Control c)
Updates the control event setting the timestamp, consumed and target.
|
clearQueue, getNextAvailableEventId, isAvailable, touchpublic static final int PRESSED
public static final int FOCUS_IN
public static final int FOCUS_OUT
public static final int WINDOW_CLOSED
public static final int HIGHLIGHT_IN
public static final int HIGHLIGHT_OUT
public static final int SIP_CLOSED
public static final int CURSOR_CHANGED
public ControlEvent()
public ControlEvent(int type,
Control c)
type - the type of eventc - the target controlpublic ControlEvent update(Control c)
public java.lang.String toString()
toString in class Event<ControlListener>public void dispatch(ControlListener listener)
dispatch in class Event<ControlListener>