Class: Lebowski::SCUI::Views::DatePickerView

Inherits:
Foundation::Views::View show all
Defined in:
lib/lebowski/scui/views/date_picker.rb

Overview

Represents a proxy to a SCUI date picker view (SCUI.DatePickerView)

Constant Summary

Constants included from Foundation::Mixins::StallSupport

Foundation::Mixins::StallSupport::DEFAULT_KEY_STALLS, Foundation::Mixins::StallSupport::DEFAULT_STALL

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

Foundation::Mixins::WaitActions::DEFAULT_TIMEOUT

Instance Attribute Summary

Attributes inherited from Foundation::ProxyObject

#driver, #name, #parent, #rel_path

Instance Method Summary collapse

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

#get_delegate_property

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

#key_down?, #key_up?

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

#wait_until

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

#date_selected?(date) ⇒ Boolean



18
19
20
# File 'lib/lebowski/scui/views/date_picker.rb', line 18

def date_selected?(date)
  return calendar.date_selected?(date)
end

#display_calendarObject



54
55
56
# File 'lib/lebowski/scui/views/date_picker.rb', line 54

def display_calendar
  click_button if !self['isShowingCalendar']
end

#hide_calendarObject



58
59
60
# File 'lib/lebowski/scui/views/date_picker.rb', line 58

def hide_calendar
  click_button if self['isShowingCalendar']
end

#select_date(date) ⇒ Object



30
31
32
# File 'lib/lebowski/scui/views/date_picker.rb', line 30

def select_date(date)
  calendar.select_date(date)
end

#select_next_monthObject



38
39
40
# File 'lib/lebowski/scui/views/date_picker.rb', line 38

def select_next_month
  calendar.select_next_month
end

#select_noneObject



42
43
44
# File 'lib/lebowski/scui/views/date_picker.rb', line 42

def select_none
  calendar.select_none
end

#select_previous_monthObject



34
35
36
# File 'lib/lebowski/scui/views/date_picker.rb', line 34

def select_previous_month
  calendar.select_previous_month
end

#select_todayObject



46
47
48
# File 'lib/lebowski/scui/views/date_picker.rb', line 46

def select_today
  calendar.select_today
end

#showing_month?(month) ⇒ Boolean



22
23
24
# File 'lib/lebowski/scui/views/date_picker.rb', line 22

def showing_month?(month)
  return calendar.showing_month?(month)
end

#showing_year?(year) ⇒ Boolean



26
27
28
# File 'lib/lebowski/scui/views/date_picker.rb', line 26

def showing_year?(year)
  return calendar.showing_year?(year)
end

#today_selected?Boolean



50
51
52
# File 'lib/lebowski/scui/views/date_picker.rb', line 50

def today_selected?
  return date_selected?(Time.now)
end