Class GridEvent


  • public class GridEvent
    extends Event
    An event generated when the user clicks on a grid or checks it.
    Since:
    SuperWaba 5.54
    • 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.
    • Constructor Detail

      • GridEvent

        public GridEvent()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Event