|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.ui.event.ActionCoordinator
public class ActionCoordinator
An ActionCoordinator helps manage the set of objects that send and receive an ActionValueEvent. It is assumed that each event generator is also interested in recieving the event if its from someone else; these objects are of type ActionSourceListener. For each kind of event, an ActionCoordinator object is created. When it gets an event, it sends it to all others who have registered except not to the event source.
ActionValueEvent,
ActionSourceListener| Constructor Summary | |
|---|---|
ActionCoordinator(String eventType)
_more_ |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionValueEvent e)
_more_ |
void |
addActionSourceListener(ActionSourceListener l)
add an ActionSource listener |
static void |
main(String[] argv)
add an ActionValue listener public void addActionValueListener( ActionValueListener l) { lm.addListener(l); } /** remove an ActionValue listener public void removeActionValueListener( ActionValueListener l) { lm.removeListener(l); } |
void |
removeActionSourceListener(ActionSourceListener l)
remove an ActionSource listener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActionCoordinator(String eventType)
eventType - | Method Detail |
|---|
public void actionPerformed(ActionValueEvent e)
actionPerformed in interface ActionValueListenere - public void addActionSourceListener(ActionSourceListener l)
l - public void removeActionSourceListener(ActionSourceListener l)
l - public static void main(String[] argv)
argv -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||