|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.LightweightDispatcher
Class to manage the dispatching of events to the lightweight components contained by a native container.
Field Summary | |
private boolean |
dragging
Indicates if the mouse pointer is currently being dragged... |
private long |
eventMask
The event mask for contained lightweight components. |
private Component |
focus
The current lightweight component that has focus that is being hosted by this container. |
private boolean |
isClickOrphaned
Is the next click event orphaned because the component hid/moved |
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 lightweight component being hosted by this windowed component that has mouse events being forwarded to it. |
private Container |
nativeContainer
The windowed container that might be hosting events for lightweight components. |
private Cursor |
nativeCursor
The cursor used by the native container that is hosting the lightweight components. |
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 lightweight sub-component if necessary, and returns whether or not the event was forwarded to a lightweight sub-component. |
(package private) void |
enableEvents(long events)
Enables events to lightweight components. |
void |
eventDispatched(AWTEvent e)
|
private boolean |
processFocusEvent(FocusEvent e)
|
private boolean |
processKeyEvent(KeyEvent 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. |
(package private) boolean |
setFocusRequest(Component c)
This is called by the hosting native container on behalf of lightweight components that have requested focus. |
private void |
setMouseTarget(Component target,
MouseEvent e)
Change the current target of mouse events. |
private void |
startListeningForOtherDrags()
|
private void |
stopListeningForOtherDrags()
|
private void |
trackMouseEnterExit(Component targetOver,
MouseEvent e)
|
Methods inherited from class java.lang.Object |
|
Field Detail |
private static final long serialVersionUID
private static final int LWD_MOUSE_DRAGGED_OVER
private Container nativeContainer
private Component focus
private transient Component mouseEventTarget
private transient Component targetLastEntered
private transient boolean isMouseInNativeContainer
private transient boolean isClickOrphaned
private boolean dragging
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 enableEvents(long events)
boolean setFocusRequest(Component c)
boolean dispatchEvent(AWTEvent e)
e
- the eventprivate boolean processKeyEvent(KeyEvent e)
private boolean processFocusEvent(FocusEvent e)
private boolean processMouseEvent(MouseEvent e)
private void setMouseTarget(Component target, MouseEvent e)
private void trackMouseEnterExit(Component targetOver, MouseEvent e)
private void startListeningForOtherDrags()
private void stopListeningForOtherDrags()
public void eventDispatched(AWTEvent e)
void retargetMouseEvent(Component target, int id, MouseEvent e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |