Class: Shoes::Swt::CheckButton

Inherits:
SwtButton show all
Defined in:
shoes-swt/lib/shoes/swt/check_button.rb

Instance Attribute Summary

Attributes inherited from SwtButton

#app, #dsl, #real

Instance Method Summary collapse

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

#remove

Methods included from Common::Focus

#focus, #focused?

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

Returns:

  • (Boolean)


10
11
12
# File 'shoes-swt/lib/shoes/swt/check_button.rb', line 10

def checked?
  @real.get_selection
end