atk.HyperlinkAn ATK object which encapsulates a link or set of links in a hypertext document. Synopsisatk.Hyperlinkgobject.GObjectget_uriiget_objectiget_end_indexget_start_indexis_validget_n_anchorsis_inlineis_selected_linkAncestry+-- gobject.GObject
+-- atk.Hyperlink
atk.Hyperlink Properties
"end-index"ReadThe end index of the atk.Hyperlink
object. Allowed values: >= 0. Default value: 0."number-of-anchors"ReadThe number of anchors associated with the atk.Hyperlink
object. Allowed values: >= 0. Default value: 0."selected-link"Readif True the atk.Hyperlink
object is selected. Default value:
False."start-index"ReadThe start index of the AtkHyperlink object. Allowed values:
>= 0. Default value: 0.
atk.Hyperlink Signal Prototypesgobject.GObject Signal Prototypes"link-activated"callbackatkhyperlinkuser_param1...DescriptionAn ATK object which encapsulates a link or set of links in a
hypertext document. It implements the atk.Action
interface.Methodsatk.Hyperlink.get_uriget_uriii :a (zero-index) integer specifying the desired
anchorReturns :a string specifying the
URIGet a the URI associated with the anchor specified by
i.Multiple anchors are primarily used by client-side image
maps.atk.Hyperlink.get_objectget_objectii :a (zero-index) integer specifying the desired
anchorReturns :an atk.Object
associated with this hyperlinks i-th anchorReturns the item associated with this hyperlinks nth anchor.
For instance, the returned atk.Object
will implement atk.Text if
the link is a text hyperlink, atk.Image if
the link is an image hyperlink etc. Multiple anchors are primarily used by client-side image
maps.atk.Hyperlink.get_end_indexget_end_indexReturns :the index with the hypertext document at which
this link endsGets the index with the hypertext document at which this link
ends.atk.Hyperlink.get_start_indexget_start_indexReturns :the index with the hypertext document at which
this link beginsGets the index with the hypertext document at which this link
begins.atk.Hyperlink.is_validis_validReturns :if True this link is still
validSince the document that a link is associated with may have
changed this method returns True if the link is
still valid (with respect to the document it references) and
False otherwise.atk.Hyperlink.get_n_anchorsget_n_anchorsReturns :the number of anchors associated with this
hyperlinkGets the number of anchors associated with this
hyperlink.atk.Hyperlink.is_inlineis_inlineReturns :if True this link displays
its content inline.Indicates whether the link currently displays some or all of its
content inline. Ordinary HTML links will usually return
False, but an inline <src> HTML element will
return True.atk.Hyperlink.is_selected_linkis_selected_linkReturns :True if the atk.Hyperlink
is selected.Determines whether this atk.Hyperlink
is selectedSignalsThe "link-activated" atk.Hyperlink Signalcallbackatkhyperlinkuser_param1...atkhyperlink :the object which received the signal.user_param1 :the first user parameter (if any) specified
with the connect()
method... :additional user parameters (if any)The signal "link-activated" is emitted when a link is
activated.