| java.lang.Object sun.awt.qt.QtComponentPeer
All known Subclasses: sun.awt.qt.QtScrollbarPeer, sun.awt.qt.QtCheckboxPeer, sun.awt.qt.QtListPeer, sun.awt.qt.QtContainerPeer, sun.awt.qt.QtCanvasPeer, sun.awt.qt.QtLabelPeer, sun.awt.qt.QtTextComponentPeer, sun.awt.qt.QtButtonPeer, sun.awt.qt.QtChoicePeer,
Field Summary | |
int | data Used by native code as a pointer to the Qt widget. | Component | target The Component this is the peer for. | QtToolkit | toolkit The Toolkit that created this peer. |
Method Summary | |
static boolean | canBeFocusedByClick(Component component) | protected boolean | canHavePixmapBackground() Decides whether it is possible for this component to have a
pixmap background (i.e. | public int | checkImage(Image img, int w, int h, ImageObserver o) | abstract protected void | create(QtComponentPeer parentPeer) Creates this component peer. | public Image | createImage(ImageProducer producer) | public Image | createImage(int width, int height) | public VolatileImage | createVolatileImage(int width, int height) | public void | dispose() | public ColorModel | getColorModel() | public FontMetrics | getFontMetrics(Font font) | public Graphics | getGraphics() | native public Point | getLocationOnScreen() | public Dimension | getMinimumSize() | public long | getNativeComponent() | native public Dimension | getPreferredSize() | public Toolkit | getToolkit() | public void | handleEvent(AWTEvent event) | native void | hide() | public boolean | isFocusTraversable() | public boolean | isFocusable() | native static boolean | isPacked(Component component) | public void | lostOwnership(Clipboard clipboard, Transferable contents) | native public boolean | nativeRequestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time) | public void | paint(Graphics g) | void | postEvent(AWTEvent event) | void | postMouseEvent(int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int nativeEvent) | void | postPaintEvent(int x, int y, int width, int height) Posts a paint event for this component. | public boolean | prepareImage(Image img, int w, int h, ImageObserver o) | public void | print(Graphics g) | public void | repaint(long tm, int x, int y, int width, int height) | public boolean | requestFocus(Component child, Window parent, boolean temporary, boolean focusedWindowChangeAllowed, long time) | public void | setBackground(Color c) | public void | setBounds(int x, int y, int width, int height) | native void | setBoundsNative(int x, int y, int width, int height) | public void | setCursor(Cursor cursor) | native public void | setEnabled(boolean b) | native public void | setFocusable(boolean focusable) | public void | setFont(Font f) | public void | setForeground(Color c) | public void | setVisible(boolean b) | protected boolean | shouldFocusOnClick() | native void | show() Shows this widget. | protected byte[] | stringToNulMultiByte(String string) | public void | update(Graphics g) | public void | updateClient(Object arg) Called by the ScreenUpdater to update the component. |
data | int data(Code) | | Used by native code as a pointer to the Qt widget.
|
canBeFocusedByClick | static boolean canBeFocusedByClick(Component component)(Code) | | |
canHavePixmapBackground | protected boolean canHavePixmapBackground()(Code) | | Decides whether it is possible for this component to have a
pixmap background (i.e. a non solid color).
We allow all components except Window, Frame, Dialog, Panel and
Canvas to have pixmaps as the user can, and typically does,
override the paint for these components. Thus update can be
called which will clear the background with a solid color for
these components. However, we would still like to have support
for Qt themes where a button, for example, may hava a pixmap
background.
|
create | abstract protected void create(QtComponentPeer parentPeer)(Code) | | Creates this component peer. This requires setting the data
field to point to a struct QtComponentData.
|
createImage | public Image createImage(int width, int height)(Code) | | |
dispose | public void dispose()(Code) | | |
getLocationOnScreen | native public Point getLocationOnScreen()(Code) | | |
getNativeComponent | public long getNativeComponent()(Code) | | |
hide | native void hide()(Code) | | Hides this widget
|
isFocusTraversable | public boolean isFocusTraversable()(Code) | | |
isFocusable | public boolean isFocusable()(Code) | | |
nativeRequestFocus | native public boolean nativeRequestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time)(Code) | | |
postMouseEvent | void postMouseEvent(int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int nativeEvent)(Code) | | |
postPaintEvent | void postPaintEvent(int x, int y, int width, int height)(Code) | | Posts a paint event for this component. This is called when an
area of the component is exposed. The area that needs to be
painted is specified by the parameters.
|
repaint | public void repaint(long tm, int x, int y, int width, int height)(Code) | | |
requestFocus | public boolean requestFocus(Component child, Window parent, boolean temporary, boolean focusedWindowChangeAllowed, long time)(Code) | | |
setBounds | public void setBounds(int x, int y, int width, int height)(Code) | | |
setBoundsNative | native void setBoundsNative(int x, int y, int width, int height)(Code) | | |
setEnabled | native public void setEnabled(boolean b)(Code) | | |
setFocusable | native public void setFocusable(boolean focusable)(Code) | | |
setVisible | public void setVisible(boolean b)(Code) | | |
shouldFocusOnClick | protected boolean shouldFocusOnClick()(Code) | | |
show | native void show()(Code) | | Shows this widget.
|
stringToNulMultiByte | protected byte[] stringToNulMultiByte(String string)(Code) | | |
updateClient | public void updateClient(Object arg)(Code) | | Called by the ScreenUpdater to update the component.
|
|
|