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
-
CommandButton(Command)
- Initializes the button with the given command.
-
actionPerformed(ActionEvent)
- Executes the command.
CommandButton
public CommandButton(Command command)
- Initializes the button with the given command.
The command's name is used as the label.
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