All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.sun.java.swing.ButtonModel

public interface ButtonModel
extends ItemSelectable
State Model for Buttons


Method Index

 o addActionListener(ActionListener)
 o addChangeListener(ChangeListener)
 o addItemListener(ItemListener)
 o getActionCommand()
 o getMnemonic()
 o isArmed()
 o isEnabled()
 o isPressed()
 o isRollover()
 o isSelected()
 o removeActionListener(ActionListener)
 o removeChangeListener(ChangeListener)
 o removeItemListener(ItemListener)
 o setActionCommand(String)
 o setArmed(boolean)
Marks the button as "armed".
 o setEnabled(boolean)
 o setGroup(ButtonGroup)
 o setMnemonic(int)
 o setPressed(boolean)
 o setRollover(boolean)
 o setSelected(boolean)

Methods

 o isArmed
 public abstract boolean isArmed()
 o isSelected
 public abstract boolean isSelected()
 o isEnabled
 public abstract boolean isEnabled()
 o isPressed
 public abstract boolean isPressed()
 o isRollover
 public abstract boolean isRollover()
 o setArmed
 public abstract void setArmed(boolean b)
Marks the button as "armed". If the mouse button is released while it is over this item, the button's action event fires. If the mouse button is released elsewhere, the event does not fire and the button is disarmed.

Parameters:
b - true to arm the button so it can be selected
 o setSelected
 public abstract void setSelected(boolean b)
 o setEnabled
 public abstract void setEnabled(boolean b)
 o setPressed
 public abstract void setPressed(boolean b)
 o setRollover
 public abstract void setRollover(boolean b)
 o setMnemonic
 public abstract void setMnemonic(int key)
 o getMnemonic
 public abstract int getMnemonic()
 o setActionCommand
 public abstract void setActionCommand(String s)
 o getActionCommand
 public abstract String getActionCommand()
 o setGroup
 public abstract void setGroup(ButtonGroup group)
 o addActionListener
 public abstract void addActionListener(ActionListener l)
 o removeActionListener
 public abstract void removeActionListener(ActionListener l)
 o addItemListener
 public abstract void addItemListener(ItemListener l)
 o removeItemListener
 public abstract void removeItemListener(ItemListener l)
 o addChangeListener
 public abstract void addChangeListener(ChangeListener l)
 o removeChangeListener
 public abstract void removeChangeListener(ChangeListener l)

All Packages  Class Hierarchy  This Package  Previous  Next  Index