class Lebowski::SCUI::Views::ComboBoxView
Represents a proxy to a SCUI
combo box view (SCUI
.ComboBoxView)
Public Instance Methods
display_list()
click to toggle source
# File lib/lebowski/scui/views/combo_box.rb, line 22 def display_list click_button if !list_displayed? end
empty?()
click to toggle source
# File lib/lebowski/scui/views/combo_box.rb, line 17 def empty? val = self['value'] return (val.nil? or val.empty?) end
hide_list()
click to toggle source
# File lib/lebowski/scui/views/combo_box.rb, line 26 def hide_list click_button if list_displayed? end
list()
click to toggle source
# File lib/lebowski/scui/views/combo_box.rb, line 38 def list if @list.nil? if sc_path_defined?('_listPane.contentView.listView.contentView') @list = ComboBoxList.new(self, '_listPane.contentView.listView.contentView', @driver) else @list = ComboBoxList.new(self, '_listPane.contentView.contentView', @driver) end end return @list end
list_displayed?()
click to toggle source
# File lib/lebowski/scui/views/combo_box.rb, line 30 def list_displayed? return list_pane.isPaneAttached end
select_item(item)
click to toggle source
# File lib/lebowski/scui/views/combo_box.rb, line 34 def select_item(item) list.select_item(item) end
Private Instance Methods
list_pane()
click to toggle source
# File lib/lebowski/scui/views/combo_box.rb, line 50 def list_pane @list_pane = self['_listPane'] if @list_pane.nil? return @list_pane end