Package totalcross.ui.event
Class GridEvent
- java.lang.Object
-
- totalcross.ui.event.Event
-
- totalcross.ui.event.GridEvent
-
public class GridEvent extends Event
An event generated when the user clicks on a grid or checks it.- Since:
- SuperWaba 5.54
-
-
Field Summary
Fields Modifier and Type Field Description static intCHECK_CHANGED_EVENTEvent generated when a grid row was checked or unchecked.booleancheckedTrue if the column is checked.intcolStores the target column of this grid event.introwStores the target row of this grid event.static intSELECTED_EVENTEvent generated when a new row was selected.static intTEXT_CHANGED_EVENTGenerated when an editable column had its text changed.
-
Constructor Summary
Constructors Constructor Description GridEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()-
Methods inherited from class totalcross.ui.event.Event
clearQueue, getNextAvailableEventId, isAvailable, touch
-
-
-
-
Field Detail
-
SELECTED_EVENT
public static final int SELECTED_EVENT
Event generated when a new row was selected. In penless devices, the user must press 0-9 to dispatch the event.- See Also:
- Constant Field Values
-
CHECK_CHANGED_EVENT
public static final int CHECK_CHANGED_EVENT
Event generated when a grid row was checked or unchecked. Verify the checked member to determine the current state.- See Also:
- Constant Field Values
-
TEXT_CHANGED_EVENT
public static final int TEXT_CHANGED_EVENT
Generated when an editable column had its text changed.- See Also:
- Constant Field Values
-
checked
public boolean checked
True if the column is checked. On grid that has no check column, this member is useless.
-
row
public int row
Stores the target row of this grid event. If the user checked all checks (by clicking in the header check), it is Grid.ALL_CHECKED; otherwise, if the user unchecked all lines, it is Grid.ALL_UNCHECKED.
-
col
public int col
Stores the target column of this grid event. On grid that has a check column, the columns text starts from 1, otherwise, if no check, it starts from 0.
-
-