Sha256: bb9e51c634e0a3544b67e74d7b9be86caaf4e25dfe5e7bc7a3d19a20cc4c627e

Contents?: true

Size: 544 Bytes

Versions: 1

Compression:

Stored size: 544 Bytes

Contents

require 'swing/attr_setter'
import javax.swing.JSplitPane

module Clients

  # Swing-based GUI controls
  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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
swing-0.0.2 lib/swing/split_pane.rb