org.gnu.gnome

Class HRef


public class HRef
extends 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(Handle handle)
Construct a HRef using a handle to a native resource.
HRef(String url, String lable)
Creates a new HRef with the given URL and label.

Method Summary

String
getText()
Returns the caption for the HRef.
static Type
getType()
Retrieve the runtime type used by the GLib library.
String
getURL()
Returns the URL referenced by the HRef.
protected static String
gnome_href_get_text(Handle label)
protected static int
gnome_href_get_type()
protected static String
gnome_href_get_url(Handle href)
protected static Handle
gnome_href_new(String url, String lable)
protected static void
gnome_href_set_text(Handle href, String text)
protected static void
gnome_href_set_url(Handle href, String url)
void
setText(String text)
Returns the caption for the HRef.
void
setURL(String url)
Returns the URL referenced by the HRef.

Constructor Details

HRef

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


HRef

public HRef(String url,
            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.

Method Details

getText

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

Returns:
The text displayed by the HRef.


getType

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


getURL

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

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


gnome_href_get_text

protected static final String gnome_href_get_text(Handle label)


gnome_href_get_type

protected static final int gnome_href_get_type()


gnome_href_get_url

protected static final String gnome_href_get_url(Handle href)


gnome_href_new

protected static final Handle gnome_href_new(String url,
                                             String lable)


gnome_href_set_text

protected static final void gnome_href_set_text(Handle href,
                                                String text)


gnome_href_set_url

protected static final void gnome_href_set_url(Handle href,
                                               String url)


setText

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

Parameters:
text - The text displayed by the HRef.


setURL

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

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