Methods Summary |
---|
public static java.awt.dnd.DragSourceListener | add(java.awt.dnd.DragSourceListener a, java.awt.dnd.DragSourceListener b)Adds drag-source-listener-a with drag-source-listener-b and
returns the resulting multicast listener.
return (DragSourceListener)addInternal(a, b);
|
public static java.awt.dnd.DragSourceMotionListener | add(java.awt.dnd.DragSourceMotionListener a, java.awt.dnd.DragSourceMotionListener b)Adds drag-source-motion-listener-a with drag-source-motion-listener-b and
returns the resulting multicast listener.
return (DragSourceMotionListener)addInternal(a, b);
|
protected static java.util.EventListener | addInternal(java.util.EventListener a, java.util.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.
if (a == null) return b;
if (b == null) return a;
return new DnDEventMulticaster(a, b);
|
public void | dragDropEnd(java.awt.dnd.DragSourceDropEvent dsde)Handles the DragSourceDropEvent by invoking
dragDropEnd on listener-a and listener-b.
((DragSourceListener)a).dragDropEnd(dsde);
((DragSourceListener)b).dragDropEnd(dsde);
|
public void | dragEnter(java.awt.dnd.DragSourceDragEvent dsde)Handles the DragSourceDragEvent by invoking
dragEnter on listener-a and listener-b.
((DragSourceListener)a).dragEnter(dsde);
((DragSourceListener)b).dragEnter(dsde);
|
public void | dragExit(java.awt.dnd.DragSourceEvent dse)Handles the DragSourceEvent by invoking
dragExit on listener-a and listener-b.
((DragSourceListener)a).dragExit(dse);
((DragSourceListener)b).dragExit(dse);
|
public void | dragMouseMoved(java.awt.dnd.DragSourceDragEvent dsde)Handles the DragSourceDragEvent by invoking
dragMouseMoved on listener-a and listener-b.
((DragSourceMotionListener)a).dragMouseMoved(dsde);
((DragSourceMotionListener)b).dragMouseMoved(dsde);
|
public void | dragOver(java.awt.dnd.DragSourceDragEvent dsde)Handles the DragSourceDragEvent by invoking
dragOver on listener-a and listener-b.
((DragSourceListener)a).dragOver(dsde);
((DragSourceListener)b).dragOver(dsde);
|
public void | dropActionChanged(java.awt.dnd.DragSourceDragEvent dsde)Handles the DragSourceDragEvent by invoking
dropActionChanged on listener-a and listener-b.
((DragSourceListener)a).dropActionChanged(dsde);
((DragSourceListener)b).dropActionChanged(dsde);
|
public static java.awt.dnd.DragSourceListener | remove(java.awt.dnd.DragSourceListener l, java.awt.dnd.DragSourceListener oldl)Removes the old drag-source-listener from drag-source-listener-l
and returns the resulting multicast listener.
return (DragSourceListener)removeInternal(l, oldl);
|
public static java.awt.dnd.DragSourceMotionListener | remove(java.awt.dnd.DragSourceMotionListener l, java.awt.dnd.DragSourceMotionListener ol)Removes the old drag-source-motion-listener from
drag-source-motion-listener-l and returns the resulting multicast
listener.
return (DragSourceMotionListener)removeInternal(l, ol);
|
protected java.util.EventListener | remove(java.util.EventListener oldl)Removes a listener from this multicaster and returns the
resulting multicast listener.
if (oldl == a) return b;
if (oldl == b) return a;
EventListener a2 = removeInternal(a, oldl);
EventListener b2 = removeInternal(b, oldl);
if (a2 == a && b2 == b) {
return this; // it's not here
}
return addInternal(a2, b2);
|
protected static java.util.EventListener | removeInternal(java.util.EventListener l, java.util.EventListener oldl)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.
if (l == oldl || l == null) {
return null;
} else if (l instanceof DnDEventMulticaster) {
return ((DnDEventMulticaster)l).remove(oldl);
} else {
return l; // it's not here
}
|
protected static void | save(java.io.ObjectOutputStream s, java.lang.String k, java.util.EventListener l)
AWTEventMulticaster.save(s, k, l);
|