Atk.Hyperlink¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
The end index of the |
||
r |
The number of anchors associated with the |
||
r |
Specifies whether the |
||
r |
The start index of the |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The signal link-activated is emitted when a link is activated. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Atk.Hyperlink(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An ATK object which encapsulates a link or set of links in a hypertext document.
An ATK object which encapsulates a link or set of links (for instance in the case of client-side image maps) in a hypertext document. It may implement the
Atk.Action
interface.Atk.Hyperlink
may also be used to refer to inline embedded content, since it allows specification of a start and end offset within the hostAtk.Hypertext
object.- get_end_index()[source]¶
- Returns:
the index with the hypertext document at which this link ends
- Return type:
Gets the index with the hypertext document at which this link ends.
- get_n_anchors()[source]¶
- Returns:
the number of anchors associated with this hyperlink
- Return type:
Gets the number of anchors associated with this hyperlink.
- get_object(i)[source]¶
- Parameters:
i (
int
) – a (zero-index) integer specifying the desired anchor- Returns:
an
Atk.Object
associated with this hyperlinks i-th anchor- Return type:
Returns the item associated with this hyperlinks nth anchor. For instance, the returned
Atk.Object
will implementAtk.Text
if self is a text hyperlink,Atk.Image
if self is an image hyperlink etc.Multiple anchors are primarily used by client-side image maps.
- get_start_index()[source]¶
- Returns:
the index with the hypertext document at which this link begins
- Return type:
Gets the index with the hypertext document at which this link begins.
- get_uri(i)[source]¶
- Parameters:
i (
int
) – a (zero-index) integer specifying the desired anchor- Returns:
a string specifying the URI
- Return type:
Get a the URI associated with the anchor specified by i of self.
Multiple anchors are primarily used by client-side image maps.
- is_inline()[source]¶
- Returns:
whether or not this link displays its content inline.
- Return type:
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 returnTrue
.
- is_selected_link()[source]¶
- Returns:
True if the
Atk.Hyperlink
is selected, False otherwise- Return type:
Determines whether this
Atk.Hyperlink
is selectedNew in version 1.4.
Deprecated since version 1.8: Please use
Atk.StateType.FOCUSABLE
for all links, andAtk.StateType.FOCUSED
for focused links.
- is_valid()[source]¶
- Returns:
whether or not this link is still valid
- Return type:
Since 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) andFalse
otherwise.
- do_get_end_index() virtual¶
- Returns:
the index with the hypertext document at which this link ends
- Return type:
Gets the index with the hypertext document at which this link ends.
- do_get_n_anchors() virtual¶
- Returns:
the number of anchors associated with this hyperlink
- Return type:
Gets the number of anchors associated with this hyperlink.
- do_get_object(i) virtual¶
- Parameters:
i (
int
) – a (zero-index) integer specifying the desired anchor- Returns:
an
Atk.Object
associated with this hyperlinks i-th anchor- Return type:
Returns the item associated with this hyperlinks nth anchor. For instance, the returned
Atk.Object
will implementAtk.Text
if link_ is a text hyperlink,Atk.Image
if link_ is an image hyperlink etc.Multiple anchors are primarily used by client-side image maps.
- do_get_start_index() virtual¶
- Returns:
the index with the hypertext document at which this link begins
- Return type:
Gets the index with the hypertext document at which this link begins.
- do_get_uri(i) virtual¶
- Parameters:
i (
int
) – a (zero-index) integer specifying the desired anchor- Returns:
a string specifying the URI
- Return type:
Get a the URI associated with the anchor specified by i of link_.
Multiple anchors are primarily used by client-side image maps.
- do_is_selected_link() virtual¶
- Returns:
True if the
Atk.Hyperlink
is selected, False otherwise- Return type:
Determines whether this
Atk.Hyperlink
is selectedNew in version 1.4.
Deprecated since version 1.8: Please use
Atk.StateType.FOCUSABLE
for all links, andAtk.StateType.FOCUSED
for focused links.
- do_is_valid() virtual¶
- Returns:
whether or not this link is still valid
- Return type:
Since 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) andFalse
otherwise.
- do_link_activated() virtual¶
Signal Details¶
- Atk.Hyperlink.signals.link_activated(hyperlink)¶
- Signal Name:
link-activated
- Flags:
- Parameters:
hyperlink (
Atk.Hyperlink
) – The object which received the signal
The signal link-activated is emitted when a link is activated.
Property Details¶
- Atk.Hyperlink.props.end_index¶
-
The end index of the
Atk.Hyperlink
object
- Atk.Hyperlink.props.number_of_anchors¶
-
The number of anchors associated with the
Atk.Hyperlink
object
- Atk.Hyperlink.props.selected_link¶
-
Selected link
Deprecated since version 1.8: Please use
Atk.StateType.FOCUSABLE
for all links, andAtk.StateType.FOCUSED
for focused links.
- Atk.Hyperlink.props.start_index¶
-
The start index of the
Atk.Hyperlink
object