|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gnu.glib.GObject | +--org.gnu.gtk.GtkObject | +--org.gnu.gtk.Widget | +--org.gnu.gtk.Container | +--org.gnu.gtk.Bin | +--org.gnu.gtk.Button | +--org.gnu.gnome.HRef
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(int 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 | |
java.lang.String |
getText()
Returns the caption for the HRef. |
static 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, getEventListenerClass, getEventType, getLabel, getRelief, getUseStock, getUseUnderline, leave, press, release, removeListener, setLabel, setRelief, setUseStock, setUseUnderline |
Methods inherited from class org.gnu.gtk.Bin |
getChild |
Methods inherited from class org.gnu.gtk.Container |
add, addListener, getBorderWidth, getResizeMode, remove, removeListener, resizeChildren, setBorderWidth, setResizeMode |
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 |
public HRef(java.lang.String url, java.lang.String lable)
url
- The URL to show in the web browser when the HRef is clicked.lable
- The caption for the HRef.public HRef(int handle)
Method Detail |
public java.lang.String getText()
public java.lang.String getURL()
public void setText(java.lang.String text)
text
- The text displayed by the HRef.public void setURL(java.lang.String url)
url
- The url to show when the HRef is clicked.public static Type getType()
|
Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |