|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Unsafe:
Method Summary | |
void |
addActionListener(ActionListener l)
Enabled: Adds an ActionListener to the button. |
void |
addChangeListener(ChangeListener l)
Enabled: Adds a ChangeListener to the button. |
void |
addItemListener(ItemListener l)
Enabled: Adds an ItemListener to the button. |
String |
getActionCommand()
Suppressed: Returns the action command for this button. |
int |
getMnemonic()
Enabled: Gets the keyboard mnemonic for this model |
boolean |
isArmed()
Enabled: Indicates partial commitment towards pressing the button. |
boolean |
isEnabled()
Enabled: Indicates if the button can be selected or pressed by an input device (such as a mouse pointer). |
boolean |
isPressed()
Enabled: Indicates if button has been pressed. |
boolean |
isRollover()
Enabled: Indicates that the mouse is over the button. |
boolean |
isSelected()
Enabled: Indicates if the button has been selected. |
void |
removeActionListener(ActionListener l)
Enabled: Removes an ActionListener from the button. |
void |
removeChangeListener(ChangeListener l)
Enabled: Removes a ChangeListener from the button. |
void |
removeItemListener(ItemListener l)
Enabled: Removes an ItemListener from the button. |
void |
setActionCommand(String s)
Enabled: Sets the actionCommand string that gets sent as part of the event when the button is pressed. |
void |
setArmed(boolean b)
Enabled: Marks the button as "armed". |
void |
setEnabled(boolean b)
Enabled: Enables or disables the button. |
void |
setGroup(ButtonGroup group)
Enabled: Identifies the group this button belongs to -- needed for radio buttons, which are mutually exclusive within their group. |
void |
setMnemonic(int key)
Enabled: Sets the keyboard mnemonic (shortcut key or accelerator key) for this button. |
void |
setPressed(boolean b)
Enabled: Sets the button to pressed or unpressed. |
void |
setRollover(boolean b)
Enabled: Sets or clears the button's rollover state |
void |
setSelected(boolean b)
Enabled: Selects or deselects the button. |
Methods inherited from interface java.awt.ItemSelectable |
getSelectedObjects |
Method Detail |
public boolean isArmed()
setArmed(boolean)
public boolean isSelected()
public boolean isEnabled()
public boolean isPressed()
public boolean isRollover()
public void setArmed(boolean b)
b
- true to arm the button so it can be selectedpublic void setSelected(boolean b)
b
- true selects the button,
false deselects the button.public void setEnabled(boolean b)
b
- true to enable the buttonisEnabled()
public void setPressed(boolean b)
b
- true to set the button to "pressed"isPressed()
public void setRollover(boolean b)
b
- true to turn on rolloverisRollover()
public void setMnemonic(int key)
key
- an int specifying the accelerator keypublic int getMnemonic()
setMnemonic(int)
public void setActionCommand(String s)
s
- the String that identifies the generated eventpublic String getActionCommand()
setActionCommand(java.lang.String)
public void setGroup(ButtonGroup group)
group
- the ButtonGroup this button belongs topublic void addActionListener(ActionListener l)
l
- the listener to addpublic void removeActionListener(ActionListener l)
l
- the listener to removepublic void addItemListener(ItemListener l)
addItemListener
in interface ItemSelectable
l
- the listener to addItemEvent
public void removeItemListener(ItemListener l)
removeItemListener
in interface ItemSelectable
l
- the listener to removeItemEvent
public void addChangeListener(ChangeListener l)
l
- the listener to addpublic void removeChangeListener(ChangeListener l)
l
- the listener to remove
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |