|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
totalcross.lang.Objecttotalcross.ui.event.Event
totalcross.ui.event.ControlEvent
public class ControlEvent
ControlEvent is an event posted by a control.
| Field Summary | |
|---|---|
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 |
WINDOW_CLOSED
The event type for a closing window. |
| Fields inherited from class totalcross.ui.event.Event |
|---|
consumed, target, timeStamp, type |
| Constructor Summary | |
|---|---|
ControlEvent()
Constructs an empty ControlEvent. |
|
ControlEvent(int type,
Control c)
Constructs a control event of the given type. |
|
| Method Summary | |
|---|---|
String |
toString()
|
ControlEvent |
update(Control c)
Updates the control event setting the timestamp, consumed and target. |
| Methods inherited from class totalcross.ui.event.Event |
|---|
clearQueue, getNextAvailableEventId, isAvailable, touch |
| Methods inherited from class totalcross.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public 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
| Constructor Detail |
|---|
public ControlEvent()
public ControlEvent(int type,
Control c)
type - the type of eventc - the target control| Method Detail |
|---|
public ControlEvent update(Control c)
public String toString()
toString in class Event
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||