Located in compilation unit of java.
Note
the class name is not appropriate anymore, but we cannot change it because we must keep serialization compatibility.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final PlatformLogger | |
| private long | eventMask
The event mask for contained lightweight components. |
| private Component | focus
This variable is not used, but kept for serialization compatibility |
| private transient boolean | isMouseDTInNativeContainer
Is DnD over the native container. |
| private transient boolean | isMouseInNativeContainer
Is the mouse over the native container. |
| private static final int | |
| private static final long | |
| private transient WeakReference | 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 final long | PROXY_EVENT_MASK
The kind of events routed to lightweight components from windowed hosts. |
| private static final long | serialVersionUID
Use serialVersionUID from JDK 1.1 for interoperability. |
| private transient WeakReference | targetLastEntered
The last component entered by the |
| private transient WeakReference | targetLastEnteredDT
The last component entered by the |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | dispatchEvent(AWTEvent
the event e)Dispatches an event to a sub-component if necessary, and returns whether or not the event was forwarded to a sub-component. |
| pack-priv void | |
| pack-priv void | |
| public void | eventDispatched(AWTEvent e)
Implements java. Invoked when an event is dispatched in the AWT. |
| private boolean | |
| private boolean | |
| private boolean | processMouseEvent(MouseEvent e)
This method attempts to distribute a mouse event to a lightweight component. |
| private Component | retargetMouseEnterExit(Component targetOver, MouseEvent e, Component lastEntered, boolean inNativeContainer)
|
| pack-priv 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 | |
| private void | |
| private void | |
| private void |
| BUTTONS_DOWN_MASK | back to summary |
|---|---|
| private static final int BUTTONS_DOWN_MASK | |
| eventLog | back to summary |
|---|---|
| private static final PlatformLogger eventLog | |
| eventMask | back to summary |
|---|---|
| private long eventMask The event mask for contained lightweight components. Lightweight components need a windowed container to host window-related events. This separate mask indicates events that have been requested by contained lightweight components without effecting the mask of the windowed component itself. | |
| focus | back to summary |
|---|---|
| private Component focus This variable is not used, but kept for serialization compatibility | |
| isMouseDTInNativeContainer | back to summary |
|---|---|
| private transient boolean isMouseDTInNativeContainer Is DnD over the native container. | |
| isMouseInNativeContainer | back to summary |
|---|---|
| private transient boolean isMouseInNativeContainer Is the mouse over the native container. | |
| LWD_MOUSE_DRAGGED_OVER | back to summary |
|---|---|
| private static final int LWD_MOUSE_DRAGGED_OVER | |
| MOUSE_MASK | back to summary |
|---|---|
| private static final long MOUSE_MASK | |
| mouseEventTarget | back to summary |
|---|---|
| private transient WeakReference<Component> mouseEventTarget The current subcomponent being hosted by this windowed component that has events being forwarded to it. If this is null, there are currently no events being forwarded to a subcomponent. | |
| nativeContainer | back to summary |
|---|---|
| private Container nativeContainer The windowed container that might be hosting events for subcomponents. | |
| nativeCursor | back to summary |
|---|---|
| private Cursor nativeCursor This variable is not used, but kept for serialization compatibility | |
| PROXY_EVENT_MASK | back to summary |
|---|---|
| private static final long PROXY_EVENT_MASK The kind of events routed to lightweight components from windowed hosts. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Use serialVersionUID from JDK 1.1 for interoperability. | |
| targetLastEntered | back to summary |
|---|---|
| private transient WeakReference<Component> targetLastEntered The last component entered by the | |
| targetLastEnteredDT | back to summary |
|---|---|
| private transient WeakReference<Component> targetLastEnteredDT The last component entered by the | |
| LightweightDispatcher | back to summary |
|---|---|
| pack-priv LightweightDispatcher(Container nativeContainer) | |
| dispatchEvent | back to summary |
|---|---|
| pack-priv 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.
| |
| dispose | back to summary |
|---|---|
| pack-priv void dispose() | |
| enableEvents | back to summary |
|---|---|
| pack-priv void enableEvents(long events) Enables events to subcomponents. | |
| eventDispatched | back to summary |
|---|---|
| public void eventDispatched(AWTEvent e) Implements java. Doc from java. Invoked when an event is dispatched in the AWT.
| |
| isMouseGrab | back to summary |
|---|---|
| private boolean isMouseGrab(MouseEvent e) | |
| processDropTargetEvent | back to summary |
|---|---|
| private boolean processDropTargetEvent(SunDropTargetEvent e) | |
| processMouseEvent | back to summary |
|---|---|
| private boolean processMouseEvent(MouseEvent e) This method attempts to distribute a mouse event to a lightweight component. It tries to avoid doing any unnecessary probes down into the component tree to minimize the overhead of determining where to route the event, since mouse movement events tend to come in large and frequent amounts. | |
| retargetMouseEnterExit | back to summary |
|---|---|
| private Component retargetMouseEnterExit(Component targetOver, MouseEvent e, Component lastEntered, boolean inNativeContainer) | |
| retargetMouseEvent | back to summary |
|---|---|
| pack-priv 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.
| |
| startListeningForOtherDrags | back to summary |
|---|---|
| private void startListeningForOtherDrags() | |
| stopListeningForOtherDrags | back to summary |
|---|---|
| private void stopListeningForOtherDrags() | |
| trackDropTargetEnterExit | back to summary |
|---|---|
| private void trackDropTargetEnterExit(Component targetOver, MouseEvent e) | |
| trackMouseEnterExit | back to summary |
|---|---|
| private void trackMouseEnterExit(Component targetOver, MouseEvent e) | |