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