All Packages Class Hierarchy This Package Previous Next Index
Class jp.kyasu.awt.AbstractButton
java.lang.Object
|
+----java.awt.Component
|
+----jp.kyasu.awt.KComponent
|
+----jp.kyasu.awt.Label
|
+----jp.kyasu.awt.AbstractButton
- public abstract class AbstractButton
- extends Label
The AbstractButton
class is an abstract base class for all
buttons such as Button
, ToggleButton
, and
Checkbox
.
An AbstractButton is controlled by the ButtonController
object.
- Version:
- 07 Jun 1998
- Author:
- Kazuki YASUMATSU
- See Also:
- ButtonController, Button, ToggleButton, Checkbox
-
actionPerformed()
- Invoked when the button has been triggered by the controller.
-
getActionCommand()
- Returns the command name of the action event fired by this button.
-
getController()
- Returns the controller of this button.
-
getLabel()
- Gets the label of this button.
-
getVButton()
- Returns the visual button of this button.
-
isFocusTraversable()
- Tests if the button can be traversed using Tab or Shift-Tab keyboard
focus traversal.
-
itemStateChanged(boolean)
- Invoked when the button has been toggled by the controller.
-
setActionCommand(String)
- Sets the command name for the action event fired by this button.
-
setLabel(String)
- Sets the button's label to be the specified string.
-
setVButton(VAbstractButton)
- Sets the visual button of this button to the specified viaul button.
actionPerformed
public abstract void actionPerformed()
- Invoked when the button has been triggered by the controller.
itemStateChanged
public abstract void itemStateChanged(boolean selected)
- Invoked when the button has been toggled by the controller.
isFocusTraversable
public boolean isFocusTraversable()
- Tests if the button can be traversed using Tab or Shift-Tab keyboard
focus traversal.
- Overrides:
- isFocusTraversable in class KComponent
setActionCommand
public synchronized void setActionCommand(String command)
- Sets the command name for the action event fired by this button.
By default this action command is set to match the label of the
button.
- Parameters:
- command - A string used to set the button's action command.
- See Also:
- getActionCommand
getActionCommand
public String getActionCommand()
- Returns the command name of the action event fired by this button.
- See Also:
- setActionCommand
getLabel
public String getLabel()
- Gets the label of this button.
- Returns:
- the button's label.
- See Also:
- setLabel
setLabel
public void setLabel(String label)
- Sets the button's label to be the specified string.
- Parameters:
- label - the new label.
- See Also:
- getLabel
getController
public ButtonController getController()
- Returns the controller of this button.
getVButton
public VAbstractButton getVButton()
- Returns the visual button of this button.
- Returns:
- the visual button of this button.
- See Also:
- setVButton
setVButton
public synchronized void setVButton(VAbstractButton vbutton)
- Sets the visual button of this button to the specified viaul button.
- Parameters:
- vbutton - the visual button.
- See Also:
- getVButton
All Packages Class Hierarchy This Package Previous Next Index