Sha256: 083eb7e2f74663eab853e59f251129bc00865b5fabd918c9f2fb9b14bb2cb4a8

Contents?: true

Size: 242 Bytes

Versions: 15

Compression:

Stored size: 242 Bytes

Contents

require 'swing/attr_setter'

module Swing

  class Menu < javax.swing.JMenu
    include AttrSetter

    def initialize text, opts = {}
      set_attributes(opts) { super text }
      opts[:parent].add self if opts[:parent]
    end
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

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