Class SwitchList

All Implemented Interfaces:
Animation, Editable, ActionListener, ActionSource, DataChangedListener, SelectionListener, StyleListener, Iterable<Component>

public class SwitchList extends ButtonList
A list of switches.
  • Constructor Details

  • Method Details

    • createButton

      protected Component createButton(Object model)
      Description copied from class: ButtonList

      Creates a new button for this list. Should be implemented by subclasses to create the correct kind of button.

      Parameters
      • model
      Specified by:
      createButton in class ButtonList
    • setSelected

      protected void setSelected(Component button, boolean selected)
      Description copied from class: ButtonList

      Sets the given button's selected state.

      Parameters
      • button: The button (in the form produced by #createButton.

      • selected: Whether the button is selected or not.

      Specified by:
      setSelected in class ButtonList
    • decorateComponent

      protected Component decorateComponent(Object modelItem, Component b)
      Description copied from class: ButtonList

      Decorates buttons. This allows subclasses to add event listeners to buttons.

      Parameters
      • b: The button in the form returned by #createButton(java.lang.Object)
      Returns

      Should pass back the same component it receives.

      Overrides:
      decorateComponent in class ButtonList
    • undecorateComponent

      protected Component undecorateComponent(Component b)
      Description copied from class: ButtonList

      Undecorates buttons. This allows subclasses to remove event listeners from buttons.

      Parameters
      • b: The button in the form returned by #createButton(java.lang.Object)
      Returns

      Should pass back the same component it receives.

      Overrides:
      undecorateComponent in class ButtonList