All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class guinea.ui.event.UIEventMulticaster

java.lang.Object
   |
   +----java.awt.AWTEventMulticaster
           |
           +----guinea.ui.event.UIEventMulticaster

public class UIEventMulticaster
extends AWTEventMulticaster
implements AnswerListener, ControlListener, SubjectUIListener
This is a UI event multicaster class that provides event multicasting for guineapig systems UI events. See superclasses documentation for more info about how this works and how to use it.


Constructor Index

· UIEventMulticaster(EventListener, EventListener)

Method Index

· abortTest(ControlEvent)
· add(AnswerListener, AnswerListener)
Adds component-listener-a with component-listener-b and returns the resulting multicast listener.
· add(ControlListener, ControlListener)
· add(SubjectUIListener, SubjectUIListener)
· addInternal(EventListener, EventListener)
Returns the resulting multicast listener from adding listener-a and listener-b together.
· answerGiven(AnswerEvent)
Handles the componentResized event by invoking the componentResized methods on listener-a and listener-b.
· controlPerformed(ControlEvent)
· doneItem(ControlEvent)
· gotoItem(ControlEvent)
· nextItem(ControlEvent)
· pauseTest(ControlEvent)
· prevItem(ControlEvent)
· remove(AnswerListener, AnswerListener)
Removes the old component-listener from component-listener-l and returns the resulting multicast listener.
· remove(ControlListener, ControlListener)
· remove(SubjectUIListener, SubjectUIListener)

Constructors

· UIEventMulticaster
 protected UIEventMulticaster(EventListener a,
                              EventListener b)

Methods

· answerGiven
 public void answerGiven(AnswerEvent e)
Handles the componentResized event by invoking the componentResized methods on listener-a and listener-b.

Parameters:
e - the component event
· controlPerformed
 public void controlPerformed(ControlEvent e)
· doneItem
 public void doneItem(ControlEvent e)
· nextItem
 public void nextItem(ControlEvent e)
· prevItem
 public void prevItem(ControlEvent e)
· gotoItem
 public void gotoItem(ControlEvent e)
· pauseTest
 public void pauseTest(ControlEvent e)
· abortTest
 public void abortTest(ControlEvent e)
· add
 public static AnswerListener add(AnswerListener a,
                                  AnswerListener b)
Adds component-listener-a with component-listener-b and returns the resulting multicast listener.

Parameters:
a - component-listener-a
b - component-listener-b
· add
 public static ControlListener add(ControlListener a,
                                   ControlListener b)
· add
 public static SubjectUIListener add(SubjectUIListener a,
                                     SubjectUIListener b)
· remove
 public static AnswerListener remove(AnswerListener l,
                                     AnswerListener oldl)
Removes the old component-listener from component-listener-l and returns the resulting multicast listener.

Parameters:
l - component-listener-l
oldl - the component-listener being removed
· remove
 public static ControlListener remove(ControlListener l,
                                      ControlListener oldl)
· remove
 public static SubjectUIListener remove(SubjectUIListener l,
                                        SubjectUIListener oldl)
· addInternal
 protected static EventListener addInternal(EventListener a,
                                            EventListener b)
Returns the resulting multicast listener from adding listener-a and listener-b together. If listener-a is null, it returns listener-b; If listener-b is null, it returns listener-a If neither are null, then it creates and returns a new AWTEventMulticaster instance which chains a with b.

Parameters:
a - event listener-a
b - event listener-b

All Packages  Class Hierarchy  This Package  Previous  Next  Index