Interface IUIBooleanSelectionComp

All Superinterfaces:
IComponent, ICustomDataProvider, IGProp<GProp<?>[]>, IMessageBox, IPropCnr, IUIComp, IUISelectionComp, IVSComponentListener, IVSComponentState, IVSFieldListener
All Known Subinterfaces:
IUICheck2Component, IUIRadioComponent
All Known Implementing Classes:
CalendarEvent, ECalendarEvent, EMapMarkerProp, EMUISwitch, EUIRadioButton, EUIRadioMenuItem, EUITitlePane, MapMarkerProp, MUISwitch, UIRadioButton, UIRadioMenuItem, UITitlePane

public interface IUIBooleanSelectionComp extends IUISelectionComp
The boolean component supports an on/off or selected/unselected state only.
Author:
Christopher Mindus
  • Method Details

    • isSelected

      boolean isSelected()
      Returns the selection state.
      Specified by:
      isSelected in interface IUISelectionComp
      Returns:
      true if selected, false if unselected.
    • isUnselected

      boolean isUnselected()
      Returns if the selection is not set.
      Returns:
      true if unselected, false if selected.
    • isON

      boolean isON()
      Returns if the selection is "on".
      Returns:
      true if on, false if off.
    • isOFF

      boolean isOFF()
      Returns if the selection is "off".
      Returns:
      true if off, false if on.
    • setSelection

      boolean setSelection(boolean isSelected)
      Sets the selection.
      Parameters:
      isSelected - The selected state.
      Returns:
      true if state is changed, false for no change.
    • isSelectionBooleanBased

      default boolean isSelectionBooleanBased()
      Returns if the selection component supports boolean based selection.
      Specified by:
      isSelectionBooleanBased in interface IUISelectionComp
      Returns:
      true.