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.


Constructor Index

 o RateControl(Controller)
Construct a RateControl object for the given Controller.

Method Index

 o actionPerformed(ActionEvent)
Listens for changes in the Rate TextField.
 o controllerUpdate(ControllerEvent)
Listens for changes in the Controller's rate, so that it can be reflected in the Rate TextField.
 o getControlComponent()
For implementation of the Control interface.

Constructors

 o RateControl
 public RateControl(Controller controller)
Construct a RateControl object for the given Controller.

Methods

 o actionPerformed
 public void actionPerformed(ActionEvent e)
Listens for changes in the Rate TextField.

Parameters:
e - An ActionEvent fired by activity in text field.
 o 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.
 o 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