Interface java.awt.swing.ButtonModel
- Implementing Classes:
- DefaultButtonModel
- public interface ButtonModel
- extends ItemSelectable
State Model for Buttons
isArmed
public boolean isArmed()
isSelected
public boolean isSelected()
isEnabled
public boolean isEnabled()
isPressed
public boolean isPressed()
isRollover
public boolean isRollover()
setArmed
public 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
setSelected
public void setSelected(boolean b)
setEnabled
public void setEnabled(boolean b)
setPressed
public void setPressed(boolean b)
setRollover
public void setRollover(boolean b)
setMnemonic
public void setMnemonic(int key)
getMnemonic
public int getMnemonic()
setActionCommand
public void setActionCommand(String s)
getActionCommand
public String getActionCommand()
setGroup
public void setGroup(ButtonGroup group)
addActionListener
public void addActionListener(ActionListener l)
removeActionListener
public void removeActionListener(ActionListener l)
addItemListener
public void addItemListener(ItemListener l)
- Implements:
- addItemListener in interface ItemSelectable
removeItemListener
public void removeItemListener(ItemListener l)
- Implements:
- removeItemListener in interface ItemSelectable
addChangeListener
public void addChangeListener(ChangeListener l)
removeChangeListener
public void removeChangeListener(ChangeListener l)
Submit a bug or feature
Submit comments/suggestions about new javadoc look.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.