| java.lang.Object org.apache.harmony.awt.ComponentInternals
ComponentInternals | abstract public class ComponentInternals (Code) | | The accessor to AWT private API
|
Method Summary | |
abstract public void | addObscuredRegions(MultiRectArea mra, Component c, Container container) | abstract public Window | attachNativeWindow(long nativeWindowId) | abstract public Choice | createCustomChoice(ChoiceStyle style) | abstract public void | endModalLoop(Dialog dlg) | abstract public void | endMouseGrab() | public static ComponentInternals | getComponentInternals() | abstract public Insets | getNativeInsets(Window w) | abstract public NativeWindow | getNativeWindow(Component component) The accessor to native resource connected to a component. | abstract public MultiRectArea | getObscuredRegion(Component c) | abstract public MultiRectArea | getRepaintRegion(Component c) Region to be repainted (could be null). | abstract public TextFieldKit | getTextFieldKit(Component comp) | abstract public TextKit | getTextKit(Component comp) | abstract public void | makePopup(Window window) Set the popup flag of the window to true. | abstract public void | onDrawImage(Component comp, Image image, Point destLocation, Dimension destSize, Rectangle source) This method must be called by Graphics at the beginning of drawImage()
to store image drawing parameters (defined by application developer) in component
Parameters: comp - - component that draws the image Parameters: image - - image to be drawn Parameters: destLocation - - location of the image upon the component's surface. | abstract public void | runModalLoop(Dialog dlg) | abstract public void | setCaretPos(Component c, int x, int y) Sets system's caret position. | public static void | setComponentInternals(ComponentInternals internals) | abstract public void | setDesktopProperty(String name, Object value) | abstract public void | setMouseEventPreprocessor(MouseEventPreprocessor preprocessor) | abstract public void | setTextFieldKit(Component comp, TextFieldKit kit) | abstract public void | setTextKit(Component comp, TextKit kit) | abstract public void | setVisibleFlag(Component comp, boolean visible) | abstract public void | shutdown() Terminate event dispatch thread, completely destroy AWT context.
Intended for multi-context mode, in single-context mode does nothing. | abstract public void | startMouseGrab(Window grabWindow, Runnable whenCanceled) Start mouse grab in "client" mode.
All mouse events in AWT components will be reported as usual,
mouse events that occured outside of AWT components will be sent to
the window passed as grabWindow parameter. | abstract public MultiRectArea | subtractPendingRepaintRegion(Component c, MultiRectArea mra) | abstract public void | unsafeInvokeAndWait(Runnable runnable) NEVER USE IT. | abstract public boolean | wasPainted(Window w) |
attachNativeWindow | abstract public Window attachNativeWindow(long nativeWindowId)(Code) | | Connect Window object to existing native resource
Parameters: nativeWindowId - - id of native window to attach Window object with special behaviour thatrestricts manupulation with that window |
createCustomChoice | abstract public Choice createCustomChoice(ChoiceStyle style)(Code) | | Create customized Choice using style
|
endModalLoop | abstract public void endModalLoop(Dialog dlg)(Code) | | |
endMouseGrab | abstract public void endMouseGrab()(Code) | | End mouse grab and resume normal processing of mouse events
|
getComponentInternals | public static ComponentInternals getComponentInternals()(Code) | | the ComponentInternals instance to serve the requests |
getNativeWindow | abstract public NativeWindow getNativeWindow(Component component)(Code) | | The accessor to native resource connected to a component.
It returns non-null value only if component
already has the native resource
|
getObscuredRegion | abstract public MultiRectArea getObscuredRegion(Component c)(Code) | | The component's region hidden behind top-level windows
(belonging to both this Java app and all other apps), and behind
heavyweight components overlapping with passed component
|
getRepaintRegion | abstract public MultiRectArea getRepaintRegion(Component c)(Code) | | Region to be repainted (could be null). Use this in overridden repaint()
|
makePopup | abstract public void makePopup(Window window)(Code) | | Set the popup flag of the window to true.
This window won't be controlled by window manager on Linux.
Call this method before the window is shown first time
Parameters: window - - the window that should become popup one |
onDrawImage | abstract public void onDrawImage(Component comp, Image image, Point destLocation, Dimension destSize, Rectangle source)(Code) | | This method must be called by Graphics at the beginning of drawImage()
to store image drawing parameters (defined by application developer) in component
Parameters: comp - - component that draws the image Parameters: image - - image to be drawn Parameters: destLocation - - location of the image upon the component's surface. Never null. Parameters: destSize - - size of the component's area to be filled with the image.Equals to null if size parameters omitted in drawImage. Parameters: source - - area of the image to be drawn on the component.Equals to null if src parameters omitted in drawImage. |
runModalLoop | abstract public void runModalLoop(Dialog dlg)(Code) | | Makes it possible to start/stop dialog modal loop
from anywhere outside of java.awt package
|
setCaretPos | abstract public void setCaretPos(Component c, int x, int y)(Code) | | Sets system's caret position.
This method should be called by text component to synchronize our caret position
with system's caret position.
Parameters: x - Parameters: y - |
setComponentInternals | public static void setComponentInternals(ComponentInternals internals)(Code) | | This method must be called by AWT to establish the connection
Parameters: internals - - implementation of ComponentInternals created by AWT |
setDesktopProperty | abstract public void setDesktopProperty(String name, Object value)(Code) | | Makes it possible to call protected Toolkit.setDesktopProperty()
method from any class outside of java.awt package
|
setMouseEventPreprocessor | abstract public void setMouseEventPreprocessor(MouseEventPreprocessor preprocessor)(Code) | | Sets mouse events preprocessor for event queue
|
setVisibleFlag | abstract public void setVisibleFlag(Component comp, boolean visible)(Code) | | Sets component's visible flag only
(the component is not actually shown/hidden)
|
shutdown | abstract public void shutdown()(Code) | | Terminate event dispatch thread, completely destroy AWT context.
Intended for multi-context mode, in single-context mode does nothing.
|
startMouseGrab | abstract public void startMouseGrab(Window grabWindow, Runnable whenCanceled)(Code) | | Start mouse grab in "client" mode.
All mouse events in AWT components will be reported as usual,
mouse events that occured outside of AWT components will be sent to
the window passed as grabWindow parameter. When mouse grab is canceled
(because of click in non-AWT window or by task switching)
the whenCanceled callback is called
Parameters: grabWindow - - window that will own the grab Parameters: whenCanceled - - callback called when grab is canceled by user's action |
unsafeInvokeAndWait | abstract public void unsafeInvokeAndWait(Runnable runnable) throws InterruptedException, InvocationTargetException(Code) | | NEVER USE IT. FORGET IT. IT DOES NOT EXIST.
See Toolkit.unsafeInvokeAndWait(Runnable).
Accessor for Toolkit.unsafeInvokeAndWait(Runnable) method.
For use in exceptional cases only.
Read comments for Toolkit.unsafeInvokeAndWait(Runnable) before use.
|
wasPainted | abstract public boolean wasPainted(Window w)(Code) | | Returns true if the window was at least once painted due to native paint events
|
|
|