org.gnu.gtk
Class ToolTips

java.lang.Object
  |
  +--org.gnu.glib.GObject
        |
        +--org.gnu.gtk.GtkObject
              |
              +--org.gnu.gtk.ToolTips

public class ToolTips
extends GtkObject

ToolTips are the messages that appear next to a widget when the mouse pointer is held over it for a short period of time.


Constructor Summary
ToolTips()
          Construct a new ToolTips object.
 
Method Summary
 void disable()
          Disables the ToolTips.
 void enable()
          Enables the ToolTips.
static Type getType()
          Retrieve the runtime type used by the GLib library.
 void setTip(Widget widget, java.lang.String tipText, java.lang.String additionalInfo)
          Adds a tooltip to a Widget.
 
Methods inherited from class org.gnu.gtk.GtkObject
destroy
 
Methods inherited from class org.gnu.glib.GObject
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, equals, getData, getHandle, removeEventHandler, setData
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolTips

public ToolTips()
Construct a new ToolTips object.

Method Detail

setTip

public void setTip(Widget widget,
                   java.lang.String tipText,
                   java.lang.String additionalInfo)
Adds a tooltip to a Widget.

Parameters:
widget - The Widget to add to tooltips.
tipText - The text to display for the tooltip.
additionalInfo - Additional information that might be useful to the user if they get stuck.

enable

public void enable()
Enables the ToolTips.


disable

public void disable()
Disables the ToolTips.


getType

public static Type getType()
Retrieve the runtime type used by the GLib library.


Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net