Class CheckBoxToggleEvent

java.lang.Object
java.util.EventObject
java.awt.AWTEvent
rma.swing.event.CheckBoxToggleEvent
All Implemented Interfaces:
Serializable

public class CheckBoxToggleEvent extends AWTEvent
A semantic event which indicates that a component-defined action occured. This high-level event is generated by a RMAJCheckBoxList when the checkbox associted with an object in the list has been changed. The event is passed to every every CheckBoxToggleListener object that registered to receive such events using the component's addCheckBoxToggleListener method.

The object that implements the CheckBoxToggleListener interface gets this CheckBoxToggleEvent when the event occurs. The listener is therefore spared the details of processing individual mouse movements and mouse clicks, and can instead process a "meaningful" (semantic) event of checkbox toggled.

See Also:
  • Field Details

    • ACTION_FIRST

      public static final int ACTION_FIRST
      The first number in the range of ids used for action events.
      See Also:
    • ACTION_LAST

      public static final int ACTION_LAST
      The last number in the range of ids used for action events.
      See Also:
    • CHECKBOX_TOGGLED

      public static final int CHECKBOX_TOGGLED
      This event id indicates that a meaningful action occured.
      See Also:
  • Constructor Details

    • CheckBoxToggleEvent

      public CheckBoxToggleEvent(Object source, int index, boolean selected)
  • Method Details

    • getIndex

      public int getIndex()
    • getSelected

      public boolean getSelected()