|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.fmj.ejmf.toolkit.gui.controls.AbstractListenerControl
net.sf.fmj.ejmf.toolkit.gui.controls.MouseListenerControl
net.sf.fmj.ejmf.toolkit.gui.controls.StandardReverseControl
public class StandardReverseControl
Reverse Control for StandardControlPanel. This Control is operational only if Controller supports negative rate.
Field Summary |
---|
Fields inherited from class net.sf.fmj.ejmf.toolkit.gui.controls.AbstractListenerControl |
---|
skin |
Constructor Summary | |
---|---|
StandardReverseControl(Skin skin)
|
|
StandardReverseControl(Skin skin,
Controller controller)
|
Method Summary | |
---|---|
protected java.awt.Component |
createControlComponent(Skin skin)
Subclasses defined this method to supply their GUI component. |
protected java.util.EventListener |
createControlListener()
Subclasses of AbstractListenerControl must define this method to supply an EventListener to handle events originating from control's component. |
protected void |
setControllerHook(Controller controller)
Determine operational state of Control based on ability to support negative rate. |
protected void |
setOperational(boolean isOperational)
Set the state of the listener. |
Methods inherited from class net.sf.fmj.ejmf.toolkit.gui.controls.MouseListenerControl |
---|
addControlListener, removeControlListener, setComponent, setComponentAndListener, setControlListener |
Methods inherited from class net.sf.fmj.ejmf.toolkit.gui.controls.AbstractListenerControl |
---|
getControlComponent, getController, getDefaultControlListener, initListener, isOperational, setComponent, setComponentAndListener, setController, setControlListener, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StandardReverseControl(Skin skin)
public StandardReverseControl(Skin skin, Controller controller)
Method Detail |
---|
protected java.awt.Component createControlComponent(Skin skin)
AbstractListenerControl
Listener registration is handled by AbstractListenerControl.
createControlComponent
in class AbstractListenerControl
protected void setOperational(boolean isOperational)
isOperational
is passed as true
, then the listener semantics
are applied in response to mouse activity. Otherwise, the
listener semantics are not applied.
This is used to disable default semantics if client control
panel simulates reversing media. In this case, setController
will call setOperational
with a true
value.
setOperational
in class AbstractListenerControl
isOperational
- Set to true to make control operational.protected void setControllerHook(Controller controller)
setControllerHook
in class AbstractListenerControl
controller
- Controller with which this control is associated.protected java.util.EventListener createControlListener()
AbstractListenerControl
Subclasses must not return a null listener.
createControlListener
in class AbstractListenerControl
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |