All Packages Class Hierarchy This Package Previous Next Index
Class ejmf.toolkit.controls.RateControl
java.lang.Object
|
+----ejmf.toolkit.controls.RateControl
- public class RateControl
- extends Object
- implements ActionListener, ControllerListener, Control
Provides a generic Control over a Controller's rate. The
graphical interface is a simple rate TextField. When the user
hits enter, the rate in the TextField will be set in the
Player.
-
RateControl(Controller)
- Construct a RateControl object for the given Controller.
-
actionPerformed(ActionEvent)
- Listens for changes in the Rate TextField.
-
controllerUpdate(ControllerEvent)
- Listens for changes in the Controller's rate, so that it
can be reflected in the Rate TextField.
-
getControlComponent()
- For implementation of the Control interface.
RateControl
public RateControl(Controller controller)
- Construct a RateControl object for the given Controller.
actionPerformed
public void actionPerformed(ActionEvent e)
- Listens for changes in the Rate TextField.
- Parameters:
- e - An ActionEvent fired by activity
in text field.
controllerUpdate
public void controllerUpdate(ControllerEvent e)
- Listens for changes in the Controller's rate, so that it
can be reflected in the Rate TextField.
- Parameters:
- e
- The generated ControllerEvent. This event is
ignored if it is not a RateChangeEvent.
getControlComponent
public Component getControlComponent()
- For implementation of the Control interface.
- Returns:
- the Control Component for this object.
All Packages Class Hierarchy This Package Previous Next Index