|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.fmj.ejmf.toolkit.controls.RateControl
public class RateControl
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. From the book: Essential JMF, Gordon, Talley (ISBN 0130801046). Used with permission.
Constructor Summary | |
---|---|
RateControl(Controller controller)
Construct a RateControl object for the given Controller. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Listens for changes in the Rate TextField. |
void |
controllerUpdate(ControllerEvent e)
Listens for changes in the Controller's rate, so that it can be reflected in the Rate TextField. |
java.awt.Component |
getControlComponent()
For implementation of the Control interface. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RateControl(Controller controller)
Method Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- An ActionEvent fired by activity
in text field.public void controllerUpdate(ControllerEvent e)
controllerUpdate
in interface ControllerListener
e
- The generated ControllerEvent. This event is
ignored if it is not a RateChangeEvent.public java.awt.Component getControlComponent()
getControlComponent
in interface Control
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |