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.
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.
|
static HRef | getHRef(Handle handle) - Internal static factory method to be used by Java-Gnome only.
|
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.
|
void | setText(String text) - Returns the caption for the HRef.
|
void | setURL(String url) - Returns the URL referenced by the HRef.
|
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.
url
- The URL to show in the web browser when the HRef is clicked.lable
- The caption for the HRef.
getHRef
public static HRef getHRef(Handle handle)
Internal static factory method to be used by Java-Gnome only.
getText
public String getText()
Returns the caption for the HRef.
- 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.
- The url to show when the HRef is clicked.
setText
public void setText(String text)
Returns the caption for the HRef.
text
- The text displayed by the HRef.
setURL
public void setURL(String url)
Returns the URL referenced by the HRef.
url
- The url to show when the HRef is clicked.