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.
AWTEventMulticasterprotected
DnDEventMulticaster(EventListener a,
EventListener b)
static DragSourceListener
add(DragSourceListener a,
DragSourceListener b)
static DragSourceMotionListener
add(DragSourceMotionListener a,
DragSourceMotionListener b)
protected static EventListener
addInternal(EventListener a,
EventListener b)
void
dragDropEnd(DragSourceDropEvent dsde)
DragSourceDropEvent by invoking
dragDropEnd on listener-a and listener-b.
void
dragEnter(DragSourceDragEvent dsde)
DragSourceDragEvent by invoking
dragEnter on listener-a and listener-b.
void
dragExit(DragSourceEvent dse)
DragSourceEvent by invoking
dragExit on listener-a and listener-b.
void
dragMouseMoved(DragSourceDragEvent dsde)
DragSourceDragEvent by invoking
dragMouseMoved on listener-a and listener-b.
void
dragOver(DragSourceDragEvent dsde)
DragSourceDragEvent by invoking
dragOver on listener-a and listener-b.
void
dropActionChanged(DragSourceDragEvent dsde)
DragSourceDragEvent by invoking
dropActionChanged on listener-a and listener-b.
static DragSourceListener
remove(DragSourceListener l,
DragSourceListener oldl)
static DragSourceMotionListener
remove(DragSourceMotionListener l,
DragSourceMotionListener ol)
protected EventListener
remove(EventListener oldl)
protected static EventListener
removeInternal(EventListener l,
EventListener oldl)
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
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-bpublic void dragEnter(DragSourceDragEvent dsde)
DragSourceDragEvent by invoking
dragEnter on listener-a and listener-b.
dragEnter in interface DragSourceListenerdsde - the DragSourceDragEventpublic void dragOver(DragSourceDragEvent dsde)
DragSourceDragEvent by invoking
dragOver on listener-a and listener-b.
dragOver in interface DragSourceListenerdsde - the DragSourceDragEventpublic void dropActionChanged(DragSourceDragEvent dsde)
DragSourceDragEvent by invoking
dropActionChanged on listener-a and listener-b.
dropActionChanged in interface DragSourceListenerdsde - the DragSourceDragEventpublic void dragExit(DragSourceEvent dse)
DragSourceEvent by invoking
dragExit on listener-a and listener-b.
dragExit in interface DragSourceListenerdse - the DragSourceEventpublic void dragDropEnd(DragSourceDropEvent dsde)
DragSourceDropEvent by invoking
dragDropEnd on listener-a and listener-b.
dragDropEnd in interface DragSourceListenerdsde - the DragSourceDropEventpublic void dragMouseMoved(DragSourceDragEvent dsde)
DragSourceDragEvent by invoking
dragMouseMoved on listener-a and listener-b.
dragMouseMoved in interface DragSourceMotionListenerdsde - the DragSourceDragEventpublic 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 AWTEventMulticasteroldl - 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