Class java.rmi.examples.remoteControl.ActionButton
All Packages Class Hierarchy This Package Previous Next Index
Class java.rmi.examples.remoteControl.ActionButton
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Button
|
+----java.rmi.examples.remoteControl.ActionButton
- public class ActionButton
- extends Button
This class provides buttons that poke at another object's "action"
method. This allows all the buttons to be of one type, and differ
only in the type of object that implements ButtonAction.
- See Also:
- ButtonAction
-
ActionButton(ButtonAction)
- Create a new button that will invoke the
action
object's action method when its action
method is invoked.
-
action(Event, Object)
- Invoke the action object's
action method
-
actionObject()
- Return the action object associated with the button.
ActionButton
public ActionButton(ButtonAction action)
- Create a new button that will invoke the
action
object's action method when its action
method is invoked. The constructor invokes the object's
setup method so it can set the button label or
anything else it needs to configure in the button.
action
public boolean action(Event evt,
Object obj)
- Invoke the action object's
action method
- Overrides:
- action in class Component
actionObject
public ButtonAction actionObject()
- Return the action object associated with the button.
All Packages Class Hierarchy This Package Previous Next Index