Class TriStateSelection

    • Constructor Detail

      • TriStateSelection

        public TriStateSelection​(IUITriStateSelectionComp source,
                                 int state)
        Constructor.
        Parameters:
        source - The component source.
        state - The check state.
    • Method Detail

      • getCheckState

        public int getCheckState()
        Gets the check state.
        Specified by:
        getCheckState in interface IUITriStateSelection
        Returns:
        Returns 0={$link #UNSELECTED}, 1={$link #CHECKED} or 2={$link #THIRD_STATE}.
      • isChecked

        public boolean isChecked()
        Returns if the state is checked.
        Specified by:
        isChecked in interface IUITriStateSelection
        Returns:
        true if checked, false if unselected or in third state.
      • isUnselected

        public boolean isUnselected()
        Returns if the state is unselected.
        Specified by:
        isUnselected in interface IUITriStateSelection
        Returns:
        true if unchecked, false if checked or in third state.
      • isThirdState

        public boolean isThirdState()
        Returns if the state is third state, i.e. neither checked nor unselected.
        Specified by:
        isThirdState in interface IUITriStateSelection
        Returns:
        true if third state, false if checked or unselected.
      • getUISource

        public UIComp getUISource()
        Gets the UI component being the source of the event.
        Specified by:
        getUISource in interface IUISelection
        Returns:
        The UI component.
      • equals

        public boolean equals​(java.lang.Object o)
        Equals.
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Converts the selection to a string.
        Overrides:
        toString in class java.lang.Object