Class: RPV::Swing::SwingSet::Panel
- Inherits:
-
Object
- Object
- RPV::Swing::SwingSet::Panel
- Defined in:
- lib/rpv/swing/swingset.rb
Instance Method Summary collapse
-
#initialize(*args) {|_self| ... } ⇒ Panel
constructor
A new instance of Panel.
- #preferred_dimensions(width, height) ⇒ Object
Constructor Details
#initialize(*args) {|_self| ... } ⇒ Panel
Returns a new instance of Panel.
226 227 228 229 |
# File 'lib/rpv/swing/swingset.rb', line 226 def initialize(*args) super(*args) yield self if block_given? end |
Instance Method Details
#preferred_dimensions(width, height) ⇒ Object
231 232 233 |
# File 'lib/rpv/swing/swingset.rb', line 231 def preferred_dimensions(width, height) self.preferred_size = Dimension[width, height] end |