Save This Page
Home » openjdk-7 » java » awt » [javadoc | source]
java.awt
class: LightweightDispatcher [javadoc | source]
java.lang.Object
   java.awt.LightweightDispatcher

All Implemented Interfaces:
    Serializable, AWTEventListener

Direct Known Subclasses:
    LightweightDispatcher

Class to manage the dispatching of MouseEvents to the lightweight descendants and SunDropTargetEvents to both lightweight and heavyweight descendants contained by a native container. NOTE: the class name is not appropriate anymore, but we cannot change it because we must keep serialization compatibility.
Constructor:
 LightweightDispatcher(Container nativeContainer) 
Method from java.awt.LightweightDispatcher Summary:
dispatchEvent,   dispose,   enableEvents,   eventDispatched,   retargetMouseEvent
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.awt.LightweightDispatcher Detail:
 boolean dispatchEvent(AWTEvent e) 
    Dispatches an event to a sub-component if necessary, and returns whether or not the event was forwarded to a sub-component.
  void dispose() 
  void enableEvents(long events) 
    Enables events to subcomponents.
 public  void eventDispatched(AWTEvent e) 
  void retargetMouseEvent(Component target,
    int id,
    MouseEvent e) 
    Sends a mouse event to the current mouse event recipient using the given event (sent to the windowed host) as a srcEvent. If the mouse event target is still in the component tree, the coordinates of the event are translated to those of the target. If the target has been removed, we don't bother to send the message.