Class: FunFX::Flex::Elements::FlexTextArea

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

Direct Known Subclasses

FlexTextInput

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 FlexScrollBase

#mouse_scroll

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

#colorObject



703
704
705
# File 'lib/funfx/flex/elements.rb', line 703

def color
  get_property_value('color', Integer)
end

#disabled_colorObject



735
736
737
# File 'lib/funfx/flex/elements.rb', line 735

def disabled_color
  get_property_value('disabledColor', String)
end

#display_as_password?Boolean

Returns:

  • (Boolean)


695
696
697
# File 'lib/funfx/flex/elements.rb', line 695

def display_as_password?
  get_property_value('displayAsPassword', TrueClass)
end

#editable?Boolean

Returns:

  • (Boolean)


691
692
693
# File 'lib/funfx/flex/elements.rb', line 691

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

#font_familyObject



739
740
741
# File 'lib/funfx/flex/elements.rb', line 739

def font_family
  get_property_value('fontFamily', String)
end

#font_sizeObject



743
744
745
# File 'lib/funfx/flex/elements.rb', line 743

def font_size
  get_property_value('fontSize', Integer)
end

#font_styleObject



747
748
749
# File 'lib/funfx/flex/elements.rb', line 747

def font_style
  get_property_value('fontStyle', String)
end

#font_weightObject



751
752
753
# File 'lib/funfx/flex/elements.rb', line 751

def font_weight
  get_property_value('fontWeight', String)
end

#horizontal_scroll_policyObject



707
708
709
# File 'lib/funfx/flex/elements.rb', line 707

def horizontal_scroll_policy
  get_property_value('horizontalScrollPolicy', String)
end

#html_textObject



711
712
713
# File 'lib/funfx/flex/elements.rb', line 711

def html_text
  get_property_value('htmlText', String)
end

#input(text) ⇒ Object



754
755
756
# File 'lib/funfx/flex/elements.rb', line 754

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

#lengthObject



715
716
717
# File 'lib/funfx/flex/elements.rb', line 715

def length
  get_property_value('length', Integer)
end

#max_charsObject



719
720
721
# File 'lib/funfx/flex/elements.rb', line 719

def max_chars
  get_property_value('maxChars', Integer)
end

#restrictObject



723
724
725
# File 'lib/funfx/flex/elements.rb', line 723

def restrict
  get_property_value('restrict', String)
end

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



763
764
765
# File 'lib/funfx/flex/elements.rb', line 763

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

#select_text(begin_index, end_index) ⇒ Object



757
758
759
# File 'lib/funfx/flex/elements.rb', line 757

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

#selectionObject



727
728
729
# File 'lib/funfx/flex/elements.rb', line 727

def selection
  get_property_value('selection', String)
end

#textObject



699
700
701
# File 'lib/funfx/flex/elements.rb', line 699

def text
  get_property_value('text', String)
end

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



760
761
762
# File 'lib/funfx/flex/elements.rb', line 760

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

#word_wrap?Boolean

Returns:

  • (Boolean)


731
732
733
# File 'lib/funfx/flex/elements.rb', line 731

def word_wrap?
  get_property_value('wordWrap', TrueClass)
end