Class: Shoes::Swt::SelectionListener
- Inherits:
-
Object
- Object
- Shoes::Swt::SelectionListener
- Defined in:
- shoes-swt/lib/shoes/swt/common/selection_listener.rb
Instance Method Summary collapse
-
#initialize(radio, &blk) ⇒ SelectionListener
constructor
A new instance of SelectionListener.
- #widget_selected(event) ⇒ Object
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 (event) @blk.call @radio, event end |