API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. JToggleButton.ToggleButtonModel View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      DefaultButtonModel
          JToggleButton.ToggleButtonModel
Implements
Subclasses
Description
publicstatic class JToggleButton.ToggleButtonModel
  The ToggleButton model
See also:   
Constructors
public JToggleButton.ToggleButtonModel ()
Creates a new ToggleButton Model
Methods
Hide/Show inherited methods
public void addActionListener (ActionListener l) [Inherited From DefaultButtonModel]
Adds an ActionListener to the model.
public void addChangeListener (ChangeListener l) [Inherited From DefaultButtonModel]
Adds a ChangeListener to the model.
public void addItemListener (ItemListener l) [Inherited From DefaultButtonModel]
  Adds a listener to receive item events when the state of an item is changed by the user.
protected void fireActionPerformed (ActionEvent e) [Inherited From DefaultButtonModel]
  Notifies all listeners that have registered interest for notification on this event type.
protected void fireItemStateChanged (ItemEvent e) [Inherited From DefaultButtonModel]
  Notifies all listeners that have registered interest for notification on this event type.
protected void fireStateChanged () [Inherited From DefaultButtonModel]
  Notifies all listeners that have registered interest for notification on this event type.
public String getActionCommand () [Inherited From DefaultButtonModel]
Returns the action command string for the button.
public ActionListener getActionListeners () [Inherited From DefaultButtonModel]
  Returns an array of all the action listeners registered on this DefaultButtonModel.
public ChangeListener getChangeListeners () [Inherited From DefaultButtonModel]
  Returns an array of all the change listeners registered on this DefaultButtonModel.
public ButtonGroup getGroup () [Inherited From DefaultButtonModel]
  Returns the group that the button belongs to.
public ItemListener getItemListeners () [Inherited From DefaultButtonModel]
  Returns an array of all the item listeners registered on this DefaultButtonModel.
public T getListeners (Class< T> listenerType) [Inherited From DefaultButtonModel]
  Returns an array of all the objects currently registered as FooListeners upon this model.
public int getMnemonic () [Inherited From DefaultButtonModel]
Gets the keyboard mnemonic for the button.
public Object getSelectedObjects () [Inherited From DefaultButtonModel]
Overridden to return null.
public boolean isArmed () [Inherited From DefaultButtonModel]
Indicates partial commitment towards triggering the button.
public boolean isEnabled () [Inherited From DefaultButtonModel]
Indicates if the button can be selected or triggered by an input device, such as a mouse pointer.
pack-private boolean isMenuItem () [Inherited From DefaultButtonModel]
public boolean isPressed () [Inherited From DefaultButtonModel]
Indicates if the button is pressed.
public boolean isRollover () [Inherited From DefaultButtonModel]
Indicates that the mouse is over the button.
public boolean isSelected () [Overrides DefaultButtonModel]
Checks if the button is selected.
public void removeActionListener (ActionListener l) [Inherited From DefaultButtonModel]
Removes an ActionListener from the model.
public void removeChangeListener (ChangeListener l) [Inherited From DefaultButtonModel]
Removes a ChangeListener from the model.
public void removeItemListener (ItemListener l) [Inherited From DefaultButtonModel]
  Removes an item listener.
public void setActionCommand (String actionCommand) [Inherited From DefaultButtonModel]
Sets the action command string that gets sent as part of the ActionEvent when the button is triggered.
public void setArmed (boolean b) [Inherited From DefaultButtonModel]
Marks the button as armed or unarmed.
public void setEnabled (boolean b) [Inherited From DefaultButtonModel]
Enables or disables the button.
public void setGroup (ButtonGroup group) [Inherited From DefaultButtonModel]
Identifies the group the button belongs to -- needed for radio buttons, which are mutually exclusive within their group.
pack-private void setMenuItem (boolean menuItem) [Inherited From DefaultButtonModel]
public void setMnemonic (int key) [Inherited From DefaultButtonModel]
Sets the keyboard mnemonic (shortcut key or accelerator key) for the button.
public void setPressed (boolean b) [Overrides DefaultButtonModel]
Sets the pressed state of the toggle button.
public void setRollover (boolean b) [Inherited From DefaultButtonModel]
Sets or clears the button's rollover state
public void setSelected (boolean b) [Overrides DefaultButtonModel]
  Sets the selected state of the button.
Fields
Hide/Show inherited fields
protected String actionCommand [Inherited From DefaultButtonModel]
The action command string fired by the button.
publicfinalstatic int ARMED = "1" [Inherited From DefaultButtonModel]
Identifies the "armed" bit in the bitmask, which indicates partial commitment towards choosing/triggering the button.
protectedtransient ChangeEvent changeEvent [Inherited From DefaultButtonModel]
  Only one ChangeEvent is needed per button model instance since the event's only state is the source property.
publicfinalstatic int ENABLED = "8" [Inherited From DefaultButtonModel]
Identifies the "enabled" bit in the bitmask, which indicates that the button can be selected by an input device (such as a mouse pointer).
protected ButtonGroup group [Inherited From DefaultButtonModel]
The button group that the button belongs to.
protected EventListenerList listenerList [Inherited From DefaultButtonModel]
Stores the listeners on this model.
protected int mnemonic [Inherited From DefaultButtonModel]
The button's mnemonic.
publicfinalstatic int PRESSED = "4" [Inherited From DefaultButtonModel]
Identifies the "pressed" bit in the bitmask, which indicates that the button is pressed.
publicfinalstatic int ROLLOVER = "16" [Inherited From DefaultButtonModel]
Identifies the "rollover" bit in the bitmask, which indicates that the mouse is over the button.
publicfinalstatic int SELECTED = "2" [Inherited From DefaultButtonModel]
  Identifies the "selected" bit in the bitmask, which indicates that the button has been selected.
protected int stateMask [Inherited From DefaultButtonModel]
The bitmask used to store the state of the button.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar