Class: Lebowski::Foundation::Views::Support::SegmentItemArray
Constant Summary
SC_BRANCH_CLOSED, SC_BRANCH_OPEN, SC_BUTTON1_STATUS, SC_BUTTON2_STATUS, SC_BUTTON3_STATUS, SC_LEAF_NODE, SC_MIXED_STATE, SC_PICKER_FIXED, SC_PICKER_MENU, SC_PICKER_POINTER, SC_T_ARRAY, SC_T_BOOL, SC_T_CLASS, SC_T_ERROR, SC_T_FUNCTION, SC_T_HASH, SC_T_NULL, SC_T_NUMBER, SC_T_OBJECT, SC_T_STRING, SC_T_UNDEFINED
Instance Method Summary
collapse
#[], #all?, #all_selected?, #any?, #any_selected?, #click, #click_with_index, #click_with_title, #count, #each, #find_index_with_title, #initialize, #none?, #none_selected?, #one?, #one_selected?, #select, #select_with_index, #select_with_title, #selected?, #selected_count, #selected_with_index?, #selected_with_title?
Instance Method Details
#deselect(value) ⇒ Object
63
64
65
66
67
68
69
70
71
|
# 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) ⇒ Object
73
74
75
76
|
# File 'lib/lebowski/foundation/views/segmented.rb', line 73
def deselect_with_index(index)
item = self[index]
item.deselect
end
|
#deselect_with_title(value) ⇒ Object
78
79
80
81
82
83
|
# 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 ⇒ Object
59
60
61
|
# File 'lib/lebowski/foundation/views/segmented.rb', line 59
def segmented_view()
return @parent
end
|