Class: ATSPI::Accessible::Table::Column
- Inherits:
-
Object
- Object
- ATSPI::Accessible::Table::Column
- Defined in:
- lib/atspi/accessible/table/column.rb
Overview
Represents a column in a ATSPI::Accessible::Table
State & Attributes collapse
-
#index ⇒ Integer
readonly
Its index.
State & Attributes collapse
-
#description ⇒ String
Its description.
-
#header ⇒ Cell
Its header.
-
#selected? ⇒ true, false
Checks if it is selected.
Actions collapse
-
#deselect ⇒ true, false
Deselects its.
-
#select ⇒ true, false
Selects its.
Representations collapse
-
#inspect ⇒ String
Itself as an inspectable string.
Instance Attribute Details
#index ⇒ Integer (readonly)
Returns its index.
12 13 14 |
# File 'lib/atspi/accessible/table/column.rb', line 12 def index @index end |
Instance Method Details
#description ⇒ String
Returns its description.
23 24 25 |
# File 'lib/atspi/accessible/table/column.rb', line 23 def description @native.column_description(@index) end |
#deselect ⇒ true, false
Deselects its
46 47 48 |
# File 'lib/atspi/accessible/table/column.rb', line 46 def deselect @native.remove_column_selection(@index) end |
#header ⇒ Cell
Returns its header.
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 |
#inspect ⇒ String
Returns 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 |
#select ⇒ true, false
Selects its
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
30 31 32 |
# File 'lib/atspi/accessible/table/column.rb', line 30 def selected? @native.is_column_selected(@index) end |