|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.app.event.QTEventCaster
The QTEventCaster is used to broadcast QTEvents to registered listeners. There are two characteristics of the broadcaster that are worthy of note: Broadcasters check whether the event is consumed before each invocation of a listeners methods. Broadcasters also check to see if a given listener is interested in an event based on the modifier filter (if defined by the listener) before the event is passed onto the listener.
Field Summary | |
protected java.util.EventListener |
a
|
protected java.util.EventListener |
b
|
Constructor Summary | |
protected |
QTEventCaster(java.util.EventListener a,
java.util.EventListener b)
|
Method Summary | |
void |
actionPerformed(QTActionEvent e)
Broadcasts the event to any interested QTActionListeners. |
static MouseButtonListener |
add(MouseButtonListener c,
MouseButtonListener d)
Adds action-listener-a with action-listener-b and returns the resulting multicast listener. |
static MouseEnterExitListener |
add(MouseEnterExitListener c,
MouseEnterExitListener d)
|
static MouseMoveListener |
add(MouseMoveListener c,
MouseMoveListener d)
|
static MouseTargetListener |
add(MouseTargetListener c,
MouseTargetListener d)
|
static QTActionListener |
add(QTActionListener c,
QTActionListener d)
Adds action-listener-a with action-listener-b and returns the resulting multicast listener. |
protected static java.util.EventListener |
addListener(java.util.EventListener a,
java.util.EventListener b)
Returns the resulting multicast listener from adding listener-a and listener-b together. |
boolean |
matchModifierFilter(int mods)
|
void |
mouseClicked(QTMouseEvent e)
Invoked when the mouse has been clicked. |
void |
mouseDragged(QTMouseEvent e)
Invoked when a mouse button is pressed on a component and then dragged. |
void |
mouseEntered(QTMouseEvent e)
Invoked when the mouse enters a component. |
void |
mouseExited(QTMouseEvent e)
Invoked when the mouse exits a component. |
void |
mouseMoved(QTMouseEvent e)
Invoked when the mouse button has been moved on a component (with no buttons no down). |
void |
mousePressed(QTMouseEvent e)
Invoked when a mouse button has been pressed. |
void |
mouseReleased(QTMouseEvent e)
Invoked when a mouse button has been released. |
void |
mouseTargetEntered(QTMouseEvent e)
Invoked when a mouseMoved event enters a Target within an enclosing space. |
void |
mouseTargetExited(QTMouseEvent e)
Invoked when a mouseMoved event exits a Target within an enclosing space. |
static MouseButtonListener |
remove(MouseButtonListener l,
MouseButtonListener oldl)
Removes the old action-listener from action-listener-l and returns the resulting multicast listener. |
static MouseEnterExitListener |
remove(MouseEnterExitListener l,
MouseEnterExitListener oldl)
Removes the old action-listener from action-listener-l and returns the resulting multicast listener. |
static MouseMoveListener |
remove(MouseMoveListener l,
MouseMoveListener oldl)
Removes the old action-listener from action-listener-l and returns the resulting multicast listener. |
static MouseTargetListener |
remove(MouseTargetListener l,
MouseTargetListener oldl)
|
static QTActionListener |
remove(QTActionListener l,
QTActionListener oldl)
Removes the old action-listener from action-listener-l and returns the resulting multicast listener. |
protected static java.util.EventListener |
removeListener(java.util.EventListener l,
java.util.EventListener oldl)
Returns the resulting multicast listener after removing the old listener from listener-l. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final java.util.EventListener a
protected final java.util.EventListener b
Constructor Detail |
protected QTEventCaster(java.util.EventListener a, java.util.EventListener b)
a
- listener-ab
- listener-bMethod Detail |
public static MouseButtonListener add(MouseButtonListener c, MouseButtonListener d)
a
- action-listener-ab
- action-listener-bpublic static MouseButtonListener remove(MouseButtonListener l, MouseButtonListener oldl)
l
- action-listener-loldl
- the action-listener being removedpublic void mouseClicked(QTMouseEvent e)
mouseClicked
in interface MouseButtonListener
public void mousePressed(QTMouseEvent e)
mousePressed
in interface MouseButtonListener
public boolean matchModifierFilter(int mods)
matchModifierFilter
in interface QTMouseListener
quicktime.app.event.QTMouseListener
mods
- the state of the modifier keys.public void mouseReleased(QTMouseEvent e)
mouseReleased
in interface MouseButtonListener
public static MouseMoveListener add(MouseMoveListener c, MouseMoveListener d)
public static MouseMoveListener remove(MouseMoveListener l, MouseMoveListener oldl)
l
- action-listener-loldl
- the action-listener being removedpublic void mouseDragged(QTMouseEvent e)
mouseDragged
in interface MouseMoveListener
public void mouseMoved(QTMouseEvent e)
mouseMoved
in interface MouseMoveListener
public static MouseEnterExitListener add(MouseEnterExitListener c, MouseEnterExitListener d)
public static MouseEnterExitListener remove(MouseEnterExitListener l, MouseEnterExitListener oldl)
l
- action-listener-loldl
- the action-listener being removedpublic void mouseEntered(QTMouseEvent e)
mouseEntered
in interface MouseEnterExitListener
public void mouseExited(QTMouseEvent e)
mouseExited
in interface MouseEnterExitListener
public static MouseTargetListener add(MouseTargetListener c, MouseTargetListener d)
public static MouseTargetListener remove(MouseTargetListener l, MouseTargetListener oldl)
public void mouseTargetEntered(QTMouseEvent e)
mouseTargetEntered
in interface MouseTargetListener
e
- the QTMouseEvent that triggered this eventpublic void mouseTargetExited(QTMouseEvent e)
mouseTargetExited
in interface MouseTargetListener
e
- the QTMouseEvent that triggered this eventpublic static QTActionListener add(QTActionListener c, QTActionListener d)
a
- action-listener-ab
- action-listener-bpublic static QTActionListener remove(QTActionListener l, QTActionListener oldl)
l
- action-listener-loldl
- the action-listener being removedpublic void actionPerformed(QTActionEvent e)
actionPerformed
in interface QTActionListener
protected static java.util.EventListener addListener(java.util.EventListener a, java.util.EventListener b)
a
- event listener-ab
- event listener-bprotected static java.util.EventListener removeListener(java.util.EventListener l, java.util.EventListener oldl)
l
- the listener being removed fromoldl
- the listener being removed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |