Class: FunFX::Flex::Elements::FlexMenuBar

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

#background_colorObject



1128
1129
1130
# File 'lib/funfx/flex/elements.rb', line 1128

def background_color
  get_property_value('backgroundColor', String)
end

#colorObject



1132
1133
1134
# File 'lib/funfx/flex/elements.rb', line 1132

def color
  get_property_value('color', String)
end

#disabled_colorObject



1136
1137
1138
# File 'lib/funfx/flex/elements.rb', line 1136

def disabled_color
  get_property_value('disabledColor', String)
end

#fill_colorsObject



1140
1141
1142
# File 'lib/funfx/flex/elements.rb', line 1140

def fill_colors
  get_property_value('fillColors', String)
end

#font_familyObject



1144
1145
1146
# File 'lib/funfx/flex/elements.rb', line 1144

def font_family
  get_property_value('fontFamily', String)
end

#font_sizeObject



1148
1149
1150
# File 'lib/funfx/flex/elements.rb', line 1148

def font_size
  get_property_value('fontSize', Integer)
end

#font_styleObject



1152
1153
1154
# File 'lib/funfx/flex/elements.rb', line 1152

def font_style
  get_property_value('fontStyle', String)
end

#font_weightObject



1156
1157
1158
# File 'lib/funfx/flex/elements.rb', line 1156

def font_weight
  get_property_value('fontWeight', String)
end

#hideObject



1185
1186
1187
# File 'lib/funfx/flex/elements.rb', line 1185

def hide()
  fire_event('Hide')
end

#num_childrenObject



1120
1121
1122
# File 'lib/funfx/flex/elements.rb', line 1120

def num_children
  get_property_value('numChildren', Integer)
end

#roll_over_colorObject



1168
1169
1170
# File 'lib/funfx/flex/elements.rb', line 1168

def roll_over_color
  get_property_value('rollOverColor', String)
end

#selected_indexObject



1124
1125
1126
# File 'lib/funfx/flex/elements.rb', line 1124

def selected_index
  get_property_value('selectedIndex', Integer)
end

#selection_colorObject



1172
1173
1174
# File 'lib/funfx/flex/elements.rb', line 1172

def selection_color
  get_property_value('selectionColor', String)
end

#show(item_renderer) ⇒ Object



1182
1183
1184
# File 'lib/funfx/flex/elements.rb', line 1182

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

#text_alignObject



1160
1161
1162
# File 'lib/funfx/flex/elements.rb', line 1160

def text_align
  get_property_value('textAlign', String)
end

#text_decorationObject



1164
1165
1166
# File 'lib/funfx/flex/elements.rb', line 1164

def text_decoration
  get_property_value('textDecoration', String)
end

#text_indentObject



1176
1177
1178
# File 'lib/funfx/flex/elements.rb', line 1176

def text_indent
  get_property_value('textIndent', Integer)
end

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



1179
1180
1181
# File 'lib/funfx/flex/elements.rb', line 1179

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