com.jidesoft.swing
Class JideToggleSplitButton.ToggleSplitButtonModel
java.lang.Object
javax.swing.DefaultButtonModel
com.jidesoft.swing.DefaultSplitButtonModel
com.jidesoft.swing.JideToggleSplitButton.ToggleSplitButtonModel
- All Implemented Interfaces:
- SplitButtonModel, ItemSelectable, Serializable, ButtonModel
- Enclosing class:
- JideToggleSplitButton
public static class JideToggleSplitButton.ToggleSplitButtonModel
- extends DefaultSplitButtonModel
The ToggleButton model
Warning: Serialized objects of this class will not be compatible with future Swing releases. The
current serialization support is appropriate for short term storage or RMI between applications running the same
version of Swing. As of 1.4, support for long term storage of all JavaBeansTM
has been added to the java.beans
package. Please see XMLEncoder
.
- See Also:
- Serialized Form
Fields inherited from class javax.swing.DefaultButtonModel |
actionCommand, ARMED, changeEvent, ENABLED, group, listenerList, mnemonic, PRESSED, ROLLOVER, SELECTED, stateMask |
Method Summary |
boolean |
isButtonSelected()
Checks if the button is selected. |
void |
setButtonSelected(boolean b)
Sets the selected state of the button. |
void |
setPressed(boolean b)
Sets the pressed state of the toggle button. |
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, setSelected |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.ButtonModel |
addActionListener, addChangeListener, addItemListener, getActionCommand, getMnemonic, isArmed, isEnabled, isPressed, isRollover, isSelected, removeActionListener, removeChangeListener, removeItemListener, setActionCommand, setArmed, setEnabled, setGroup, setMnemonic, setSelected |
JideToggleSplitButton.ToggleSplitButtonModel
public JideToggleSplitButton.ToggleSplitButtonModel()
- Creates a new ToggleButton Model
isButtonSelected
public boolean isButtonSelected()
- Checks if the button is selected.
- Specified by:
isButtonSelected
in interface SplitButtonModel
- Overrides:
isButtonSelected
in class DefaultSplitButtonModel
- Returns:
- true if the button is selected
setButtonSelected
public void setButtonSelected(boolean b)
- Sets the selected state of the button.
- Specified by:
setButtonSelected
in interface SplitButtonModel
- Overrides:
setButtonSelected
in class DefaultSplitButtonModel
- Parameters:
b
- true selects the toggle button, false deselects the toggle button.
setPressed
public void setPressed(boolean b)
- Sets the pressed state of the toggle button.
- Specified by:
setPressed
in interface ButtonModel
- Overrides:
setPressed
in class DefaultButtonModel