Module: Reactive::WxOutput::Accessors::ControlWithItems
- Includes:
- Enumerable
- Defined in:
- lib/reactive-wx/accessors/control_with_items.rb
Overview
The data is identified by the related item_data (Wx) filled before
Instance Method Summary collapse
Instance Method Details
#get_data ⇒ Object
15 16 17 |
# File 'lib/reactive-wx/accessors/control_with_items.rb', line 15 def get_data get_item_data(get_selection) end |
#set_data(id) ⇒ Object
9 10 11 12 13 |
# File 'lib/reactive-wx/accessors/control_with_items.rb', line 9 def set_data(id) if index = find {|i| get_item_data(i) == id} set_selection(index) end end |