Class: Shoes::Swt::SelectionListener

Inherits:
Object
  • Object
show all
Defined in:
shoes-swt/lib/shoes/swt/common/selection_listener.rb

Instance Method Summary collapse

Constructor Details

#initialize(radio, &blk) ⇒ SelectionListener

Returns a new instance of SelectionListener.



6
7
8
9
# File 'shoes-swt/lib/shoes/swt/common/selection_listener.rb', line 6

def initialize(radio, &blk)
  @radio = radio
  @blk = blk
end

Instance Method Details

#widget_selected(event) ⇒ Object



11
12
13
# File 'shoes-swt/lib/shoes/swt/common/selection_listener.rb', line 11

def widget_selected(event)
  @blk.call @radio, event
end