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

Method Index

 o actionPerformed()
Invoked when the button has been triggered by the controller.
 o getActionCommand()
Returns the command name of the action event fired by this button.
 o getController()
Returns the controller of this button.
 o getLabel()
Gets the label of this button.
 o getVButton()
Returns the visual button of this button.
 o isFocusTraversable()
Tests if the button can be traversed using Tab or Shift-Tab keyboard focus traversal.
 o itemStateChanged(boolean)
Invoked when the button has been toggled by the controller.
 o setActionCommand(String)
Sets the command name for the action event fired by this button.
 o setLabel(String)
Sets the button's label to be the specified string.
 o setVButton(VAbstractButton)
Sets the visual button of this button to the specified viaul button.

Methods

 o actionPerformed
 public abstract void actionPerformed()
Invoked when the button has been triggered by the controller.

 o itemStateChanged
 public abstract void itemStateChanged(boolean selected)
Invoked when the button has been toggled by the controller.

 o isFocusTraversable
 public boolean isFocusTraversable()
Tests if the button can be traversed using Tab or Shift-Tab keyboard focus traversal.

Overrides:
isFocusTraversable in class KComponent
 o 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
 o getActionCommand
 public String getActionCommand()
Returns the command name of the action event fired by this button.

See Also:
setActionCommand
 o getLabel
 public String getLabel()
Gets the label of this button.

Returns:
the button's label.
See Also:
setLabel
 o setLabel
 public void setLabel(String label)
Sets the button's label to be the specified string.

Parameters:
label - the new label.
See Also:
getLabel
 o getController
 public ButtonController getController()
Returns the controller of this button.

 o getVButton
 public VAbstractButton getVButton()
Returns the visual button of this button.

Returns:
the visual button of this button.
See Also:
setVButton
 o 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