Class: FunFX::Flex::Elements::FlexButton

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

Direct Known Subclasses

FlexCheckBox, FlexPopUpButton, FlexRadioButton

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, #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

#colorObject



2485
2486
2487
# File 'lib/funfx/flex/elements.rb', line 2485

def color
  get_property_value('color', String)
end

#disabled_colorObject



2489
2490
2491
# File 'lib/funfx/flex/elements.rb', line 2489

def disabled_color
  get_property_value('disabledColor', String)
end

#enabled?Boolean

Returns:

  • (Boolean)


2465
2466
2467
# File 'lib/funfx/flex/elements.rb', line 2465

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

#fill_alphasObject



2509
2510
2511
# File 'lib/funfx/flex/elements.rb', line 2509

def fill_alphas
  get_property_value('fillAlphas', String)
end

#fill_colorsObject



2513
2514
2515
# File 'lib/funfx/flex/elements.rb', line 2513

def fill_colors
  get_property_value('fillColors', String)
end

#focus_alphaObject



2517
2518
2519
# File 'lib/funfx/flex/elements.rb', line 2517

def focus_alpha
  get_property_value('focusAlpha', Integer)
end

#font_familyObject



2493
2494
2495
# File 'lib/funfx/flex/elements.rb', line 2493

def font_family
  get_property_value('fontFamily', String)
end

#font_sizeObject



2497
2498
2499
# File 'lib/funfx/flex/elements.rb', line 2497

def font_size
  get_property_value('fontSize', Integer)
end

#font_styleObject



2501
2502
2503
# File 'lib/funfx/flex/elements.rb', line 2501

def font_style
  get_property_value('fontStyle', String)
end

#font_weightObject



2505
2506
2507
# File 'lib/funfx/flex/elements.rb', line 2505

def font_weight
  get_property_value('fontWeight', String)
end

#labelObject



2469
2470
2471
# File 'lib/funfx/flex/elements.rb', line 2469

def label
  get_property_value('label', String)
end

#label_placementObject



2473
2474
2475
# File 'lib/funfx/flex/elements.rb', line 2473

def label_placement
  get_property_value('labelPlacement', String)
end

#selected?Boolean

Returns:

  • (Boolean)


2477
2478
2479
# File 'lib/funfx/flex/elements.rb', line 2477

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

#text_alignObject



2521
2522
2523
# File 'lib/funfx/flex/elements.rb', line 2521

def text_align
  get_property_value('textAlign', String)
end

#text_decorationObject



2525
2526
2527
# File 'lib/funfx/flex/elements.rb', line 2525

def text_decoration
  get_property_value('textDecoration', String)
end

#text_indentObject



2529
2530
2531
# File 'lib/funfx/flex/elements.rb', line 2529

def text_indent
  get_property_value('textIndent', Integer)
end

#text_roll_over_colorObject



2533
2534
2535
# File 'lib/funfx/flex/elements.rb', line 2533

def text_roll_over_color
  get_property_value('textRollOverColor', String)
end

#text_selected_colorObject



2537
2538
2539
# File 'lib/funfx/flex/elements.rb', line 2537

def text_selected_color
  get_property_value('textSelectedColor', String)
end

#toggle?Boolean

Returns:

  • (Boolean)


2481
2482
2483
# File 'lib/funfx/flex/elements.rb', line 2481

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

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



2540
2541
2542
# File 'lib/funfx/flex/elements.rb', line 2540

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