Sha256: 29131a6efc0c98a87d16394e0d78794a151d4925271fd2f59f374cad4e7e1d2c

Contents?: true

Size: 474 Bytes

Versions: 15

Compression:

Stored size: 474 Bytes

Contents

require 'swing/attr_setter'

import javax.swing.JSplitPane

module Swing

  class SplitPane < JSplitPane
    include AttrSetter

    attr_setter :one_touch_expandable, :orientation, :continuous_layout,
                :divider_size, :divider_location, :resize_weight

    def initialize first, second, opts = {}
      set_attributes(opts) { super(JSplitPane::HORIZONTAL_SPLIT, first, second) }

      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/split_pane.rb
swing-0.1.15 lib/swing/old/split_pane.rb
swing-0.1.14 lib/swing/old/split_pane.rb
swing-0.1.12 lib/swing/old/split_pane.rb
swing-0.1.10 lib/swing/old/split_pane.rb
swing-0.1.8 lib/swing/old/split_pane.rb
swing-0.1.7 lib/swing/old/split_pane.rb
swing-0.1.5 lib/swing/old/split_pane.rb
swing-0.1.4 lib/swing/old/split_pane.rb
swing-0.1.3 lib/swing/old/split_pane.rb
swing-0.1.2 lib/swing/old/split_pane.rb
swing-0.1.1 lib/swing/old/split_pane.rb
swing-0.1.0 lib/swing/old/split_pane.rb
swing-0.0.5 lib/swing/split_pane.rb
swing-0.0.3 lib/swing/split_pane.rb