Class: ATSPI::Accessible::Table::Rows

Inherits:
Object
  • Object
show all
Includes:
SelectableCollection
Defined in:
lib/atspi/accessible/table/rows.rb

Overview

Represents all rows in a ATSPI::Accessible::Table

Defined Under Namespace

Classes: Selected

Enumerable interface collapse

Selection collapse

Representation collapse

Instance Method Details

#[](idx) ⇒ Object Originally defined in module Collection

alias for #at

#at(idx) ⇒ Row

Returns the row at index idx.

Parameters:

  • idx (Integer)

Returns:

  • (Row)

    the row at index idx



16
17
18
19
20
# File 'lib/atspi/accessible/table/rows.rb', line 16

def at(idx)
  super do |mapped_idx|
    Row.new(@native, mapped_idx)
  end
end

#countInteger

Returns its number of rows.

Returns:

  • (Integer)

    its number of rows

See Also:



25
26
27
# File 'lib/atspi/accessible/table/rows.rb', line 25

def count
  @native.n_rows
end

#deselect_alltrue, false Originally defined in module SelectableCollection

Deselects all items

Returns:

  • (true, false)

    indicating success

#eachObject Originally defined in module Collection

prerequisite for Enumerable

#inspectString Originally defined in module SelectableCollection

Returns instance as inspectable string.

Returns:

  • (String)

    instance as inspectable string

#last(n = 1) ⇒ Object+ Originally defined in module Collection

Returns item(s) from the end.

Parameters:

  • n (Integer) (defaults to: 1)

    number of items to return

Returns:

  • (Object, Array<Object>)

    item(s) from the end

#lengthObject Originally defined in module Collection

alias for #count

#select_alltrue, false Originally defined in module SelectableCollection

Selects all items

Returns:

  • (true, false)

    indicating success

#selectedSelected Originally defined in module SelectableCollection

Returns its selected subset.

Returns:

#sizeObject Originally defined in module Collection

alias for #count