Home » openjdk-7 » javax » swing » [javadoc | source]
public static class: JToggleButton.ToggleButtonModel [javadoc | source]

All Implemented Interfaces:
    ButtonModel, Serializable

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 java.beans.XMLEncoder .
Fields inherited from javax.swing.DefaultButtonModel:
stateMask,  actionCommand,  group,  mnemonic,  changeEvent,  listenerList,  ARMED,  SELECTED,  PRESSED,  ENABLED,  ROLLOVER
 public ToggleButtonModel() 
Method from javax.swing.JToggleButton$ToggleButtonModel Summary:
isSelected,   setPressed,   setSelected
Methods from javax.swing.DefaultButtonModel:
addActionListener,   addChangeListener,   addItemListener,   fireActionPerformed,   fireItemStateChanged,   fireStateChanged,   getActionCommand,   getActionListeners,   getChangeListeners,   getGroup,   getItemListeners,   getListeners,   getMnemonic,   getSelectedObjects,   isArmed,   isEnabled,   isMenuItem,   isPressed,   isRollover,   isSelected,   removeActionListener,   removeChangeListener,   removeItemListener,   setActionCommand,   setArmed,   setEnabled,   setGroup,   setMenuItem,   setMnemonic,   setPressed,   setRollover,   setSelected
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.JToggleButton$ToggleButtonModel Detail:
 public boolean isSelected() 
    Checks if the button is selected.
 public  void setPressed(boolean b) 
    Sets the pressed state of the toggle button.
 public  void setSelected(boolean b) 
    Sets the selected state of the button.