Sha256: ab008abb503e1ed78134b76c4d2e7e856bf8e897874350696b907e46d49c3983

Contents?: true

Size: 614 Bytes

Versions: 1

Compression:

Stored size: 614 Bytes

Contents

Rubeus::Awt.depend_on("Dimension")

module Rubeus::Awt
  module Setters
    
    def self.included(base)
      base.module_eval do
        alias_method :set_preferred_size, :set_preferred_size_rubeus
        alias_method :preferred_size=, :set_preferred_size_rubeus
        alias_method :set_size, :set_size_rubeus
        alias_method :size=, :set_size_rubeus
      end
    end

    def set_size_rubeus(*args)
      java_send :setSize, [Dimension], Dimension.create(*args)
    end

    def set_preferred_size_rubeus(*args)
      java_send :setPreferredSize, [Dimension], Dimension.create(*args)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubeus-0.0.8-java lib/rubeus/awt/setters.rb