Class: ATSPI::Accessible::Table::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/atspi/accessible/table/column.rb

Overview

Represents a column in a ATSPI::Accessible::Table

State & Attributes collapse

State & Attributes collapse

Actions collapse

Representations collapse

Instance Attribute Details

#indexInteger (readonly)

Returns its index.

Returns:

  • (Integer)

    its index



12
13
14
# File 'lib/atspi/accessible/table/column.rb', line 12

def index
  @index
end

Instance Method Details

#descriptionString

Returns its description.

Returns:

  • (String)

    its description

See Also:



23
24
25
# File 'lib/atspi/accessible/table/column.rb', line 23

def description
  @native.column_description(@index)
end

#deselecttrue, false

Deselects its

Returns:

  • (true, false)

See Also:



46
47
48
# File 'lib/atspi/accessible/table/column.rb', line 46

def deselect
  @native.remove_column_selection(@index)
end

#headerCell

Returns its header.

Returns:

  • (Cell)

    its header

See Also:



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

def header
  header = @native.column_header(@index)
  Cell.new(header) if header
end

#inspectString

Returns itself as an inspectable string.

Returns:

  • (String)

    itself as an inspectable string



53
54
55
56
# File 'lib/atspi/accessible/table/column.rb', line 53

def inspect
  "#<#{self.class.name}:0x#{'%x14' % __id__} @index=#{index} @selected?=#{selected?} " <<
    "@description=#{description.inspect}>"
end

#selecttrue, false

Selects its

Returns:

  • (true, false)

See Also:



39
40
41
# File 'lib/atspi/accessible/table/column.rb', line 39

def select
  @native.add_column_selection(@index)
end

#selected?true, false

Checks if it is selected

Returns:

  • (true, false)

See Also:



30
31
32
# File 'lib/atspi/accessible/table/column.rb', line 30

def selected?
  @native.is_column_selected(@index)
end