Class: FunFX::Flex::Elements::FlexMenu

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



264
265
266
# File 'lib/funfx/flex/elements.rb', line 264

def alternating_row_colors
  get_property_value('alternatingRowColors', String)
end

#hideObject



289
290
291
# File 'lib/funfx/flex/elements.rb', line 289

def hide()
  fire_event('Hide')
end

#roll_over_colorObject



268
269
270
# File 'lib/funfx/flex/elements.rb', line 268

def roll_over_color
  get_property_value('rollOverColor', String)
end

#row_countObject



256
257
258
# File 'lib/funfx/flex/elements.rb', line 256

def row_count
  get_property_value('rowCount', Integer)
end

#select(item_renderer) ⇒ Object



292
293
294
# File 'lib/funfx/flex/elements.rb', line 292

def select(item_renderer)
  fire_event('Select', item_renderer)
end

#selected_indexObject



260
261
262
# File 'lib/funfx/flex/elements.rb', line 260

def selected_index
  get_property_value('selectedIndex', Integer)
end

#selection_colorObject



272
273
274
# File 'lib/funfx/flex/elements.rb', line 272

def selection_color
  get_property_value('selectionColor', String)
end

#show(item_renderer) ⇒ Object



286
287
288
# File 'lib/funfx/flex/elements.rb', line 286

def show(item_renderer)
  fire_event('Show', item_renderer)
end

#text_roll_over_colorObject



276
277
278
# File 'lib/funfx/flex/elements.rb', line 276

def text_roll_over_color
  get_property_value('textRollOverColor', String)
end

#text_selected_colorObject



280
281
282
# File 'lib/funfx/flex/elements.rb', line 280

def text_selected_color
  get_property_value('textSelectedColor', String)
end

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



283
284
285
# File 'lib/funfx/flex/elements.rb', line 283

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