org.gnu.gnome
Class HRef

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
                  extended by org.gnu.gtk.Container
                      extended by org.gnu.gtk.Bin
                          extended by org.gnu.gtk.Button
                              extended by org.gnu.gnome.HRef

public class HRef
extends org.gnu.gtk.Button

The HRef widget displays a frameless button that, when selected, issues a command for the web browser to connect to a web site. The actual command to the browser is defined globally as the default member of URL Handler list in the GNOME Control Center.


Constructor Summary
HRef(org.gnu.glib.Handle handle)
          Construct a HRef using a handle to a native resource.
HRef(java.lang.String url, java.lang.String lable)
          Creates a new HRef with the given URL and label.
 
Method Summary
static HRef getHRef(org.gnu.glib.Handle handle)
          Internal static factory method to be used by Java-Gnome only.
 java.lang.String getText()
          Returns the caption for the HRef.
static org.gnu.glib.Type getType()
          Retrieve the runtime type used by the GLib library.
 java.lang.String getURL()
          Returns the URL referenced by the HRef.
 void setText(java.lang.String text)
          Returns the caption for the HRef.
 void setURL(java.lang.String url)
          Returns the URL referenced by the HRef.
 
Methods inherited from class org.gnu.gtk.Button
addListener, click, enter, getButton, getEventListenerClass, getEventType, getFocusOnClick, getImage, getLabel, getRelief, getUseStock, getUseUnderline, getXAlignment, getYAlignment, leave, press, release, removeListener, setAlignment, setFocusOnClick, setImage, setLabel, setRelief, setUseStock, setUseUnderline
 
Methods inherited from class org.gnu.gtk.Bin
getChild
 
Methods inherited from class org.gnu.gtk.Container
add, addListener, getBooleanChildProperty, getBorderWidth, getChildProperty, getChildren, getIntChildProperty, getResizeMode, remove, removeListener, resizeChildren, setBooleanChildProperty, setBorderWidth, setChildProperty, setIntChildProperty, setResizeMode
 
Methods inherited from class org.gnu.gtk.Widget
activate, addAccelerator, addEvents, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, addListener, canActivateAccel, createContext, createLayout, draw, drawArea, drawArea, finish, getAccessible, getAllocation, getCanFocus, getColormap, getContext, getData, getDisplay, getDragData, getExtensionEvents, getModifierStyle, getName, getParent, getParentWindow, getPointer, getRootWindow, getScreen, getSensitive, getStyle, getToplevel, getWidget, getWindow, grabDefault, grabFocus, hasFocus, hasScreen, hide, hideAll, highlight, highlight, intersect, isAncestor, makeWidget, modifyStyle, popColormap, pushColormap, realize, removeAccelerator, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, reparent, setBackgroundColor, setBaseColor, setCanFocus, setColormap, setDoubleBuffered, setDragDestination, setDragIcon, setDragIconPixbuf, setDragIconStock, setDragSource, setEvents, setExtensionEvents, setFont, setForegroundColor, setMinimumSize, setName, setNoDragDestination, setNoDragSource, setSensitive, setTextColor, shapeCombineMask, show, showAll, unHighlight, 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, getPixbufProperty, getProperty, getStringProperty, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setPixbufProperty, 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

HRef

public HRef(java.lang.String url,
            java.lang.String lable)
Creates a new HRef with the given URL and label.

Parameters:
url - The URL to show in the web browser when the HRef is clicked.
lable - The caption for the HRef.

HRef

public HRef(org.gnu.glib.Handle handle)
Construct a HRef using a handle to a native resource.

Method Detail

getHRef

public static HRef getHRef(org.gnu.glib.Handle handle)
Internal static factory method to be used by Java-Gnome only.


getText

public java.lang.String getText()
Returns the caption for the HRef.

Returns:
The text displayed by the HRef.

getURL

public java.lang.String getURL()
Returns the URL referenced by the HRef.

Returns:
The url to show when the HRef is clicked.

setText

public void setText(java.lang.String text)
Returns the caption for the HRef.

Parameters:
text - The text displayed by the HRef.

setURL

public void setURL(java.lang.String url)
Returns the URL referenced by the HRef.

Parameters:
url - The url to show when the HRef is clicked.

getType

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