|
|||||||||
| 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.ActionListenerControl
public abstract class ActionListenerControl
All button controls extends from ActionListenerControl. ActionListenerControl supplies public methods for manipulating a control's EventListener as an ActionListener thereby providing type-safety.
| Field Summary |
|---|
| Fields inherited from class net.sf.fmj.ejmf.toolkit.gui.controls.AbstractListenerControl |
|---|
skin |
| Constructor Summary | |
|---|---|
protected |
ActionListenerControl(Skin skin)
Create an ActionListenerControl |
protected |
ActionListenerControl(Skin skin,
Controller controller)
Create an ActionListenerControl 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)
Add control semantics to this Control. |
void |
setComponent(javax.swing.AbstractButton button)
Type-way to set Control Component. |
void |
setComponentAndListener(javax.swing.AbstractButton button,
java.awt.event.ActionListener listener)
Type-way to set Control Component and control listener. |
void |
setControlListener(java.awt.event.ActionListener listener)
Type-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 ActionListenerControl(Skin skin,
Controller controller)
throws java.lang.ClassCastException
controller - A Controller with which listener is
associated.
java.lang.ClassCastExceptionprotected ActionListenerControl(Skin skin)
| Method Detail |
|---|
protected void removeControlListener(java.util.EventListener listener)
listener argument.
removeControlListener in class AbstractListenerControllistener - java.util.EventListener representing
control semantics to be removed.protected void addControlListener(java.util.EventListener listener)
addControlListener in class AbstractListenerControllistener - java.util.EventListener representing
control semantics to be added.
public void setComponentAndListener(javax.swing.AbstractButton button,
java.awt.event.ActionListener listener)
button - An AbstractButton that serves as Control
component.listener - An ActionListener that implements
Control semantics.public void setControlListener(java.awt.event.ActionListener listener)
listener - An ActionListener that implements
Control semantics.public void setComponent(javax.swing.AbstractButton button)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||