|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.fmj.ejmf.toolkit.gui.controls.AbstractListenerControl net.sf.fmj.ejmf.toolkit.gui.controls.ChangeListenerControl
public abstract class ChangeListenerControl
A Control that requires ChangeListener will extend from ChangeListenerControl.
Field Summary |
---|
Fields inherited from class net.sf.fmj.ejmf.toolkit.gui.controls.AbstractListenerControl |
---|
skin |
Constructor Summary | |
---|---|
protected |
ChangeListenerControl(Skin skin)
Create a ChangeListenerControl |
protected |
ChangeListenerControl(Skin skin,
Controller controller)
Create a ChangeListenerControl and associate it with a Controller. |
Method Summary | |
---|---|
protected void |
addControlListener(java.util.EventListener listener)
Add control semantics to this Control. |
protected void |
removeControlListener(java.util.EventListener listener)
Remove control semantics from this Control. |
void |
setComponent(ProgressSlider slider)
Type-safe way to set Control Component. |
void |
setComponentAndListener(ProgressSlider slider,
javax.swing.event.ChangeListener listener)
Type-safe way to set Control Component and control listener. |
void |
setControlListener(javax.swing.event.ChangeListener listener)
Type-safe way to set Control listener. |
Methods inherited from class net.sf.fmj.ejmf.toolkit.gui.controls.AbstractListenerControl |
---|
createControlComponent, createControlListener, getControlComponent, getController, getDefaultControlListener, initListener, isOperational, setComponent, setComponentAndListener, setController, setControllerHook, setControlListener, setOperational, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected ChangeListenerControl(Skin skin, Controller controller)
controller
- A Controller with which listener is
associated.protected ChangeListenerControl(Skin skin)
Method Detail |
---|
protected void addControlListener(java.util.EventListener listener)
listener
argument.
addControlListener
in class AbstractListenerControl
listener
- java.util.EventListener representing
control semantics to be removed.protected void removeControlListener(java.util.EventListener listener)
removeControlListener
in class AbstractListenerControl
listener
- java.util.EventListener representing
control semantics to be added.public void setComponentAndListener(ProgressSlider slider, javax.swing.event.ChangeListener listener)
slider
- A ProgressSlider that serves as Control
component.listener
- A ChangeListener that implements
Control semantics.public void setControlListener(javax.swing.event.ChangeListener listener)
listener
- A ChangeListener that implements
Control semantics.public void setComponent(ProgressSlider slider)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |