Class: FunFX::Flex::Elements::FlexComboBox

Inherits:
FlexComboBase 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 FlexComboBase

#background_alpha, #background_color, #background_image, #background_size, #close, #color, #disabled_color, #drop_shadow_enabled?, #fill_alphas, #font_family, #font_size, #font_style, #font_weight, #highlight_color, #horizontal_scroll_policy, #horizontal_scroll_position, #live_scrolling?, #open, #restrict, #scroll, #select_text, #show_scroll_tips?, #text_align, #text_decoration, #text_indent, #vertical_scroll_policy, #vertical_scroll_position

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

#alternating_row_colorsObject



1371
1372
1373
# File 'lib/funfx/flex/elements.rb', line 1371

def alternating_row_colors
  get_property_value('alternatingRowColors', String)
end

#editable?Boolean

Returns:

  • (Boolean)


1367
1368
1369
# File 'lib/funfx/flex/elements.rb', line 1367

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

#fill_colorsObject



1375
1376
1377
# File 'lib/funfx/flex/elements.rb', line 1375

def fill_colors
  get_property_value('fillColors', String)
end

#input(text) ⇒ Object



1392
1393
1394
# File 'lib/funfx/flex/elements.rb', line 1392

def input(text)
  fire_event('Input', text)
end

#roll_over_color?Boolean

Returns:

  • (Boolean)


1379
1380
1381
# File 'lib/funfx/flex/elements.rb', line 1379

def roll_over_color?
  get_property_value('rollOverColor', TrueClass)
end

#select(item_renderer, trigger_event = ["1"], key_modifier = ["0"]) ⇒ Object



1386
1387
1388
# File 'lib/funfx/flex/elements.rb', line 1386

def select(item_renderer, trigger_event=["1"], key_modifier=["0"])
  fire_event('Select', item_renderer, trigger_event, key_modifier)
end

#selected_indexObject



1363
1364
1365
# File 'lib/funfx/flex/elements.rb', line 1363

def selected_index
  get_property_value('selectedIndex', Integer)
end

#selection_color?Boolean

Returns:

  • (Boolean)


1383
1384
1385
# File 'lib/funfx/flex/elements.rb', line 1383

def selection_color?
  get_property_value('selectionColor', TrueClass)
end

#textObject



1359
1360
1361
# File 'lib/funfx/flex/elements.rb', line 1359

def text
  get_property_value('text', String)
end

#type(key_code, key_modifier = ["0"]) ⇒ Object



1389
1390
1391
# File 'lib/funfx/flex/elements.rb', line 1389

def type(key_code, key_modifier=["0"])
  fire_event('Type', key_code, key_modifier)
end