Methods Summary |
---|
public void | addActionListener(java.awt.event.ActionListener l)Adds an ActionListener to the button.
|
public void | addChangeListener(javax.swing.event.ChangeListener l)Adds a ChangeListener to the button.
|
public void | addItemListener(java.awt.event.ItemListener l)Adds an ItemListener to the button.
|
public java.lang.String | getActionCommand()Returns the action command for this button.
|
public int | getMnemonic()Gets the keyboard mnemonic for this model
|
public boolean | isArmed()Indicates partial commitment towards pressing the
button.
|
public boolean | isEnabled()Indicates if the button can be selected or pressed by
an input device (such as a mouse pointer). (Check boxes
are selected, regular buttons are "pressed".)
|
public boolean | isPressed()Indicates if button has been pressed.
|
public boolean | isRollover()Indicates that the mouse is over the button.
|
public boolean | isSelected()Indicates if the button has been selected. Only needed for
certain types of buttons - such as radio buttons and check boxes.
|
public void | removeActionListener(java.awt.event.ActionListener l)Removes an ActionListener from the button.
|
public void | removeChangeListener(javax.swing.event.ChangeListener l)Removes a ChangeListener from the button.
|
public void | removeItemListener(java.awt.event.ItemListener l)Removes an ItemListener from the button.
|
public void | setActionCommand(java.lang.String s)Sets the actionCommand string that gets sent as part of the
event when the button is pressed.
|
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.
|
public void | setEnabled(boolean b)Enables or disables the button.
|
public void | setGroup(javax.swing.ButtonGroup group)Identifies the group this button belongs to --
needed for radio buttons, which are mutually
exclusive within their group.
|
public void | setMnemonic(int key)Sets the keyboard mnemonic (shortcut key or
accelerator key) for this button.
|
public void | setPressed(boolean b)Sets the button to pressed or unpressed.
|
public void | setRollover(boolean b)Sets or clears the button's rollover state
|
public void | setSelected(boolean b)Selects or deselects the button.
|