Sha256: d2d0c947005bf7dc52330ab0beef81ff39ec7d2b8c6484963ac44bd147df57d5
Contents?: true
Size: 426 Bytes
Versions: 1
Compression:
Stored size: 426 Bytes
Contents
require 'swing/action_listener' require 'swing/attr_setter' module Clients module Swing class Button < javax.swing.JButton include AttrSetter attr_setter :enabled def initialize text, opts = {}, &block set_attributes(opts) { super(text) } self.addActionListener ActionListener.new &block opts[:parent].add self if opts[:parent] end end # class Button end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
swing-0.0.2 | lib/swing/button.rb |