Class FlatTriStateCheckBox

    • Constructor Detail

      • FlatTriStateCheckBox

        public FlatTriStateCheckBox()
      • FlatTriStateCheckBox

        public FlatTriStateCheckBox​(String text)
    • Method Detail

      • isIndeterminate

        public boolean isIndeterminate()
        Returns whether state is indeterminate.
      • setIndeterminate

        public void setIndeterminate​(boolean indeterminate)
        Sets indeterminate state.
      • isAllowIndeterminate

        public boolean isAllowIndeterminate()
        Returns whether indeterminate state is allowed.

        This affects only the user when clicking on the checkbox. Setting state to indeterminate via API is always allowed.

      • setAllowIndeterminate

        public void setAllowIndeterminate​(boolean allowIndeterminate)
        Sets whether indeterminate state is allowed.

        This affects only the user when clicking on the checkbox. Setting state to indeterminate via API is always allowed.

      • isAltStateCycleOrder

        public boolean isAltStateCycleOrder()
        Returns whether alternative state cycle order should be used.
      • setAltStateCycleOrder

        public void setAltStateCycleOrder​(boolean altStateCycleOrder)
        Sets whether alternative state cycle order should be used.
      • paintIndeterminateState

        protected void paintIndeterminateState​(Graphics g)
        Paints the indeterminate state if the current LaF does not support displaying the indeterminate state. The default implementation draws a magenta rectangle around the component.
      • isIndeterminateStateSupported

        protected boolean isIndeterminateStateSupported()
        Returns whether the current LaF supports displaying the indeterminate state. Returns true for FlatLaf and macOS Aqua.