class Lebowski::Foundation::Views::Support::SegmentItemArray

Public Instance Methods

click_with_index(value) click to toggle source
# File lib/lebowski/foundation/views/segmented.rb, line 85
def click_with_index(value)
  segment = @parent["childViews.#{value}", View]
  segment.click if (not segment.nil?)
end
deselect(value) click to toggle source
# File lib/lebowski/foundation/views/segmented.rb, line 63
def deselect(value)
  if value.kind_of? Integer
    deselect_with_index(value) 
  elsif value.kind_of? String
    deselect_with_title(value)
  else
    raise ArgumentInvalidTypeError.new "value", value, Integer, String
  end
end
deselect_with_index(index) click to toggle source
# File lib/lebowski/foundation/views/segmented.rb, line 73
def deselect_with_index(index)
  item = self[index]
  item.deselect
end
deselect_with_title(value) click to toggle source
# File lib/lebowski/foundation/views/segmented.rb, line 78
def deselect_with_title(value)
  index = find_index_with_title(value)
  return if (index == :no_index)
  item = self[index]
  item.deselect
end
segmented_view() click to toggle source
# File lib/lebowski/foundation/views/segmented.rb, line 59
def segmented_view()
  return @parent
end

Protected Instance Methods

create_simple_item(title, value) click to toggle source
# File lib/lebowski/foundation/views/segmented.rb, line 92
def create_simple_item(title, value)
  return SegmentItem.new self, title, value
end