Module: Rubeus::Extensions::Javax::Swing::JSplitPane
- Defined in:
- lib/rubeus/extensions/javax/swing/j_split_pane.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/rubeus/extensions/javax/swing/j_split_pane.rb', line 3 def self.included(base) base.perform_as_container base.extend(ClassMethods) base.instance_eval do alias :new_without_rubeus :new alias :new :new_with_rubeus end end |
Instance Method Details
#append_component(component) ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/rubeus/extensions/javax/swing/j_split_pane.rb', line 25 def append_component(component) append_method = (self.orientation == javax.swing.JSplitPane::VERTICAL_SPLIT) ? (top_component ? :set_bottom_component : :set_top_component) : (left_component ? :set_right_component : :set_left_component) send(append_method, component) end |