Class: Swing::ScrollPane

Inherits:
Object
  • Object
show all
Includes:
AttrSetter
Defined in:
lib/swing/old/scroll_pane.rb

Overview

Scroll Pane around given scrollable component

Instance Method Summary collapse

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