Sha256: cecdfa57280218ef86617a3cc1a63b7464340e24bdaee76f090b1ac4ad6d5c40

Contents?: true

Size: 1.22 KB

Versions: 2

Compression:

Stored size: 1.22 KB

Contents

require 'swing_support/extensions/attributes'
require 'swing_support/extensions/blocks'

class Awt::Component

  include SwingSupport::Extensions::Attributes
  include SwingSupport::Extensions::Blocks

  #    background       Color • •
  #    cursor           Cursor • • Cursor.DEFAULT_CURSOR
  #    enabled          boolean • • true
  #    font             Font • •
  #    foreground       Color • •
  #    layout           LayoutManager • • BorderLayout( )
  #    locale           Locale • •
  #    location         Point • •
  #    name             String • • ""
  #    parent           Container • • null
  #    size             Dimension • •
  #    visible          boolean • • true
  #    ----Getters only - NO Setters!
  #    colorModel       ColorModel •
  #    component        (i) Component •
  #    componentCount   int •
  #    components       Component[] •
  #    insets           Insets • Insets(0,0,0,0)
  #    locationOnScreen Point • •
  #    showing          boolean • true
  #    valid            boolean •

  attr_setter :enabled, :layout,
              :locale, :location, :name, :size, :visible,
              :background => Awt::Color, :foreground => Awt::Color,
              :font => Awt::Font, :cursor => Awt::Cursor
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
swing-0.1.16 lib/awt/component.rb
swing-0.1.15 lib/awt/component.rb