Class: Swing::Panel
- Inherits:
-
Object
- Object
- Swing::Panel
- Includes:
- AttrSetter
- Defined in:
- lib/swing/old/panel.rb
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Panel
constructor
A new instance of Panel.
Methods included from AttrSetter
dim_proc, included, #set_attributes
Constructor Details
#initialize(opts = {}) ⇒ Panel
Returns a new instance of Panel.
10 11 12 13 14 |
# File 'lib/swing/old/panel.rb', line 10 def initialize opts = {} set_attributes(opts) { super() } opts[:parent].add self if opts[:parent] end |