|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
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
public class 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(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 |
---|
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(org.gnu.glib.Handle handle)
Method Detail |
---|
public static HRef getHRef(org.gnu.glib.Handle handle)
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 org.gnu.glib.Type getType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |