|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.AWTEventMulticaster java.awt.dnd.DnDEventMulticaster
A class extends AWTEventMulticaster
to implement efficient and
thread-safe multi-cast event dispatching for the drag-and-drop events defined
in the java.awt.dnd package.
AWTEventMulticaster
Field Summary |
Fields inherited from class java.awt.AWTEventMulticaster |
a, b |
Constructor Summary | |
protected |
DnDEventMulticaster(EventListener a,
EventListener b)
Creates an event multicaster instance which chains listener-a with listener-b. |
Method Summary | |
static DragSourceListener |
add(DragSourceListener a,
DragSourceListener b)
Adds drag-source-listener-a with drag-source-listener-b and returns the resulting multicast listener. |
static DragSourceMotionListener |
add(DragSourceMotionListener a,
DragSourceMotionListener b)
Adds drag-source-motion-listener-a with drag-source-motion-listener-b and returns the resulting multicast listener. |
protected static EventListener |
addInternal(EventListener a,
EventListener b)
Returns the resulting multicast listener from adding listener-a and listener-b together. |
void |
dragDropEnd(DragSourceDropEvent dsde)
Handles the DragSourceDropEvent by invoking
dragDropEnd on listener-a and listener-b. |
void |
dragEnter(DragSourceDragEvent dsde)
Handles the DragSourceDragEvent by invoking
dragEnter on listener-a and listener-b. |
void |
dragExit(DragSourceEvent dse)
Handles the DragSourceEvent by invoking
dragExit on listener-a and listener-b. |
void |
dragMouseMoved(DragSourceDragEvent dsde)
Handles the DragSourceDragEvent by invoking
dragMouseMoved on listener-a and listener-b. |
void |
dragOver(DragSourceDragEvent dsde)
Handles the DragSourceDragEvent by invoking
dragOver on listener-a and listener-b. |
void |
dropActionChanged(DragSourceDragEvent dsde)
Handles the DragSourceDragEvent by invoking
dropActionChanged on listener-a and listener-b. |
static DragSourceListener |
remove(DragSourceListener l,
DragSourceListener oldl)
Removes the old drag-source-listener from drag-source-listener-l and returns the resulting multicast listener. |
static DragSourceMotionListener |
remove(DragSourceMotionListener l,
DragSourceMotionListener ol)
Removes the old drag-source-motion-listener from drag-source-motion-listener-l and returns the resulting multicast listener. |
protected EventListener |
remove(EventListener oldl)
Removes a listener from this multicaster and returns the resulting multicast listener. |
protected static EventListener |
removeInternal(EventListener l,
EventListener oldl)
Returns the resulting multicast listener after removing the old listener from listener-l. |
protected static void |
save(ObjectOutputStream s,
String k,
EventListener l)
|
Methods inherited from class java.awt.AWTEventMulticaster |
actionPerformed, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, adjustmentValueChanged, ancestorMoved, ancestorResized, caretPositionChanged, componentAdded, componentHidden, componentMoved, componentRemoved, componentResized, componentShown, focusGained, focusLost, getListeners, hierarchyChanged, inputMethodTextChanged, itemStateChanged, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, remove, saveInternal, textValueChanged, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected DnDEventMulticaster(EventListener a, EventListener b)
a
and b
should not be null
, though implementations may vary in
choosing whether or not to throw NullPointerException
in that case.
a
- listener-ab
- listener-bMethod Detail |
public void dragEnter(DragSourceDragEvent dsde)
DragSourceDragEvent
by invoking
dragEnter
on listener-a and listener-b.
dragEnter
in interface DragSourceListener
dsde
- the DragSourceDragEvent
public void dragOver(DragSourceDragEvent dsde)
DragSourceDragEvent
by invoking
dragOver
on listener-a and listener-b.
dragOver
in interface DragSourceListener
dsde
- the DragSourceDragEvent
public void dropActionChanged(DragSourceDragEvent dsde)
DragSourceDragEvent
by invoking
dropActionChanged
on listener-a and listener-b.
dropActionChanged
in interface DragSourceListener
dsde
- the DragSourceDragEvent
public void dragExit(DragSourceEvent dse)
DragSourceEvent
by invoking
dragExit
on listener-a and listener-b.
dragExit
in interface DragSourceListener
dse
- the DragSourceEvent
public void dragDropEnd(DragSourceDropEvent dsde)
DragSourceDropEvent
by invoking
dragDropEnd
on listener-a and listener-b.
dragDropEnd
in interface DragSourceListener
dsde
- the DragSourceDropEvent
public void dragMouseMoved(DragSourceDragEvent dsde)
DragSourceDragEvent
by invoking
dragMouseMoved
on listener-a and listener-b.
dragMouseMoved
in interface DragSourceMotionListener
dsde
- the DragSourceDragEvent
public static DragSourceListener add(DragSourceListener a, DragSourceListener b)
a
- drag-source-listener-ab
- drag-source-listener-bpublic static DragSourceMotionListener add(DragSourceMotionListener a, DragSourceMotionListener b)
a
- drag-source-motion-listener-ab
- drag-source-motion-listener-bpublic static DragSourceListener remove(DragSourceListener l, DragSourceListener oldl)
l
- drag-source-listener-loldl
- the drag-source-listener being removedpublic static DragSourceMotionListener remove(DragSourceMotionListener l, DragSourceMotionListener ol)
l
- drag-source-motion-listener-lol
- the drag-source-motion-listener being removedprotected static EventListener addInternal(EventListener a, EventListener b)
a
- event listener-ab
- event listener-bprotected EventListener remove(EventListener oldl)
remove
in class AWTEventMulticaster
oldl
- the listener to be removedprotected static EventListener removeInternal(EventListener l, EventListener oldl)
l
- the listener being removed fromoldl
- the listener being removedprotected static void save(ObjectOutputStream s, String k, EventListener l) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |