Class: FunFX::Flex::Elements::FlexComboBase

Inherits:
FlexObject show all
Defined in:
lib/funfx/flex/elements.rb

Direct Known Subclasses

FlexColorPicker, FlexComboBox, FlexDateField

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 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_alphaObject



1265
1266
1267
# File 'lib/funfx/flex/elements.rb', line 1265

def background_alpha
  get_property_value('backgroundAlpha', Integer)
end

#background_colorObject



1269
1270
1271
# File 'lib/funfx/flex/elements.rb', line 1269

def background_color
  get_property_value('backgroundColor', String)
end

#background_imageObject



1273
1274
1275
# File 'lib/funfx/flex/elements.rb', line 1273

def background_image
  get_property_value('backgroundImage', String)
end

#background_sizeObject



1277
1278
1279
# File 'lib/funfx/flex/elements.rb', line 1277

def background_size
  get_property_value('backgroundSize', String)
end

#close(trigger_event = ["1"]) ⇒ Object



1335
1336
1337
# File 'lib/funfx/flex/elements.rb', line 1335

def close(trigger_event=["1"])
  fire_event('Close', trigger_event)
end

#colorObject



1281
1282
1283
# File 'lib/funfx/flex/elements.rb', line 1281

def color
  get_property_value('color', Integer)
end

#disabled_colorObject



1285
1286
1287
# File 'lib/funfx/flex/elements.rb', line 1285

def disabled_color
  get_property_value('disabledColor', String)
end

#drop_shadow_enabled?Boolean

Returns:

  • (Boolean)


1289
1290
1291
# File 'lib/funfx/flex/elements.rb', line 1289

def drop_shadow_enabled?
  get_property_value('dropShadowEnabled', TrueClass)
end

#editable?Boolean

Returns:

  • (Boolean)


1233
1234
1235
# File 'lib/funfx/flex/elements.rb', line 1233

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

#fill_alphasObject



1293
1294
1295
# File 'lib/funfx/flex/elements.rb', line 1293

def fill_alphas
  get_property_value('fillAlphas', String)
end

#fill_colorsObject



1297
1298
1299
# File 'lib/funfx/flex/elements.rb', line 1297

def fill_colors
  get_property_value('fillColors', String)
end

#font_familyObject



1301
1302
1303
# File 'lib/funfx/flex/elements.rb', line 1301

def font_family
  get_property_value('fontFamily', String)
end

#font_sizeObject



1305
1306
1307
# File 'lib/funfx/flex/elements.rb', line 1305

def font_size
  get_property_value('fontSize', Integer)
end

#font_styleObject



1309
1310
1311
# File 'lib/funfx/flex/elements.rb', line 1309

def font_style
  get_property_value('fontStyle', String)
end

#font_weightObject



1313
1314
1315
# File 'lib/funfx/flex/elements.rb', line 1313

def font_weight
  get_property_value('fontWeight', String)
end

#highlight_colorObject



1317
1318
1319
# File 'lib/funfx/flex/elements.rb', line 1317

def highlight_color
  get_property_value('highlightColor', String)
end

#horizontal_scroll_policyObject



1245
1246
1247
# File 'lib/funfx/flex/elements.rb', line 1245

def horizontal_scroll_policy
  get_property_value('horizontalScrollPolicy', String)
end

#horizontal_scroll_positionObject



1241
1242
1243
# File 'lib/funfx/flex/elements.rb', line 1241

def horizontal_scroll_position
  get_property_value('horizontalScrollPosition', Integer)
end

#input(text) ⇒ Object



1341
1342
1343
# File 'lib/funfx/flex/elements.rb', line 1341

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

#live_scrolling?Boolean

Returns:

  • (Boolean)


1249
1250
1251
# File 'lib/funfx/flex/elements.rb', line 1249

def live_scrolling?
  get_property_value('liveScrolling', TrueClass)
end

#open(trigger_event = ["1"]) ⇒ Object



1332
1333
1334
# File 'lib/funfx/flex/elements.rb', line 1332

def open(trigger_event=["1"])
  fire_event('Open', trigger_event)
end

#restrictObject



1229
1230
1231
# File 'lib/funfx/flex/elements.rb', line 1229

def restrict
  get_property_value('restrict', String)
end

#scroll(position, direction, detail = ["null"]) ⇒ Object



1338
1339
1340
# File 'lib/funfx/flex/elements.rb', line 1338

def scroll(position, direction, detail=["null"])
  fire_event('Scroll', position, direction, detail)
end

#select_text(begin_index, end_index) ⇒ Object



1344
1345
1346
# File 'lib/funfx/flex/elements.rb', line 1344

def select_text(begin_index, end_index)
  fire_event('SelectText', begin_index, end_index)
end

#selected_indexObject



1237
1238
1239
# File 'lib/funfx/flex/elements.rb', line 1237

def selected_index
  get_property_value('selectedIndex', Integer)
end

#show_scroll_tips?Boolean

Returns:

  • (Boolean)


1253
1254
1255
# File 'lib/funfx/flex/elements.rb', line 1253

def show_scroll_tips?
  get_property_value('showScrollTips', TrueClass)
end

#textObject



1225
1226
1227
# File 'lib/funfx/flex/elements.rb', line 1225

def text
  get_property_value('text', String)
end

#text_alignObject



1321
1322
1323
# File 'lib/funfx/flex/elements.rb', line 1321

def text_align
  get_property_value('textAlign', String)
end

#text_decorationObject



1325
1326
1327
# File 'lib/funfx/flex/elements.rb', line 1325

def text_decoration
  get_property_value('textDecoration', String)
end

#text_indentObject



1329
1330
1331
# File 'lib/funfx/flex/elements.rb', line 1329

def text_indent
  get_property_value('textIndent', Integer)
end

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



1347
1348
1349
# File 'lib/funfx/flex/elements.rb', line 1347

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

#vertical_scroll_policyObject



1261
1262
1263
# File 'lib/funfx/flex/elements.rb', line 1261

def vertical_scroll_policy
  get_property_value('verticalScrollPolicy', String)
end

#vertical_scroll_positionObject



1257
1258
1259
# File 'lib/funfx/flex/elements.rb', line 1257

def vertical_scroll_position
  get_property_value('verticalScrollPosition', Integer)
end