Sha256: bb5eff5b6d78f15047e8c94e42b38897f19e544fc4bdcf980118e1c2920ee7a7

Contents?: true

Size: 324 Bytes

Versions: 1

Compression:

Stored size: 324 Bytes

Contents

require 'swing/attr_setter'

module Clients

  # Swing-based GUI controls
  module Swing

    class List < javax.swing.JList
      include AttrSetter

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

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

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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