Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
gnu.java.awt.peer.gtk.GtkGenericPeer
gnu.java.awt.peer.gtk.GtkComponentPeer
gnu.java.awt.peer.gtk.GtkContainerPeer
gnu.java.awt.peer.gtk.GtkWindowPeer
Field Summary | |
protected static int | |
protected static int | |
protected static int | |
protected static int | |
protected static int | |
protected static int | |
protected static int | |
protected static int | |
protected int |
Fields inherited from class gnu.java.awt.peer.gtk.GtkGenericPeer | |
awtWidget |
Constructor Summary | |
|
Method Summary | |
void |
|
Rectangle |
|
Graphics |
|
Point |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
boolean |
|
boolean |
|
void |
|
void |
|
protected void |
|
void |
|
void |
|
protected void |
|
void | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void | |
void | |
void |
Methods inherited from class gnu.java.awt.peer.gtk.GtkContainerPeer | |
beginLayout , beginValidate , cancelPendingPaint , endLayout , endValidate , getInsets , insets , isPaintPending , isRestackSupported , restack , setBackground , setBounds , setFont |
Methods inherited from class gnu.java.awt.peer.gtk.GtkGenericPeer | |
dispose , gtkWidgetModifyFont , gtkWidgetModifyFont , postActionEvent |
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
protected static final int GDK_WINDOW_TYPE_HINT_SPLASHSCREEN
- Field Value:
- 4
public void dispose()
Disposes the component peer. This should release all resources held by the peer. This is called when the component is no longer in use.
- Specified by:
- dispose in interface ComponentPeer
- Overrides:
- dispose in interface GtkGenericPeer
public Rectangle getBounds()
Get the bounds of this component peer.
- Specified by:
- getBounds in interface ComponentPeer
- Overrides:
- getBounds in interface GtkComponentPeer
- Returns:
- component peer bounds
- Since:
- 1.5
public Graphics getGraphics()
Returns aGraphics
object suitable for drawing on this component. This is called byComponent.getGraphics()
.
- Specified by:
- getGraphics in interface ComponentPeer
- Overrides:
- getGraphics in interface GtkComponentPeer
- Returns:
- a graphics object suitable for drawing on this component
public Point getLocationOnScreen()
Returns the location of this component in screen coordinates. This is called byComponent.getLocationOnScreen()
.
- Specified by:
- getLocationOnScreen in interface ComponentPeer
- Overrides:
- getLocationOnScreen in interface GtkComponentPeer
- Returns:
- the location of this component in screen coordinates
protected void postExposeEvent(int x, int y, int width, int height)
- Overrides:
- postExposeEvent in interface GtkComponentPeer
protected void postInsetsChangedEvent(int top, int left, int bottom, int right)
protected void postMouseEvent(int id, long when, int mods, int x, int y, int clickCount, boolean popupTrigger)
- Overrides:
- postMouseEvent in interface GtkComponentPeer
public boolean requestFocus(Component request, boolean temporary, boolean allowWindowFocus, long time)
Requests that this component receives the focus. This is called fromComponent.requestFocus()
. This method is only called for heavyweight component's peers. Lightweight components ask their nearest heavyweight component to request focus. It's up to the heavyweight peer to decide if any of it's lightweight descendants are allowed to receive keyboard input focus or not. If the focus request is finally approved, then the peer must post a FOCUS_GAINED event for the requested component.
- Specified by:
- requestFocus in interface ComponentPeer
- Overrides:
- requestFocus in interface GtkComponentPeer
- Parameters:
request
- the component for which the focus is requestedtemporary
- indicates if the focus change is temporary (true) or permanent (false)allowWindowFocus
- indicates if it's allowed to change window focustime
- the timestamp
public boolean requestWindowFocus()
Request that this window peer be given the window focus.
- Specified by:
- requestWindowFocus in interface WindowPeer
- Returns:
- true if the window received focus, false otherwise
- Since:
- 1.5
public void setAlwaysOnTop(boolean b)
- Specified by:
- setAlwaysOnTop in interface WindowPeer
public void setBounds(int x, int y, int width, int height)
Notifies the peer that the bounds of this component have changed. This is called byComponent.setBounds(int,int,int,int)
.
- Specified by:
- setBounds in interface ComponentPeer
- Overrides:
- setBounds in interface GtkContainerPeer
- Parameters:
x
- the X coordinate of the upper left corner of the componenty
- the Y coordinate of the upper left corner of the componentwidth
- the width of the componentheight
- the height of the component
public void setModalBlocked(Dialog d, boolean b)
- Specified by:
- setModalBlocked in interface WindowPeer
public void setResizable(boolean resizable)
Needed by both GtkFramePeer and GtkDialogPeer subclasses, so implemented here. But never actually called on a GtkWindowPeer itself.
public void setVisibleNative(boolean b)
- Overrides:
- setVisibleNative in interface GtkComponentPeer
public void setVisibleNativeUnlocked(boolean b)
- Overrides:
- setVisibleNativeUnlocked in interface GtkComponentPeer
public void show()
Makes the component visible. This is called byComponent.show()
.
- Specified by:
- show in interface ComponentPeer
- Overrides:
- show in interface GtkComponentPeer
public void updateAlwaysOnTop()
Update the always-on-top status of the native window.
- Specified by:
- updateAlwaysOnTop in interface WindowPeer
public void updateFocusableWindowState()
- Specified by:
- updateFocusableWindowState in interface WindowPeer
public void updateMinimumSize()
- Specified by:
- updateMinimumSize in interface WindowPeer