|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.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.
Field Summary | |
private static sun.awt.DebugHelper |
dbg
|
private long |
eventMask
The event mask for contained lightweight components. |
private Component |
focus
This variable is not used, but kept for serialization compatibility |
private boolean |
isMouseInNativeContainer
Is the mouse over the native container |
private static int |
LWD_MOUSE_DRAGGED_OVER
|
private static long |
MOUSE_MASK
|
private Component |
mouseEventTarget
The current subcomponent being hosted by this windowed component that has events being forwarded to it. |
private Container |
nativeContainer
The windowed container that might be hosting events for subcomponents. |
private Cursor |
nativeCursor
This variable is not used, but kept for serialization compatibility |
private static long |
PROXY_EVENT_MASK
The kind of events routed to lightweight components from windowed hosts. |
private static long |
serialVersionUID
|
private Component |
targetLastEntered
The last component entered |
Constructor Summary | |
(package private) |
LightweightDispatcher(Container nativeContainer)
|
Method Summary | |
(package private) 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. |
(package private) void |
dispose()
|
(package private) void |
enableEvents(long events)
Enables events to subcomponents. |
void |
eventDispatched(AWTEvent e)
Invoked when an event is dispatched in the AWT. |
private boolean |
isMouseGrab(MouseEvent e)
|
private boolean |
processDropTargetEvent(sun.awt.dnd.SunDropTargetEvent e)
|
private boolean |
processMouseEvent(MouseEvent e)
This method attempts to distribute a mouse event to a lightweight component. |
(package private) 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. |
private void |
startListeningForOtherDrags()
|
private void |
stopListeningForOtherDrags()
|
private void |
trackMouseEnterExit(Component targetOver,
MouseEvent e)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
private static final int LWD_MOUSE_DRAGGED_OVER
private static final sun.awt.DebugHelper dbg
private Container nativeContainer
private Component focus
private transient Component mouseEventTarget
private transient Component targetLastEntered
private transient boolean isMouseInNativeContainer
private Cursor nativeCursor
private long eventMask
private static final long PROXY_EVENT_MASK
private static final long MOUSE_MASK
Constructor Detail |
LightweightDispatcher(Container nativeContainer)
Method Detail |
void dispose()
void enableEvents(long events)
boolean dispatchEvent(AWTEvent e)
e
- the eventprivate boolean isMouseGrab(MouseEvent e)
private boolean processMouseEvent(MouseEvent e)
private boolean processDropTargetEvent(sun.awt.dnd.SunDropTargetEvent e)
private void trackMouseEnterExit(Component targetOver, MouseEvent e)
private void startListeningForOtherDrags()
private void stopListeningForOtherDrags()
public void eventDispatched(AWTEvent e)
AWTEventListener
eventDispatched
in interface AWTEventListener
void retargetMouseEvent(Component target, int id, MouseEvent e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |