org.gnu.gtk
Class Widget

java.lang.Object
  extended by org.gnu.glib.Struct
      extended by org.gnu.glib.GObject
          extended by org.gnu.gtk.GtkObject
              extended by org.gnu.gtk.Widget
Direct Known Subclasses:
Calendar, CellView, Container, DrawingArea, Entry, Invisible, Misc, Preview, Progress, Range, Ruler, Separator, SimpleList

Deprecated. This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. You can likely find what you are looking for in the new java-gnome 4.0 bindings. See org.gnome.gtk.Widget, though be aware that the API may be considerably different.

public class Widget
extends GtkObject

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

Widget

public 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.

Create a new Widget with a handle to a native resource returned from a call to the native libraries.

Parameters:
handle - The handle that represents a pointer to a native resource.
Method Detail

getWidget

public 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.

Creates a new Widget with a handle to a native resource returned from a call to the native libraries. Should only be used internally by Java-Gnome.

Parameters:
handle - The handle that represents a pointer to a native resource.

show

public 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.

Cause this Widget to be visible.


showAll

public 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.

Cause this Widget and all of its' children to be visible.


hide

public 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.

Cause this Widget to not be visible.


hideAll

public 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.

Cause this Widget and all of its' children to not be visible.


realize

public 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.

Creates a native window resource associated with this widget. Normally a widget realization happens implicitly; if you show a widget and all of its' parent containers then the widget will be realized automatically.


draw

public 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.

Causes the entire widget to be redrawn.


drawArea

public 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.

Causes the specified area to be redrawn.

Parameters:
area - The area to be redrawn.

drawArea

public 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.

Causes the specified area to be redrawn

Parameters:
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.

activate

public 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.

For widgets that can be activated (buttons, menu items, etc.) this method activiates them. Activation is what happens when you press Enter on a widget during keyboard navigation.

Returns:
False if this widget is not activatable.

reparent

public 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.

Moves a widget from one Container to another.

Parameters:
newParent - The widget that will be the new parent.

getParent

public 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.

Returns the parent container for this widget

Returns:
The parent container for this widget.

getParentWindow

public 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.

Returns the widget's parent window.

Returns:
Returns the widget's parent window.

getWindow

public 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.

Return the widget's Gdk window, if it has one. This is the window to draw upon when writing custom widgets. It's available after the widget has been mapped. Thus if you listen to LifeCycleEvents, you can fetch the Window instance using this method after an LifeCycleEvent of type MAP has occurred.

Returns:
the widget's Gdk Window, or null if a) it hasn't been mapped yet or b) it is of a type that doesn't have a Gdk Window.
See Also:
if you want to be sure of getting to a Gdk Window., for more about custom Widgets.

setEvents

public 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.

Sets the event mask for a widget. The event mask determines which events a widget will receive. Keep in mind that different widgets have different default event masks, and by changing the event mask you may disrupt a widget's functionality, so be careful. This function must be called while a widget is unrealized. Consider addEvents() for widgets that are already realized, or if you want to preserve the existing event mask. This function can't be used with NO_WINDOW widgets; to get events on those widgets, place them inside an EventBox and receive events on the event box.

Parameters:
events -

addEvents

public 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.

Adds the events in the bitfield events to the event mask for widget. See setEvents() for details.

Parameters:
events -

setExtensionEvents

public 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.

Sets the extension events mask to mode.

Parameters:
mode - extension events to receive.

getExtensionEvents

public 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.

Retrieves the extension events the widget will receive.

Returns:
extension events for this widget.

intersect

public 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.

Computes the intersection of the widget's area and area.

Parameters:
area - The area to use to compute the intersection.
Returns:
The intersection. If the areas don't intersect this method returns null.

hasFocus

public 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.

Determines if the widget has focus within its' TOPLEVEL.

Returns:
true if the widget has focus.

grabFocus

public 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.

Causes the widget to gain focus within its' TOPLEVEL.


getCanFocus

public 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.

Find out the current value of the "can-focus" property

Since:
2.8.5
See Also:
setCanFocus(boolean)

setCanFocus

public 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.

Tell this Widget whether or not it is allowed to accept focus. Telling a widget that it is not to accept focus generally means that it will be skipped over when TABing around a Window. This can, however, have some unexpected side effects: if a Label, for example, is told that it can't have focus but it also told that its text is selectable, then you won't be able to Copy and Paste any text you select from it.

Parameters:
canFocus -
Since:
2.8.5

grabDefault

public 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.

Causes the widget to become the default widget. The default widget is activated when the user presses Enter in the window. Default widgets must be activatable.


setName

public 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.

Sets the name for this widget. Widgets can be named which allows you to refer to them from a gtkrc file. You can apply a style to widgets with a particular name in the gtkrc file. Names are also useful in accessibility contexts (ie, using ATK) to dig into a runnnig Window and extract a specific Widget (the concept is analoguous to id attributes in XML)

Parameters:
name - The name for the widget.

getName

public 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.

Returns the name for the widget.

Returns:
The name for the widget.

setSensitive

public 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.

Sets the sensitivity of a widget. A widget is sensitive if the user can interact with it. Insensitive widgets are "grayed out" and the user can't interact with them. Insensitive widgets are known as "inactive", "disabled", or "ghosted" in some other toolkits.

Parameters:
sensitive - true to make the widget sensitive.

getSensitive

public 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.

Gets the sensitivity of the widget. A widget is sensitive if the user can interact with it. Insensitive widgets are "grayed out" and the user can't interact with them. Insensitive widgets are known as "inactive", "disabled", or "ghosted" in some other toolkits.

Returns:
true if the widget is sensitive, false otherwise.

getToplevel

public 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.

Returns the topmost widget in the container hierarchy.

Returns:
The topmost widget.

getColormap

public 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.

Returns the Colormap that will be used to render this widget.

Returns:
The colormap used for this widget.

setColormap

public 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.

Set the Colormap that will be used to render this widget.

Parameters:
colormap - The colormap to be used.

getPointer

public 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.

Returns the location of the mouse pointer in widget coordinates. This method will return null if the mouse is not currently in the widget.

Returns:
The location of the mouse or null

isAncestor

public 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.

Determines whether this widget is somewhere inside of ancestor.

Parameters:
ancestor - The possible parent widget

pushColormap

public 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.

Pushes a Colormap onto the stack of colormaps. The topmost Colormap on the stack will be used to create all Widgets.

Parameters:
colormap - The Colormap to push onto the stack.

popColormap

public 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.

Pops the top colormap off of the stack of colormaps. The topmost Colormap on the stack will be used to create all Widgets.


shapeCombineMask

public 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.

Sets the shape of this widgets OS window. This allows for transparent windows.

Parameters:
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.

setForegroundColor

public 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.

Sets the foreground color for a widget in a particular state. All other style values are left untouched.

Parameters:
state - The widget state to modify.
color - The color to set the foreground or null to to undo the effect of a previous call.

setBackgroundColor

public 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.

Sets the background color for a widget in a particular state. All other style values are left untouched.

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

Parameters:
state - The widget state to modify.
color - The color to set the background or null to to undo the effect of a previous call.

setTextColor

public 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.

Sets the text color for a widget in a particular state. All other style values are left untouched. The text color is the foreground color along with the base color for widgets such as Entry, TextView, etc.

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

Parameters:
state - The widget state to modify.
color - The color to set the text or null to to undo the effect of a previous call.

setBaseColor

public 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.

Sets the base color used for a widget in a particular state. The base color is the background color used along with the text color for widgets such as Entry, TextView, etc.

Parameters:
state - The widget state to modify.
color - The color to set or null to to undo the effect of a previous call.

setFont

public 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.

Sets the font to use for the widget.

Parameters:
fontDesc - The font description to use or null to to undo the effect of a previous call.

modifyStyle

public 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.

Modifies style values on the Widget. Modifications made using this technique take precedence over style values set via an RC file.

Parameters:
style - The style to apply to the Widget or null to to undo the effect of a previous call.

getModifierStyle

public 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.

Retruns the Widget's RcStyle.

Returns:
The current RcStyle for the Widget.

getStyle

public 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.

Returns the Widgets Style.

Returns:
The current Style for the Widget.

createContext

public 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.

Creates a new Context with the appropriate Colormap, FontDescription, and base direction for drawing text for this widget.

Returns:
A context that can be used for drawig text.

getContext

public 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.

Gets a Context with the appropriate Colormap, FontDescription and base direction for this widget. Unlike the createContext method, this context is owned by the widget and can be as long as the widget exists. This context will be updated to match any changes to the widget's attributes.

Returns:
A context that can be used for drawing text.

createLayout

public 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.

Creates a new Layout with the appropriate Colormap, FontDescription and base direction for drawing text for this widget.

Parameters:
text - The text used for the layout.
Returns:
The layout that can be used for drawing text.

setDoubleBuffered

public 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.

Enables/Disables double buffering for this widget. Widgets are double buffered by default.

Parameters:
doubleBuffered - Set if the widget should be double buffered.

getAccessible

public 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.

Returns the accessible object associated with this widget.

Returns:
The AtkObject.

canActivateAccel

public boolean canActivateAccel(int signalId)
Deprecated. 

getScreen

public Screen getScreen()
Deprecated. 

hasScreen

public boolean hasScreen()
Deprecated. 

getDisplay

public Display getDisplay()
Deprecated. 

getRootWindow

public 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.

Get the root window where this widget is located. This function can only be called after the widget has been added to a widget heirarchy with Gtk Window at the top.

Returns:
the Gdk Window backing the root of this particular Widget's hierarchy.

addAccelerator

public void addAccelerator(AccelGroup group,
                           int accelKey,
                           ModifierType accelMods,
                           AccelFlags accelFlags)
Deprecated. 

removeAccelerator

public boolean removeAccelerator(AccelGroup group,
                                 int accelKey,
                                 ModifierType accelMods)
Deprecated. 

setMinimumSize

public 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.

Sets the minimum size of a widget. You can use this method to force a widget to be either larger or smaller that it normally be.

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.

Parameters:
width - The minimum width size to use.
height - The minimum height size to use.

getEventListenerClass

public java.lang.Class getEventListenerClass(java.lang.String signal)
Deprecated. 
Overrides:
getEventListenerClass in class org.gnu.glib.GObject

getEventType

public org.gnu.glib.EventType getEventType(java.lang.String signal)
Deprecated. 
Overrides:
getEventType in class org.gnu.glib.GObject

addListener

public 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.

Register an object to receive life cycle event notification.

Parameters:
listener - The object that has implemented the LifeCycleListener interface that is to receive the life cycle events.

removeListener

public 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.

Unregister an object that was receiving life cycle event notification.

Parameters:
listener - The object that is to no longer receive life cycle events.

addListener

public 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.

Register an object to receive focus event notification.

Parameters:
listener - The object that has implemented the FocusListener interface that is to receive the focus events.

removeListener

public 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.

Unregister an object that was receiving focus event notification.

Parameters:
listener - The object that is to no longer receive focus events.

addListener

public 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.

Register an object to receive configure event notification.

Parameters:
listener - The object that has implemented the ConfigureListener interface that is to receive the configure events.

removeListener

public 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.

Unregister an object that was receiving configure event notification.

Parameters:
listener - The object that is to no longer receive configure events.

addListener

public 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.

Register an object to receive key event notification.

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

Parameters:
listener - The object that has implemented the KeyListener interface that is to receive the key events.

removeListener

public 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.

Unregister an object that was receiving key event notification.

Parameters:
listener - The object that is to no longer receive key events.

addListener

public 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.

Register an object to receive mouse event notification.

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

Parameters:
listener - The object that has implemented the MouseListener interface that is to receive the mouse events.

removeListener

public 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.

Unregister an object that was receiving mouse event notification.

Parameters:
listener - The object that is to no longer receive mouse events.

getType

public 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.

Retrieve the runtime type used by the GLib library.


makeWidget

public static Widget makeWidget(org.gnu.glib.Handle handle)
                         throws java.lang.ClassNotFoundException
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.

Create a Java-GNOME Widget subclass from an existing native GTK+ handle.

Parameters:
handle - The handle that represents a pointer to a native resource.
Throws:
java.lang.ClassNotFoundException - if a Java-GNOME class cannot be found for the specified handle.

getAllocation

public Allocation getAllocation()
Deprecated. 

setDragSource

public 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.

Sets up the widget so that it can be the source of drag and drop operations.

Parameters:
buttons - Buttons which can start the drag
targets - 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.

setNoDragSource

public 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.

Removes support for this widget being a drag and drop source.


setDragIcon

public void setDragIcon(Widget widget,
                        Colormap cmap,
                        Pixmap pixmap,
                        Bitmap mask)
Deprecated. 

setDragIconPixbuf

public void setDragIconPixbuf(Widget widget,
                              Pixbuf pixbuf)
Deprecated. 

setDragIconStock

public void setDragIconStock(Widget widget,
                             java.lang.String stockId)
Deprecated. 

setDragDestination

public 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.

Sets up the widget so that is can receive drops as part of drag drop events and specifies what sort of drops it will accept

Parameters:
flags -

getDragData

public void getDragData(DragContext context,
                        Atom target,
                        int time)
Deprecated. 

setNoDragDestination

public 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.

Removes support for this widget being a drag and drop target


getData

public static void getData(Widget widget,
                           DragContext context,
                           Atom target)
Deprecated. Use getDragData(DragContext, Atom, int)


finish

public static void finish(DragContext context,
                          boolean success,
                          boolean delete)
Deprecated. Use DragContext.finish(boolean, boolean, int)


highlight

public static void highlight(Widget widget)
Deprecated. Use highlight().


highlight

public void highlight()
Deprecated. 

unHighlight

public static void unHighlight(Widget widget)
Deprecated. Use unHighlight().


unHighlight

public void unHighlight()
Deprecated. 

addListener

public void addListener(DragDestinationListener listener)
Deprecated. Use addListener(DragTargetListener) instead.

Register an object to receive drag drop (destination) events.

Parameters:
listener - The object that has implemented the DragDestinationListener interface

addListener

public void addListener(DragTargetListener listener)
Deprecated. 

removeListener

public void removeListener(DragDestinationListener listener)
Deprecated. Use removeListener(DragTargetListener) instead.

Unregister an object that was receiving dragDestination event notification.

Parameters:
listener - The object that is to no longer receive dragDestination events

removeListener

public void removeListener(DragTargetListener listener)
Deprecated. 

addListener

public void addListener(DragSourceListener listener)
Deprecated. Use addListener(DragOriginListener) instead.

Register an object to receive drag source events.

Parameters:
listener - The object that has implemented the DragSourceListener interface

addListener

public void addListener(DragOriginListener listener)
Deprecated. 

removeListener

public void removeListener(DragSourceListener listener)
Deprecated. Use removeListener(DragOriginListener)

Unregister an object that was receiving drag source event notification.

Parameters:
listener - The object that is to no longer receive drag source events

removeListener

public void removeListener(DragOriginListener listener)
Deprecated. 

addListener

public 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.

Register an object to receive expose event notification.

Parameters:
listener - The object that has implemented the ExposeListener interface that is to receive the expose events.

removeListener

public 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.

Unregister an object that was receiving expose event notification.

Parameters:
listener - The object that is to no longer receive expose events.

addListener

public 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.

Register an object to receive mouse motion event notification.

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

Parameters:
listener - The object that has implemented the MouseMotionListener interface that is to receive the mouse motion events.

removeListener

public 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.

Unregister an object that was receiving mouse motion event notification.

Parameters:
listener - The object that is to no longer receive mouse motion events.