Class: GxtWidgets::GxtGridGroup
- Inherits:
-
RowContainer
- Object
- PageObject::Elements::Table
- RowContainer
- GxtWidgets::GxtGridGroup
- Defined in:
- lib/gxt-widgets/gxt_grid_group.rb
Instance Attribute Summary collapse
-
#container ⇒ Object
readonly
Returns the value of attribute container.
Instance Method Summary collapse
- #collapse ⇒ Object
- #collapsed? ⇒ Boolean
- #expand ⇒ Object
- #expanded? ⇒ Boolean
- #group_title ⇒ Object
-
#initialize(element, container, platform) ⇒ GxtGridGroup
constructor
A new instance of GxtGridGroup.
- #initialize_row(row_element, platform) ⇒ Object
- #name ⇒ Object
Constructor Details
#initialize(element, container, platform) ⇒ GxtGridGroup
Returns a new instance of GxtGridGroup.
28 29 30 31 32 |
# File 'lib/gxt-widgets/gxt_grid_group.rb', line 28 def initialize(element, container, platform) @element = element @container = container include_platform_for platform end |
Instance Attribute Details
#container ⇒ Object (readonly)
Returns the value of attribute container.
6 7 8 |
# File 'lib/gxt-widgets/gxt_grid_group.rb', line 6 def container @container end |
Instance Method Details
#collapse ⇒ Object
24 25 26 |
# File 'lib/gxt-widgets/gxt_grid_group.rb', line 24 def collapse group_title.click if end |
#collapsed? ⇒ Boolean
16 17 18 |
# File 'lib/gxt-widgets/gxt_grid_group.rb', line 16 def collapsed? attribute(:class).include? "x-grid-group-collapsed" end |
#expand ⇒ Object
20 21 22 |
# File 'lib/gxt-widgets/gxt_grid_group.rb', line 20 def group_title.click unless end |
#expanded? ⇒ Boolean
12 13 14 |
# File 'lib/gxt-widgets/gxt_grid_group.rb', line 12 def not collapsed? end |
#group_title ⇒ Object
35 36 37 |
# File 'lib/gxt-widgets/gxt_grid_group.rb', line 35 def group_title div_element(:class=>'x-grid-group-hd') end |
#initialize_row(row_element, platform) ⇒ Object
39 40 41 |
# File 'lib/gxt-widgets/gxt_grid_group.rb', line 39 def initialize_row(row_element, platform) Object::GxtWidgets::GxtGridRow.new(row_element, container, platform) end |
#name ⇒ Object
8 9 10 |
# File 'lib/gxt-widgets/gxt_grid_group.rb', line 8 def name group_title.text end |