Class: Swing::CheckBox
- Inherits:
-
Object
- Object
- Swing::CheckBox
- Defined in:
- lib/swing/old/check_box.rb
Instance Method Summary collapse
-
#initialize(text, opts = {}, &block) ⇒ CheckBox
constructor
A new instance of CheckBox.
Constructor Details
#initialize(text, opts = {}, &block) ⇒ CheckBox
9 10 11 12 13 14 15 16 |
# File 'lib/swing/old/check_box.rb', line 9 def initialize text, opts = {}, &block set_attributes(opts) { super(text) } # TODO: Probably need to implement ItemListener as well? self.addActionListener ActionListener.new &block opts[:parent].add self if opts[:parent] end |