Class: Shoes::Swt::CheckButton
- Defined in:
- shoes-swt/lib/shoes/swt/check_button.rb
Instance Attribute Summary
Attributes inherited from SwtButton
Instance Method Summary collapse
- #checked=(bool) ⇒ Object
- #checked? ⇒ Boolean
-
#initialize(dsl, app, type) ⇒ CheckButton
constructor
A new instance of CheckButton.
Methods inherited from SwtButton
#click, #enabled, #eval_block, #remove_listeners
Methods included from Common::Visibility
#hidden?, #hidden_from_view?, #hide, #outside_parent_view?, #show, #toggle, #visible?
Methods included from Common::Remove
Methods included from Common::Focus
Constructor Details
#initialize(dsl, app, type) ⇒ CheckButton
Returns a new instance of CheckButton.
6 7 8 |
# File 'shoes-swt/lib/shoes/swt/check_button.rb', line 6 def initialize(dsl, app, type) super(dsl, app, type) end |
Instance Method Details
#checked=(bool) ⇒ Object
14 15 16 |
# File 'shoes-swt/lib/shoes/swt/check_button.rb', line 14 def checked=(bool) @real.set_selection bool end |
#checked? ⇒ Boolean
10 11 12 |
# File 'shoes-swt/lib/shoes/swt/check_button.rb', line 10 def checked? @real.get_selection end |