|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnome.gtk.Widget
,
though be aware that the API may be considerably different.
public class Widget
GtkWidget is the base class of all widgets.
Constructor Summary | |
---|---|
Widget(org.gnu.glib.Handle handle)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
Method Summary | |
---|---|
boolean |
activate()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
addAccelerator(AccelGroup group,
int accelKey,
ModifierType accelMods,
AccelFlags accelFlags)
Deprecated. |
void |
addEvents(EventMask events)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
addListener(ConfigureListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
addListener(DragDestinationListener listener)
Deprecated. Use addListener(DragTargetListener) instead. |
void |
addListener(DragOriginListener listener)
Deprecated. |
void |
addListener(DragSourceListener listener)
Deprecated. Use addListener(DragOriginListener) instead. |
void |
addListener(DragTargetListener listener)
Deprecated. |
void |
addListener(ExposeListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
addListener(FocusListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
addListener(KeyListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
addListener(LifeCycleListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
addListener(MouseListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
addListener(MouseMotionListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
boolean |
canActivateAccel(int signalId)
Deprecated. |
Context |
createContext()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
Layout |
createLayout(java.lang.String text)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
draw()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
drawArea(int x,
int y,
int width,
int height)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
drawArea(Rectangle area)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
static void |
finish(DragContext context,
boolean success,
boolean delete)
Deprecated. Use DragContext.finish(boolean, boolean, int) |
AtkObject |
getAccessible()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
Allocation |
getAllocation()
Deprecated. |
boolean |
getCanFocus()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
Colormap |
getColormap()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
Context |
getContext()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
static void |
getData(Widget widget,
DragContext context,
Atom target)
Deprecated. Use getDragData(DragContext, Atom, int) |
Display |
getDisplay()
Deprecated. |
void |
getDragData(DragContext context,
Atom target,
int time)
Deprecated. |
java.lang.Class |
getEventListenerClass(java.lang.String signal)
Deprecated. |
org.gnu.glib.EventType |
getEventType(java.lang.String signal)
Deprecated. |
ExtensionMode |
getExtensionEvents()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
RcStyle |
getModifierStyle()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
java.lang.String |
getName()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
Widget |
getParent()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
Window |
getParentWindow()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
Point |
getPointer()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
Window |
getRootWindow()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
Screen |
getScreen()
Deprecated. |
boolean |
getSensitive()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
Style |
getStyle()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
Widget |
getToplevel()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
static org.gnu.glib.Type |
getType()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
static Widget |
getWidget(org.gnu.glib.Handle handle)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
Window |
getWindow()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
grabDefault()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
grabFocus()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
boolean |
hasFocus()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
boolean |
hasScreen()
Deprecated. |
void |
hide()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
hideAll()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
highlight()
Deprecated. |
static void |
highlight(Widget widget)
Deprecated. Use highlight() . |
Rectangle |
intersect(Rectangle area)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
boolean |
isAncestor(Widget ancestor)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
static Widget |
makeWidget(org.gnu.glib.Handle handle)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
modifyStyle(RcStyle style)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
popColormap()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
pushColormap(Colormap colormap)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
realize()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
boolean |
removeAccelerator(AccelGroup group,
int accelKey,
ModifierType accelMods)
Deprecated. |
void |
removeListener(ConfigureListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
removeListener(DragDestinationListener listener)
Deprecated. Use removeListener(DragTargetListener) instead. |
void |
removeListener(DragOriginListener listener)
Deprecated. |
void |
removeListener(DragSourceListener listener)
Deprecated. Use removeListener(DragOriginListener) |
void |
removeListener(DragTargetListener listener)
Deprecated. |
void |
removeListener(ExposeListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
removeListener(FocusListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
removeListener(KeyListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
removeListener(LifeCycleListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
removeListener(MouseListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
removeListener(MouseMotionListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
reparent(Widget newParent)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
setBackgroundColor(StateType state,
Color color)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
setBaseColor(StateType state,
Color color)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
setCanFocus(boolean canFocus)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
setColormap(Colormap colormap)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
setDoubleBuffered(boolean doubleBuffered)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
setDragDestination(DestDefaults flags,
TargetEntry[] targets,
DragAction actions)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
setDragIcon(Widget widget,
Colormap cmap,
Pixmap pixmap,
Bitmap mask)
Deprecated. |
void |
setDragIconPixbuf(Widget widget,
Pixbuf pixbuf)
Deprecated. |
void |
setDragIconStock(Widget widget,
java.lang.String stockId)
Deprecated. |
void |
setDragSource(ModifierType buttons,
TargetEntry[] targets,
DragAction actions)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
setEvents(EventMask events)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
setExtensionEvents(ExtensionMode mode)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
setFont(FontDescription fontDesc)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
setForegroundColor(StateType state,
Color color)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
setMinimumSize(int width,
int height)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
setName(java.lang.String name)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
setNoDragDestination()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
setNoDragSource()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
setSensitive(boolean sensitive)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
setTextColor(StateType state,
Color color)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
shapeCombineMask(Bitmap shapeMask,
int x,
int y)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
show()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
showAll()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
unHighlight()
Deprecated. |
static void |
unHighlight(Widget widget)
Deprecated. Use unHighlight() . |
Methods inherited from class org.gnu.gtk.GtkObject |
---|
destroy, sink |
Methods inherited from class org.gnu.glib.GObject |
---|
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getFloatProperty, getGObjectFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getProperty, getStringProperty, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setProperty, setStringProperty, thawNotify |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Widget(org.gnu.glib.Handle handle)
handle
- The handle that represents a pointer to a native resource.Method Detail |
---|
public static Widget getWidget(org.gnu.glib.Handle handle)
handle
- The handle that represents a pointer to a native resource.public void show()
public void showAll()
public void hide()
public void hideAll()
public void realize()
public void draw()
public void drawArea(Rectangle area)
area
- The area to be redrawn.public void drawArea(int x, int y, int width, int height)
x
- The x coordinate for the area to be redrawn.y
- The y coordinate for the area to be redrawn.width
- The width of the area to be redrawn.height
- The height of the area to be redrawn.public boolean activate()
public void reparent(Widget newParent)
newParent
- The widget that will be the new parent.public Widget getParent()
public Window getParentWindow()
public Window getWindow()
if you want to be sure of getting to a Gdk
Window.
,
for more about custom Widgets.
public void setEvents(EventMask events)
events
- public void addEvents(EventMask events)
events
- public void setExtensionEvents(ExtensionMode mode)
mode
- extension events to receive.public ExtensionMode getExtensionEvents()
public Rectangle intersect(Rectangle area)
area
.
area
- The area to use to compute the intersection.
public boolean hasFocus()
public void grabFocus()
public boolean getCanFocus()
setCanFocus(boolean)
public void setCanFocus(boolean canFocus)
selectable
, then you won't be able
to Copy and Paste any text you select from it.
canFocus
- public void grabDefault()
public void setName(java.lang.String name)
name
- The name for the widget.public java.lang.String getName()
public void setSensitive(boolean sensitive)
sensitive
- true to make the widget sensitive.public boolean getSensitive()
public Widget getToplevel()
public Colormap getColormap()
public void setColormap(Colormap colormap)
colormap
- The colormap to be used.public Point getPointer()
public boolean isAncestor(Widget ancestor)
ancestor
- The possible parent widgetpublic void pushColormap(Colormap colormap)
colormap
- The Colormap to push onto the stack.public void popColormap()
public void shapeCombineMask(Bitmap shapeMask, int x, int y)
shapeMask
- Shape to be added or null to remove an existing shape.x
- X Position of the shape mask with respect to the window.y
- Y Position of the shape mask with respect to the window.public void setForegroundColor(StateType state, Color color)
state
- The widget state to modify.color
- The color to set the foreground or null
to
to undo the effect of a previous call.public void setBackgroundColor(StateType state, Color color)
Note that some widgets draw on their parent container's window and thus
may not draw any background themselves. This is the case for e.g.
Label
. To modify the background of such widgets, you have to set
the background color on their parent; if you want to set the background
of a rectangular area around a label, try placing the label in an
EventBox
widget and setting the background color on that
state
- The widget state to modify.color
- The color to set the background or null
to
to undo the effect of a previous call.public void setTextColor(StateType state, Color color)
Note that some widgets draw on their parent container's window and thus
may not draw any background themselves. This is the case for e.g.
Label
. To modify the background of such widgets, you have to set
the background color on their parent; if you want to set the background
of a rectangular area around a label, try placing the label in an
EventBox
widget and setting the background color on that
state
- The widget state to modify.color
- The color to set the text or null
to
to undo the effect of a previous call.public void setBaseColor(StateType state, Color color)
state
- The widget state to modify.color
- The color to set or null
to
to undo the effect of a previous call.public void setFont(FontDescription fontDesc)
fontDesc
- The font description to use or null
to
to undo the effect of a previous call.public void modifyStyle(RcStyle style)
style
- The style to apply to the Widget or null
to
to undo the effect of a previous call.public RcStyle getModifierStyle()
RcStyle
.
public Style getStyle()
Style
.
public Context createContext()
public Context getContext()
public Layout createLayout(java.lang.String text)
text
- The text used for the layout.
public void setDoubleBuffered(boolean doubleBuffered)
doubleBuffered
- Set if the widget should be double buffered.public AtkObject getAccessible()
public boolean canActivateAccel(int signalId)
public Screen getScreen()
public boolean hasScreen()
public Display getDisplay()
public Window getRootWindow()
Window
at the top.
public void addAccelerator(AccelGroup group, int accelKey, ModifierType accelMods, AccelFlags accelFlags)
public boolean removeAccelerator(AccelGroup group, int accelKey, ModifierType accelMods)
public void setMinimumSize(int width, int height)
In most cases Window.setDefaultSize()
is a better choice
for toplevel windows than this method. Setting the default size will
still allow users to shrink the window. Setting the minimum size will
force them to leave the window at least as large as the request.
Note the inherent danger of setting any fixed size - themes, translations into other languages, different fonts, and user action can change the appropriate size for a given widget. So, it's basically impossible to hardcode a size that will always be correct.
If the minimum size in a given direction is -1 then the "natural" size for the widget will be used instead.
width
- The minimum width size to use.height
- The minimum height size to use.public java.lang.Class getEventListenerClass(java.lang.String signal)
getEventListenerClass
in class org.gnu.glib.GObject
public org.gnu.glib.EventType getEventType(java.lang.String signal)
getEventType
in class org.gnu.glib.GObject
public void addListener(LifeCycleListener listener)
listener
- The object that has implemented the LifeCycleListener
interface that is to receive the life cycle events.public void removeListener(LifeCycleListener listener)
listener
- The object that is to no longer receive life cycle events.public void addListener(FocusListener listener)
listener
- The object that has implemented the FocusListener interface
that is to receive the focus events.public void removeListener(FocusListener listener)
listener
- The object that is to no longer receive focus events.public void addListener(ConfigureListener listener)
listener
- The object that has implemented the ConfigureListener
interface that is to receive the configure events.public void removeListener(ConfigureListener listener)
listener
- The object that is to no longer receive configure events.public void addListener(KeyListener listener)
An important thing to notice is that some widgets don't receive
low-level events (such as a key-press event) by default. So if
you want to capture events from them, you should add them to an
EventBox
, and capture events on the EventBox
.
The reason why this happens is that some widgets, for efficiency, don't have their own X window, which is necessary to receive events. These are the widgets that don't have their own X window:
Alignment
Arrow
Bin
Box
Image
Item
Label
Pixmap
ScrolledWindow
Separator
Table
AspectFrame
Frame
VBox
HBox
VSeparator
HSeparator
listener
- The object that has implemented the KeyListener interface that
is to receive the key events.public void removeListener(KeyListener listener)
listener
- The object that is to no longer receive key events.public void addListener(MouseListener listener)
An important thing to notice is that some widgets don't receive
low-level events (such as a mouse-click event) by default. So if
you want to capture events from them, you should add them to an
EventBox
, and capture events on the EventBox
.
The reason why this happens is that some widgets, for efficiency, don't have their own X window, which is necessary to receive events. These are the widgets that don't have their own X window:
Alignment
Arrow
Bin
Box
Image
Item
Label
Pixmap
ScrolledWindow
Separator
Table
AspectFrame
Frame
VBox
HBox
VSeparator
HSeparator
listener
- The object that has implemented the MouseListener interface
that is to receive the mouse events.public void removeListener(MouseListener listener)
listener
- The object that is to no longer receive mouse events.public static org.gnu.glib.Type getType()
public static Widget makeWidget(org.gnu.glib.Handle handle) throws java.lang.ClassNotFoundException
handle
- The handle that represents a pointer to a native resource.
java.lang.ClassNotFoundException
- if a Java-GNOME class cannot be found for the specified
handle.public Allocation getAllocation()
public void setDragSource(ModifierType buttons, TargetEntry[] targets, DragAction actions)
buttons
- Buttons which can start the dragtargets
- An array of names of drag and drop operations accepted (these
are made up by the application designers. Widgets must set as
drag sources and destinations with one of these the same)actions
- Drag action - determines which events will be called.public void setNoDragSource()
public void setDragIcon(Widget widget, Colormap cmap, Pixmap pixmap, Bitmap mask)
public void setDragIconPixbuf(Widget widget, Pixbuf pixbuf)
public void setDragIconStock(Widget widget, java.lang.String stockId)
public void setDragDestination(DestDefaults flags, TargetEntry[] targets, DragAction actions)
flags
- public void getDragData(DragContext context, Atom target, int time)
public void setNoDragDestination()
public static void getData(Widget widget, DragContext context, Atom target)
getDragData(DragContext, Atom, int)
public static void finish(DragContext context, boolean success, boolean delete)
DragContext.finish(boolean, boolean, int)
public static void highlight(Widget widget)
highlight()
.
public void highlight()
public static void unHighlight(Widget widget)
unHighlight()
.
public void unHighlight()
public void addListener(DragDestinationListener listener)
addListener(DragTargetListener)
instead.
listener
- The object that has implemented the DragDestinationListener
interfacepublic void addListener(DragTargetListener listener)
public void removeListener(DragDestinationListener listener)
removeListener(DragTargetListener)
instead.
listener
- The object that is to no longer receive dragDestination eventspublic void removeListener(DragTargetListener listener)
public void addListener(DragSourceListener listener)
addListener(DragOriginListener)
instead.
listener
- The object that has implemented the DragSourceListener
interfacepublic void addListener(DragOriginListener listener)
public void removeListener(DragSourceListener listener)
removeListener(DragOriginListener)
listener
- The object that is to no longer receive drag source eventspublic void removeListener(DragOriginListener listener)
public void addListener(ExposeListener listener)
listener
- The object that has implemented the ExposeListener interface
that is to receive the expose events.public void removeListener(ExposeListener listener)
listener
- The object that is to no longer receive expose events.public void addListener(MouseMotionListener listener)
An important thing to notice is that some widgets don't receive
low-level events (such as a mouse-enter event) by default. So if
you want to capture events from them, you should add them to an
EventBox
, and capture events on the EventBox
.
The reason why this happens is that some widgets, for efficiency, don't have their own X window, which is necessary to receive events. These are the widgets that don't have their own X window:
Alignment
Arrow
Bin
Box
Image
Item
Label
Pixmap
ScrolledWindow
Separator
Table
AspectFrame
Frame
VBox
HBox
VSeparator
HSeparator
listener
- The object that has implemented the MouseMotionListener
interface that is to receive the mouse motion events.public void removeListener(MouseMotionListener listener)
listener
- The object that is to no longer receive mouse motion events.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |