All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class CH.ifa.draw.util.CommandButton

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Button
                   |
                   +----CH.ifa.draw.util.CommandButton

public class CommandButton
extends Button
implements ActionListener
A Command enabled button. Clicking the button executes the command.

See Also:
Command

Constructor Index

 o CommandButton(Command)
Initializes the button with the given command.

Method Index

 o actionPerformed(ActionEvent)
Executes the command.

Constructors

 o CommandButton
 public CommandButton(Command command)
Initializes the button with the given command. The command's name is used as the label.

Methods

 o actionPerformed
 public void actionPerformed(ActionEvent e)
Executes the command. If the command's name was changed as a result of the command the button's label is updated accordingly.


All Packages  Class Hierarchy  This Package  Previous  Next  Index