|
java-gnome version 4.1.1 | ||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.freedesktop.bindings.Pointer
org.freedesktop.bindings.Proxy
org.gnome.glib.Object
org.gnome.gtk.Widget
org.gnome.gtk.Container
org.gnome.gtk.Bin
org.gnome.gtk.Button
org.gnome.gtk.LinkButton
public class LinkButton
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.gnome.gtk.Button |
---|
Button.Clicked |
Nested classes/interfaces inherited from class org.gnome.gtk.Widget |
---|
Widget.ButtonPressEvent, Widget.ButtonReleaseEvent, Widget.Destroy, Widget.Draw, Widget.EnterNotifyEvent, Widget.FocusInEvent, Widget.FocusOutEvent, Widget.Hide, Widget.KeyPressEvent, Widget.KeyReleaseEvent, Widget.LeaveNotifyEvent, Widget.MapEvent, Widget.MotionNotifyEvent, Widget.PopupMenu, Widget.ScrollEvent, Widget.SizeAllocate, 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.Container |
---|
add, getChildren, remove, setBorderWidth |
Methods inherited from class org.freedesktop.bindings.Pointer |
---|
toString |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LinkButton(URI uri)
uri
will also
be used as the label.
public LinkButton(URI uri, String label)
label
as you would expect from a normal hyperlink.
Method Detail |
---|
public URI getURI()
public boolean getVisited()
setVisited(boolean)
.
public void setURI(URI uri)
URI
.
public void setVisited(boolean visited)
|
![]() java-gnome |
||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |