41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# File 'lib/canis/core/include/listselectionmodel.rb', line 41
def self.extended(obj)
extend Forwardable
dsl_accessor :selection_mode
dsl_property :selected_color, :selected_bgcolor, :selected_attr
dsl_accessor :selected_indices
dsl_accessor :list_selection_model
def_delegators :@list_selection_model, :is_row_selected?, :toggle_row_selection, :select, :unselect, :is_selection_empty?, :clear_selection, :selected_rows, :select_all, :selected_values, :selected_value
obj.instance_exec {
@selected_indices = []
@selection_mode = :multiple }
end
|