org.gnome.gtk
Class LinkButton
Object
org.freedesktop.bindings.Pointer
org.freedesktop.bindings.Proxy
org.gnome.glib.Object
org.gnome.gtk.Object
org.gnome.gtk.Widget
org.gnome.gtk.Container
org.gnome.gtk.Bin
org.gnome.gtk.Button
org.gnome.gtk.LinkButton
- All Implemented Interfaces:
- Activatable
public class LinkButton
- extends Button
LinkButton is a specialized subclass of Button for linking to URIs. The
default action is to open the URI with its associated application
determined by the desktop environment.
- Since:
- 4.0.14
- Author:
- Serkan Kaba, Guillaume Mazoyer
Nested classes/interfaces inherited from class org.gnome.gtk.Widget |
Widget.ButtonPressEvent, Widget.ButtonReleaseEvent, Widget.EnterNotifyEvent, Widget.ExposeEvent, Widget.FocusInEvent, Widget.FocusOutEvent, Widget.Hide, Widget.KeyPressEvent, Widget.KeyReleaseEvent, Widget.LeaveNotifyEvent, Widget.MapEvent, Widget.MotionNotifyEvent, Widget.PopupMenu, Widget.ScrollEvent, Widget.UnmapEvent, Widget.VisibilityNotifyEvent |
Constructor Summary |
LinkButton(URI uri)
Create a button pointing to given URI. |
LinkButton(URI uri,
String label)
Create a button pointing to given URI and the given label
as you would expect from a normal hyperlink. |
Method Summary |
URI |
getURI()
Return the button's URI. |
boolean |
getVisited()
Return the button's visited state. |
void |
setURI(URI uri)
Modify the button's URI . |
void |
setVisited(boolean visited)
Modify the button's visited state. |
Methods inherited from class org.gnome.gtk.Button |
connect, emitClicked, getAlignmentX, getAlignmentY, getImage, getLabel, getRelatedAction, getRelief, setAlignment, setFocusOnClick, setImage, setLabel, setRelatedAction, setRelief |
Methods inherited from class org.gnome.gtk.Bin |
getChild |
Methods inherited from class org.gnome.gtk.Widget |
activate, addEvents, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, getAllocation, getCanDefault, getCanFocus, getHasFocus, getName, getParent, getRequisition, getSensitive, getToplevel, getWindow, grabAdd, grabDefault, grabFocus, grabRemove, hide, isSensitive, modifyBackground, modifyBase, modifyFont, modifyText, queueDraw, queueDrawArea, realize, setCanDefault, setCanFocus, setColormap, setEvents, setName, setSensitive, setSizeRequest, setTooltipMarkup, setTooltipText, show, showAll |
Methods inherited from class org.freedesktop.bindings.Pointer |
toString |
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LinkButton
public LinkButton(URI uri)
- Create a button pointing to given URI. The
uri
will also
be used as the label.
- Since:
- 4.0.14
LinkButton
public LinkButton(URI uri,
String label)
- Create a button pointing to given URI and the given
label
as you would expect from a normal hyperlink.
- Since:
- 4.0.14
getURI
public URI getURI()
- Return the button's URI.
- Since:
- 4.0.14
getVisited
public boolean getVisited()
- Return the button's visited state. Note that this might be modified
programatically by
setVisited(boolean)
.
- Since:
- 4.0.14
setURI
public void setURI(URI uri)
- Modify the button's
URI
.
- Since:
- 4.0.14
setVisited
public void setVisited(boolean visited)
- Modify the button's visited state.
- Since:
- 4.0.14