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
| Access | Constructor and Description |
|---|---|
| protected | DnDEventMulticaster(EventListener
listener-a a, EventListener listener-b b)Creates an event multicaster instance which chains listener-a with listener-b. |
| Modifier and Type | Method and Description |
|---|---|
| public static DragSourceListener | add(DragSourceListener
drag-source-listener-a a, DragSourceListener drag-source-listener-b b)Adds drag-source-listener-a with drag-source-listener-b and returns the resulting multicast listener. |
| public static DragSourceMotionListener | add(DragSourceMotionListener
drag-source-motion-listener-a a, DragSourceMotionListener drag-source-motion-listener-b b)Adds drag-source-motion-listener-a with drag-source-motion-listener-b and returns the resulting multicast listener. |
| protected static EventListener | addInternal(EventListener
event listener-a a, EventListener event listener-b b)Hides java. Returns the resulting multicast listener from adding listener-a and listener-b together. |
| public void | dragDropEnd(DragSourceDropEvent
the dsde)DragSourceDropEventImplements java. Handles the |
| public void | dragEnter(DragSourceDragEvent
the dsde)DragSourceDragEventImplements java. Handles the |
| public void | dragExit(DragSourceEvent
the dse)DragSourceEventImplements java. Handles the |
| public void | dragMouseMoved(DragSourceDragEvent
the dsde)DragSourceDragEventImplements java. Handles the |
| public void | dragOver(DragSourceDragEvent
the dsde)DragSourceDragEventImplements java. Handles the |
| public void | dropActionChanged(DragSourceDragEvent
the dsde)DragSourceDragEventImplements java. Handles the |
| public static DragSourceListener | remove(DragSourceListener
drag-source-listener-l l, DragSourceListener the drag-source-listener being removed oldl)Removes the old drag-source-listener from drag-source-listener-l and returns the resulting multicast listener. |
| public static DragSourceMotionListener | remove(DragSourceMotionListener
drag-source-motion-listener-l l, DragSourceMotionListener the drag-source-motion-listener being removed ol)Removes the old drag-source-motion-listener from drag-source-motion-listener-l and returns the resulting multicast listener. |
| protected EventListener | remove(EventListener
the listener to be removed oldl)Overrides java. Removes a listener from this multicaster and returns the resulting multicast listener. |
| protected static EventListener | removeInternal(EventListener
the listener being removed from l, EventListener the listener being removed oldl)Hides java. Returns the resulting multicast listener after removing the old listener from listener-l. |
| protected static void | save(ObjectOutputStream s, String k, EventListener l)
Hides java. Saves a Serializable listener chain to a serialization stream. |
| DnDEventMulticaster | back to summary |
|---|---|
| protected DnDEventMulticaster(EventListener a, EventListener b) Creates an event multicaster instance which chains listener-a
with listener-b. Input parameters
| |
| add | back to summary |
|---|---|
| public static DragSourceListener add(DragSourceListener a, DragSourceListener b) Adds drag-source-listener-a with drag-source-listener-b and returns the resulting multicast listener.
| |
| add | back to summary |
|---|---|
| public 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.
| |
| addInternal | back to summary |
|---|---|
| protected static EventListener addInternal(EventListener a, EventListener b) Hides java. 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.
| |
| dragDropEnd | back to summary |
|---|---|
| public void dragDropEnd(DragSourceDropEvent dsde) Implements java. Handles the
| |
| dragEnter | back to summary |
|---|---|
| public void dragEnter(DragSourceDragEvent dsde) Implements java. Handles the
| |
| dragExit | back to summary |
|---|---|
| public void dragExit(DragSourceEvent dse) Implements java. Handles the
| |
| dragMouseMoved | back to summary |
|---|---|
| public void dragMouseMoved(DragSourceDragEvent dsde) Implements java. Handles the
| |
| dragOver | back to summary |
|---|---|
| public void dragOver(DragSourceDragEvent dsde) Implements java. Handles the
| |
| dropActionChanged | back to summary |
|---|---|
| public void dropActionChanged(DragSourceDragEvent dsde) Implements java. Handles the
| |
| remove | back to summary |
|---|---|
| public static DragSourceListener remove(DragSourceListener l, DragSourceListener oldl) Removes the old drag-source-listener from drag-source-listener-l and returns the resulting multicast listener.
| |
| remove | back to summary |
|---|---|
| public 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.
| |
| remove | back to summary |
|---|---|
| protected EventListener remove(EventListener oldl) Overrides java. Removes a listener from this multicaster and returns the resulting multicast listener.
| |
| removeInternal | back to summary |
|---|---|
| protected static EventListener removeInternal(EventListener l, EventListener oldl) Hides java. Returns the resulting multicast listener after removing the old listener from listener-l. If listener-l equals the old listener OR listener-l is null, returns null. Else if listener-l is an instance of AWTEventMulticaster, then it removes the old listener from it. Else, returns listener l.
| |
| save | back to summary |
|---|---|
| protected static void save(ObjectOutputStream s, String k, EventListener l) throws IOException Hides java. Doc from java. Saves a Serializable listener chain to a serialization stream.
| |