Class: RPV::Swing::SwingSet::TextField

Inherits:
Object
  • Object
show all
Includes:
DefaultFont
Defined in:
lib/rpv/swing/swingset.rb

Instance Method Summary collapse

Methods included from DefaultFont

included

Constructor Details

#initialize(text = nil) {|_self| ... } ⇒ TextField

Returns a new instance of TextField.

Yields:

  • (_self)

Yield Parameters:



153
154
155
156
157
158
# File 'lib/rpv/swing/swingset.rb', line 153

def initialize(text = nil)
  super
  self.text = text.to_s
  self.font = TextField.default_font
  yield self if block_given?
end