Class: FunFX::Flex::Elements::FlexDisplayObject

Inherits:
FunFX::Flex::Element show all
Defined in:
lib/funfx/flex/elements.rb

Direct Known Subclasses

FlexListLabel, FlexObject

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

#alphaObject



27
28
29
# File 'lib/funfx/flex/elements.rb', line 27

def alpha
  get_property_value('alpha', Integer)
end

#click(key_modifier = ["0"]) ⇒ Object



53
54
55
# File 'lib/funfx/flex/elements.rb', line 53

def click(key_modifier=["0"])
  fire_event('Click', key_modifier)
end

#heightObject



31
32
33
# File 'lib/funfx/flex/elements.rb', line 31

def height
  get_property_value('height', Integer)
end

#mouse_enabled?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/funfx/flex/elements.rb', line 23

def mouse_enabled?
  get_property_value('mouseEnabled', TrueClass)
end

#mouse_move(local_x = 0, local_y = 0, key_modifier = ["0"]) ⇒ Object



50
51
52
# File 'lib/funfx/flex/elements.rb', line 50

def mouse_move(local_x=0, local_y=0, key_modifier=["0"])
  fire_event('MouseMove', local_x, local_y, key_modifier)
end

#tab_children?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/funfx/flex/elements.rb', line 11

def tab_children?
  get_property_value('tabChildren', TrueClass)
end

#tab_enabled?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/funfx/flex/elements.rb', line 15

def tab_enabled?
  get_property_value('tabEnabled', TrueClass)
end

#tab_indexObject



19
20
21
# File 'lib/funfx/flex/elements.rb', line 19

def tab_index
  get_property_value('tabIndex', Integer)
end

#visible?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/funfx/flex/elements.rb', line 35

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

#widthObject



39
40
41
# File 'lib/funfx/flex/elements.rb', line 39

def width
  get_property_value('width', Integer)
end

#xObject



43
44
45
# File 'lib/funfx/flex/elements.rb', line 43

def x
  get_property_value('x', Integer)
end

#yObject



47
48
49
# File 'lib/funfx/flex/elements.rb', line 47

def y
  get_property_value('y', Integer)
end