JIDE 3.5.15

com.jidesoft.swing
Class JideToggleSplitButton.ToggleSplitButtonModel

java.lang.Object
  extended by javax.swing.DefaultButtonModel
      extended by com.jidesoft.swing.DefaultSplitButtonModel
          extended by 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

Field Summary
 
Fields inherited from class com.jidesoft.swing.DefaultSplitButtonModel
BUTTON_ENABLED, BUTTON_ROLLOVER, BUTTON_SELECTED
 
Fields inherited from class javax.swing.DefaultButtonModel
actionCommand, ARMED, changeEvent, ENABLED, group, listenerList, mnemonic, PRESSED, ROLLOVER, SELECTED, stateMask
 
Constructor Summary
JideToggleSplitButton.ToggleSplitButtonModel()
          Creates a new ToggleButton Model
 
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 com.jidesoft.swing.DefaultSplitButtonModel
isButtonEnabled, isButtonRollover, setButtonEnabled, setButtonRollover, setRollover
 
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
 
Methods inherited from interface java.awt.ItemSelectable
getSelectedObjects
 

Constructor Detail

JideToggleSplitButton.ToggleSplitButtonModel

public JideToggleSplitButton.ToggleSplitButtonModel()
Creates a new ToggleButton Model

Method Detail

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

JIDE 3.5.15