Class DefaultSplitButtonModel

java.lang.Object
javax.swing.DefaultButtonModel
com.jidesoft.swing.DefaultSplitButtonModel
All Implemented Interfaces:
SplitButtonModel, ItemSelectable, Serializable, ButtonModel
Direct Known Subclasses:
JideToggleSplitButton.ToggleSplitButtonModel

public class DefaultSplitButtonModel extends DefaultButtonModel implements SplitButtonModel
See Also:
  • Field Details

    • BUTTON_SELECTED

      public static final int BUTTON_SELECTED
      Indicates that the button part of the split button has been selected.
      See Also:
    • BUTTON_ENABLED

      public static final int BUTTON_ENABLED
      Indicates that the button part of the split button is enabled or disabled.
      See Also:
    • BUTTON_ROLLOVER

      public static final int BUTTON_ROLLOVER
      Indicates that the button part of the split button is rollover.
      See Also:
  • Constructor Details

    • DefaultSplitButtonModel

      public DefaultSplitButtonModel()
  • Method Details

    • setButtonSelected

      public void setButtonSelected(boolean b)
      Selects or deselects the button part of the JideSplitButton.
      Specified by:
      setButtonSelected in interface SplitButtonModel
      Parameters:
      b - true selects the button, false deselects the button
    • isButtonSelected

      public boolean isButtonSelected()
      Indicates if the button part of the JideSplitButton has been selected.
      Specified by:
      isButtonSelected in interface SplitButtonModel
      Returns:
      true if the button is selected
    • setButtonEnabled

      public void setButtonEnabled(boolean b)
      Selects or deselects the button part of the JideSplitButton.
      Specified by:
      setButtonEnabled in interface SplitButtonModel
      Parameters:
      b - true selects the button, false deselects the button
    • isButtonEnabled

      public boolean isButtonEnabled()
      Indicates if the button part of the JideSplitButton has been enabled.
      Specified by:
      isButtonEnabled in interface SplitButtonModel
      Returns:
      true if the button is enabled
    • setButtonRollover

      public void setButtonRollover(boolean b)
      Sets the button part of the JideSplitButton as rollover.
      Specified by:
      setButtonRollover in interface SplitButtonModel
      Parameters:
      b - true set the button as rollover, false set the button as not rollover
    • isButtonRollover

      public boolean isButtonRollover()
      Indicates if the button part of the JideSplitButton is rollover.
      Specified by:
      isButtonRollover in interface SplitButtonModel
      Returns:
      true if the button is rollover
    • setRollover

      public void setRollover(boolean b)
      Specified by:
      setRollover in interface ButtonModel
      Overrides:
      setRollover in class DefaultButtonModel