Sha256: c67210c20f961bc8c219b96a2b3bdf9ac392560a5a319b03cab4f1bab486757f

Contents?: true

Size: 406 Bytes

Versions: 15

Compression:

Stored size: 406 Bytes

Contents

require 'swing/attr_setter'

module Swing

  # Scroll Pane around given scrollable component
  class ScrollPane < javax.swing.JScrollPane
    include AttrSetter

    attr_setter :horizontal_scroll_bar_policy, :vertical_scroll_bar_policy

    def initialize component, opts = {}
      set_attributes(opts) { super(component) }

      opts[:parent].add self if opts[:parent]
    end
  end # class Panel

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
swing-0.1.16 lib/swing/old/scroll_pane.rb
swing-0.1.15 lib/swing/old/scroll_pane.rb
swing-0.1.14 lib/swing/old/scroll_pane.rb
swing-0.1.12 lib/swing/old/scroll_pane.rb
swing-0.1.10 lib/swing/old/scroll_pane.rb
swing-0.1.8 lib/swing/old/scroll_pane.rb
swing-0.1.7 lib/swing/old/scroll_pane.rb
swing-0.1.5 lib/swing/old/scroll_pane.rb
swing-0.1.4 lib/swing/old/scroll_pane.rb
swing-0.1.3 lib/swing/old/scroll_pane.rb
swing-0.1.2 lib/swing/old/scroll_pane.rb
swing-0.1.1 lib/swing/old/scroll_pane.rb
swing-0.1.0 lib/swing/old/scroll_pane.rb
swing-0.0.5 lib/swing/scroll_pane.rb
swing-0.0.3 lib/swing/scroll_pane.rb