Class: FunFX::Flex::Elements::FlexColorPicker

Inherits:
FlexComboBase show all
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 inherited from FlexComboBase

#background_alpha, #background_color, #background_image, #background_size, #color, #disabled_color, #drop_shadow_enabled?, #editable?, #fill_alphas, #fill_colors, #font_family, #font_size, #font_style, #font_weight, #highlight_color, #horizontal_scroll_policy, #horizontal_scroll_position, #input, #live_scrolling?, #restrict, #scroll, #select_text, #selected_index, #show_scroll_tips?, #text, #text_align, #text_decoration, #text_indent, #type, #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

#change(color) ⇒ Object



1420
1421
1422
# File 'lib/funfx/flex/elements.rb', line 1420

def change(color)
  fire_event('Change', color)
end

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



1417
1418
1419
# File 'lib/funfx/flex/elements.rb', line 1417

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

#column_countObject



1411
1412
1413
# File 'lib/funfx/flex/elements.rb', line 1411

def column_count
  get_property_value('columnCount', Integer)
end

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



1414
1415
1416
# File 'lib/funfx/flex/elements.rb', line 1414

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

#selected_colorObject



1403
1404
1405
# File 'lib/funfx/flex/elements.rb', line 1403

def selected_color
  get_property_value('selectedColor', Integer)
end

#show_text_field?Boolean

Returns:

  • (Boolean)


1407
1408
1409
# File 'lib/funfx/flex/elements.rb', line 1407

def show_text_field?
  get_property_value('showTextField', TrueClass)
end