class Canis::ItemEvent
an event fired when an item that can be selected is toggled/selected
Attributes
item[R]
item_first[R]
item_last[R]
item_selectable[R]
param_string[R]
Public Class Methods
new(item, item_selectable)
click to toggle source
def initialize item, item_selectable, state, item_first=-1, item_last=-1, paramstring=nil @item, @item_selectable, @state, @item_first, @item_last = item, item_selectable, state, item_first, item_last @param_string = "Item event fired: #{item}, #{state}" end
# i think only one is needed per object, so create once only
# File lib/canis/core/widgets/rwidget.rb, line 3351 def initialize item, item_selectable @item, @item_selectable = item, item_selectable end
Public Instance Methods
set(state, item_first=-1, item_last=-1, param_string=nil)
click to toggle source
# File lib/canis/core/widgets/rwidget.rb, line 3355 def set state, item_first=-1, item_last=-1, param_string=nil @state, @item_first, @item_last, @param_string = state, item_first, item_last, param_string @param_string = "Item event fired: #{item}, #{state}" if param_string.nil? end