Class: Atk::Hyperlink

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#end_indexInteger

Returns end-index.

Returns:

  • (Integer)

    end-index

#end_index=(end_index) ⇒ Integer

Parameters:

  • end_index (Integer)

Returns:

  • (Integer)

    end-index

  • (Integer)

    end-index

#get_object(i) ⇒ Atk::Object

Returns the item associated with this hyperlinks nth anchor. For instance, the returned Atk::Object will implement #AtkText 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. i-th anchor

Parameters:

  • i (Integer)

    a (zero-index) integer specifying the desired anchor

Returns:

  • (Atk::Object)

    an Atk::Object associated with this hyperlinks

#get_uri(i) ⇒ String

Get a the URI associated with the anchor specified by i of link_.

Multiple anchors are primarily used by client-side image maps.

Parameters:

  • i (Integer)

    a (zero-index) integer specifying the desired anchor

Returns:

  • (String)

    a string specifying the URI

#is_inlineTrueClass

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.

Returns:

  • (TrueClass)

    whether or not this link displays its content inline.

Determines whether this AtkHyperlink is selected

Returns:

  • (TrueClass)

    True if the AtkHyperlink is selected, False otherwise

#is_validTrueClass

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) and false otherwise.

Returns:

  • (TrueClass)

    whether or not this link is still valid

#n_anchorsInteger

Gets the number of anchors associated with this hyperlink.

Returns:

  • (Integer)

    the number of anchors associated with this hyperlink

#number_of_anchorsInteger

Returns number-of-anchors.

Returns:

  • (Integer)

    number-of-anchors

#number_of_anchors=(number_of_anchors) ⇒ Integer

Parameters:

  • number_of_anchors (Integer)

Returns:

  • (Integer)

    number-of-anchors

  • (Integer)

    number-of-anchors

#selected_link=(selected_link) ⇒ TrueClass

Selected link

Parameters:

  • selected_link (TrueClass)

Returns:

  • (TrueClass)

    selected-link

  • (TrueClass)

    selected-link

#selected_link?TrueClass

Selected link

Returns:

  • (TrueClass)

    selected-link

#start_indexInteger

Returns start-index.

Returns:

  • (Integer)

    start-index

#start_index=(start_index) ⇒ Integer

Parameters:

  • start_index (Integer)

Returns:

  • (Integer)

    start-index

  • (Integer)

    start-index