Class: FunFX::Flex::Elements::FlexDataGrid

Inherits:
FlexListBase show all
Includes:
TabularData
Defined in:
lib/funfx/flex/elements.rb

Constant Summary

Constants inherited from FunFX::Flex::Element

FunFX::Flex::Element::MAX_TRIES

Instance Attribute Summary

Attributes inherited from FunFX::Flex::Element

#flex_app, #flex_locator

Instance Method Summary collapse

Methods included from TabularData

#column_names, #num_columns, #num_rows, #values

Methods inherited from FlexListBase

#allow_multiple_selection?, #alternating_row_colors, #background_disabled_color, #column_count, #column_width, #data_tip_field, #deselect, #double_click, #drag_cancel, #drag_drop, #drag_start, #focus_alpha, #icon_field, #label_field, #locked_column_count, #locked_row_count, #mouse_scroll, #multi_select, #num_automation_children, #roll_over_color, #row_count, #row_height, #scroll, #select, #selectable?, #selected_index, #selected_indices, #selected_item, #selected_items, #selection_color, #selection_disabled_color, #show_data_tips?, #text_roll_over_color, #text_selected_color, #type, #use_roll_over?, #variable_row_height?, #vertical_align, #word_wrap?

Methods inherited from FlexScrollBase

#mouse_scroll

Methods inherited from FlexObject

#automation_class_name, #automation_index, #automation_name, #change_focus, #class_name, #current_state, #enabled?, #error_color, #error_string, #focus_enabled?, #id, #num_automation_children, #percent_height, #percent_width, #scale_x, #scale_y, #theme_color, #tool_tip, #use_hand_cursor?

Methods inherited from FlexDisplayObject

#alpha, #click, #height, #mouse_enabled?, #mouse_move, #tab_children?, #tab_enabled?, #tab_index, #visible?, #width, #x, #y

Methods inherited from FunFX::Flex::Element

#fire_event, #flex_invoke, #get_property_value, #get_tabular_property_value, #initialize, #invoke_tabular_method, #label_element, #raise_if_funfx_error, #shift_case

Constructor Details

This class inherits a constructor from FunFX::Flex::Element

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FunFX::Flex::Element

Instance Method Details

#column_stretch(column_index, local_x) ⇒ Object



1023
1024
1025
# File 'lib/funfx/flex/elements.rb', line 1023

def column_stretch(column_index, local_x)
  fire_event('ColumnStretch', column_index, local_x)
end

#edit(item_renderer, row_index, column_index) ⇒ Object



1029
1030
1031
# File 'lib/funfx/flex/elements.rb', line 1029

def edit(item_renderer, row_index, column_index)
  fire_event('Edit', item_renderer, row_index, column_index)
end

#editable?Boolean

Returns:

  • (Boolean)


989
990
991
# File 'lib/funfx/flex/elements.rb', line 989

def editable?
  get_property_value('editable', TrueClass)
end

#header_click(column_index) ⇒ Object



1020
1021
1022
# File 'lib/funfx/flex/elements.rb', line 1020

def header_click(column_index)
  fire_event('HeaderClick', column_index)
end

#header_colorsObject



1005
1006
1007
# File 'lib/funfx/flex/elements.rb', line 1005

def header_colors
  get_property_value('headerColors', String)
end

#header_shift(new_index, old_index, trigger_event = ["1"]) ⇒ Object



1026
1027
1028
# File 'lib/funfx/flex/elements.rb', line 1026

def header_shift(new_index, old_index, trigger_event=["1"])
  fire_event('HeaderShift', new_index, old_index, trigger_event)
end

#header_styleObject



1009
1010
1011
# File 'lib/funfx/flex/elements.rb', line 1009

def header_style
  get_property_value('headerStyle', String)
end

#min_column_widthObject



993
994
995
# File 'lib/funfx/flex/elements.rb', line 993

def min_column_width
  get_property_value('minColumnWidth', Integer)
end

#resizable_columns?Boolean

Returns:

  • (Boolean)


997
998
999
# File 'lib/funfx/flex/elements.rb', line 997

def resizable_columns?
  get_property_value('resizableColumns', TrueClass)
end

#sortable_columns?Boolean

Returns:

  • (Boolean)


1001
1002
1003
# File 'lib/funfx/flex/elements.rb', line 1001

def sortable_columns?
  get_property_value('sortableColumns', TrueClass)
end

#v_grid_line_colorObject



1013
1014
1015
# File 'lib/funfx/flex/elements.rb', line 1013

def v_grid_line_color
  get_property_value('vGridLineColor', String)
end

#v_grid_lines?Boolean

Returns:

  • (Boolean)


1017
1018
1019
# File 'lib/funfx/flex/elements.rb', line 1017

def v_grid_lines?
  get_property_value('vGridLines', TrueClass)
end