Class: Lebowski::SCUI::ComboBoxList
- Inherits:
-
Foundation::Views::ListView
- Object
- Foundation::ProxyObject
- Foundation::SCObject
- Foundation::Views::View
- Foundation::Views::CollectionView
- Foundation::Views::ListView
- Lebowski::SCUI::ComboBoxList
- Defined in:
- lib/lebowski/scui/views/combo_box.rb
Constant Summary
Constants included from Foundation
Foundation::SC_BRANCH_CLOSED, Foundation::SC_BRANCH_OPEN, Foundation::SC_BUTTON1_STATUS, Foundation::SC_BUTTON2_STATUS, Foundation::SC_BUTTON3_STATUS, Foundation::SC_LEAF_NODE, Foundation::SC_MIXED_STATE, Foundation::SC_PICKER_FIXED, Foundation::SC_PICKER_MENU, Foundation::SC_PICKER_POINTER, Foundation::SC_T_ARRAY, Foundation::SC_T_BOOL, Foundation::SC_T_CLASS, Foundation::SC_T_ERROR, Foundation::SC_T_FUNCTION, Foundation::SC_T_HASH, Foundation::SC_T_NULL, Foundation::SC_T_NUMBER, Foundation::SC_T_OBJECT, Foundation::SC_T_STRING, Foundation::SC_T_UNDEFINED
Constants included from Foundation::Mixins::StallSupport
Foundation::Mixins::StallSupport::DEFAULT_KEY_STALLS, Foundation::Mixins::StallSupport::DEFAULT_STALL
Constants included from Foundation::Mixins::WaitActions
Foundation::Mixins::WaitActions::DEFAULT_TIMEOUT
Instance Attribute Summary
Attributes inherited from Foundation::ProxyObject
#driver, #name, #parent, #rel_path
Instance Method Summary collapse
- #any?(item) ⇒ Boolean (also: #some?)
- #count?(expected_count, item) ⇒ Boolean
- #none?(item) ⇒ Boolean
- #one?(item) ⇒ Boolean
- #select_item(item) ⇒ Object
Methods inherited from Foundation::Views::ListView
#apply_drag_to_end_of, #apply_drag_to_start_of, #can_drag_to_end_of?, #can_drag_to_start_of?
Methods inherited from Foundation::Views::CollectionView
#allowed_content_deletion?, #allowed_content_editing?, #allowed_content_reordering?, #allowed_deselect_all?, #apply_drag_to_end_of, #apply_drag_to_start_of, #can_drag_to_end_of?, #can_drag_to_start_of?, #content, #item_views
Methods inherited from Foundation::Views::View
#abs_path, #action_locator_args, #action_target, #assigned_layer_id?, #child_views, #core_query, #frame, #height, #layer, #layer_id, #position, #scroll_to_visible, #scrollable_parent_view, #width
Methods included from Foundation::Mixins::DelegateSupport
Methods included from Foundation::Mixins::UserActions
#basic_click, #click, #click_at, #double_click, #drag, #drag_after, #drag_before, #drag_on_to, #drag_to, #drag_to_end_of, #drag_to_start_of, #focus, #key_down, #key_up, #mouse_down, #mouse_down_at, #mouse_move, #mouse_move_at, #mouse_up, #mouse_up_at, #mouse_wheel_delta_x, #mouse_wheel_delta_y, #right_click, #right_click_at, #right_mouse_down, #right_mouse_down_at, #right_mouse_up, #right_mouse_up_at, #type_key
Methods included from Foundation::Mixins::StallSupport
adjust_all_stalls, adjust_default_key_stall, adjust_default_stall, reset, #stall
Methods included from Foundation::Mixins::KeyCheck
Methods included from Foundation::Mixins::PositionedElement
#height, #position, #position_relative_to, #scroll_to_visible, #width
Methods inherited from Foundation::SCObject
#has_represented_sc_class?, #kind_of_represented_sc_class?, represented_sc_class, #represented_sc_class, representing_sc_class
Methods inherited from Foundation::ProxyObject
#==, #[], #abs_path, #abs_path_with, #define, #define_proxy, #init_ext, #initialize, #method_missing, #object?, #proxy, #represent_as, #sc_all_classes, #sc_class, #sc_guid, #sc_kind_of?, #sc_path_defined?, #sc_type_of, #unravel_relative_path
Methods included from Foundation::Mixins::DefinePathsSupport
#define_path, #define_paths_for, #defined_path, #defined_paths, #path_defined?, #root_defined_path_part, #root_defined_path_part=
Methods included from Foundation::Mixins::WaitActions
Constructor Details
This class inherits a constructor from Lebowski::Foundation::ProxyObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Lebowski::Foundation::ProxyObject
Instance Method Details
#any?(item) ⇒ Boolean Also known as: some?
69 70 71 72 |
# File 'lib/lebowski/scui/views/combo_box.rb', line 69 def any?(item) type(item) return item_views.any?({value_key => /#{item}/i}) end |
#count?(expected_count, item) ⇒ Boolean
64 65 66 67 |
# File 'lib/lebowski/scui/views/combo_box.rb', line 64 def count?(expected_count, item) type(item) return (item_views.count == expected_count) end |
#none?(item) ⇒ Boolean
81 82 83 84 |
# File 'lib/lebowski/scui/views/combo_box.rb', line 81 def none?(item) type(item) item_views.none?({value_key => /#{item}/i}) end |
#one?(item) ⇒ Boolean
76 77 78 79 |
# File 'lib/lebowski/scui/views/combo_box.rb', line 76 def one?(item) type(item) return item_views.one?({value_key => /#{item}/i}) end |
#select_item(item) ⇒ Object
86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/lebowski/scui/views/combo_box.rb', line 86 def select_item(item) @parent.display_list if item.kind_of? Integer select_item_by_index(item) elsif item.kind_of? String select_item_by_name(item) else raise ArgumentError.new "The argument must be either an integer or a string." end @parent.hide_list end |