Package com.jidesoft.swing
Class DefaultSplitButtonModel
java.lang.Object
javax.swing.DefaultButtonModel
com.jidesoft.swing.DefaultSplitButtonModel
- All Implemented Interfaces:
SplitButtonModel,ItemSelectable,Serializable,ButtonModel
- Direct Known Subclasses:
JideToggleSplitButton.ToggleSplitButtonModel
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndicates that the button part of the split button is enabled or disabled.static final intIndicates that the button part of the split button is rollover.static final intIndicates that the button part of the split button has been selected.Fields inherited from class javax.swing.DefaultButtonModel
actionCommand, ARMED, changeEvent, ENABLED, group, listenerList, mnemonic, PRESSED, ROLLOVER, SELECTED, stateMask -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates if the button part of the JideSplitButton has been enabled.booleanIndicates if the button part of the JideSplitButton is rollover.booleanIndicates if the button part of the JideSplitButton has been selected.voidsetButtonEnabled(boolean b) Selects or deselects the button part of the JideSplitButton.voidsetButtonRollover(boolean b) Sets the button part of the JideSplitButton as rollover.voidsetButtonSelected(boolean b) Selects or deselects the button part of the JideSplitButton.voidsetRollover(boolean b) Methods inherited from class javax.swing.DefaultButtonModel
addActionListener, addChangeListener, addItemListener, fireActionPerformed, fireItemStateChanged, fireStateChanged, getActionCommand, getActionListeners, getChangeListeners, getGroup, getItemListeners, getListeners, getMnemonic, getSelectedObjects, isArmed, isEnabled, isPressed, isRollover, isSelected, removeActionListener, removeChangeListener, removeItemListener, setActionCommand, setArmed, setEnabled, setGroup, setMnemonic, setPressed, setSelectedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.ButtonModel
addActionListener, addChangeListener, addItemListener, getActionCommand, getGroup, getMnemonic, isArmed, isEnabled, isPressed, isRollover, isSelected, removeActionListener, removeChangeListener, removeItemListener, setActionCommand, setArmed, setEnabled, setGroup, setMnemonic, setPressed, setSelectedMethods inherited from interface java.awt.ItemSelectable
getSelectedObjects
-
Field Details
-
BUTTON_SELECTED
public static final int BUTTON_SELECTEDIndicates that the button part of the split button has been selected.- See Also:
-
BUTTON_ENABLED
public static final int BUTTON_ENABLEDIndicates that the button part of the split button is enabled or disabled.- See Also:
-
BUTTON_ROLLOVER
public static final int BUTTON_ROLLOVERIndicates 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:
setButtonSelectedin interfaceSplitButtonModel- 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:
isButtonSelectedin interfaceSplitButtonModel- Returns:
- true if the button is selected
-
setButtonEnabled
public void setButtonEnabled(boolean b) Selects or deselects the button part of the JideSplitButton.- Specified by:
setButtonEnabledin interfaceSplitButtonModel- 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:
isButtonEnabledin interfaceSplitButtonModel- Returns:
- true if the button is enabled
-
setButtonRollover
public void setButtonRollover(boolean b) Sets the button part of the JideSplitButton as rollover.- Specified by:
setButtonRolloverin interfaceSplitButtonModel- 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:
isButtonRolloverin interfaceSplitButtonModel- Returns:
- true if the button is rollover
-
setRollover
public void setRollover(boolean b) - Specified by:
setRolloverin interfaceButtonModel- Overrides:
setRolloverin classDefaultButtonModel
-