Home » openjdk-7 » java » awt » dnd » [javadoc | source]
java.awt.dnd
class: DnDEventMulticaster [javadoc | source]
java.lang.Object
   java.awt.AWTEventMulticaster
      java.awt.dnd.DnDEventMulticaster

All Implemented Interfaces:
    DragSourceListener, DragSourceMotionListener, WindowFocusListener, ActionListener, TextListener, FocusListener, WindowStateListener, HierarchyBoundsListener, KeyListener, ContainerListener, HierarchyListener, ComponentListener, MouseListener, MouseMotionListener, WindowListener, MouseWheelListener, InputMethodListener, ItemListener, AdjustmentListener

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.
Fields inherited from java.awt.AWTEventMulticaster:
a,  b
Constructor:
 protected DnDEventMulticaster(EventListener a,
    EventListener b) 
    Creates an event multicaster instance which chains listener-a with listener-b. Input parameters a and b should not be null, though implementations may vary in choosing whether or not to throw NullPointerException in that case.
    Parameters:
    a - listener-a
    b - listener-b
Method from java.awt.dnd.DnDEventMulticaster Summary:
add,   add,   addInternal,   dragDropEnd,   dragEnter,   dragExit,   dragMouseMoved,   dragOver,   dropActionChanged,   remove,   remove,   remove,   removeInternal,   save
Methods from java.awt.AWTEventMulticaster:
actionPerformed,   add,   add,   add,   add,   add,   add,   add,   add,   add,   add,   add,   add,   add,   add,   add,   add,   add,   addInternal,   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,   remove,   removeInternal,   save,   saveInternal,   textValueChanged,   windowActivated,   windowClosed,   windowClosing,   windowDeactivated,   windowDeiconified,   windowGainedFocus,   windowIconified,   windowLostFocus,   windowOpened,   windowStateChanged
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.awt.dnd.DnDEventMulticaster Detail:
 public static DragSourceListener add(DragSourceListener a,
    DragSourceListener b) 
    Adds drag-source-listener-a with drag-source-listener-b and returns the resulting multicast listener.
 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.
 protected static EventListener addInternal(EventListener a,
    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.
 public  void dragDropEnd(DragSourceDropEvent dsde) 
    Handles the DragSourceDropEvent by invoking dragDropEnd on listener-a and listener-b.
 public  void dragEnter(DragSourceDragEvent dsde) 
    Handles the DragSourceDragEvent by invoking dragEnter on listener-a and listener-b.
 public  void dragExit(DragSourceEvent dse) 
    Handles the DragSourceEvent by invoking dragExit on listener-a and listener-b.
 public  void dragMouseMoved(DragSourceDragEvent dsde) 
    Handles the DragSourceDragEvent by invoking dragMouseMoved on listener-a and listener-b.
 public  void dragOver(DragSourceDragEvent dsde) 
    Handles the DragSourceDragEvent by invoking dragOver on listener-a and listener-b.
 public  void dropActionChanged(DragSourceDragEvent dsde) 
    Handles the DragSourceDragEvent by invoking dropActionChanged on listener-a and listener-b.
 protected EventListener remove(EventListener oldl) 
    Removes a listener from this multicaster and returns the resulting multicast listener.
 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.
 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.
 protected static EventListener removeInternal(EventListener l,
    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.
 protected static  void save(ObjectOutputStream s,
    String k,
    EventListener l) throws IOException