Module: Rubeus::Extensions::Javax::Swing::JTabbedPane
- Defined in:
- lib/rubeus/extensions/javax/swing/j_tabbed_pane.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
-
#set_icons(arr) ⇒ Object
set_icon_at utility.
-
#set_image_icon_at(index, image_path) ⇒ Object
alias for set_icon_at set image_path_string instread.
-
#set_tips(arr) ⇒ Object
set_tool_tip_text_at utility.
-
#set_titles(arr) ⇒ Object
set_title_at utility.
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/rubeus/extensions/javax/swing/j_tabbed_pane.rb', line 5 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
#set_icons(arr) ⇒ Object
set_icon_at utility
35 36 37 |
# File 'lib/rubeus/extensions/javax/swing/j_tabbed_pane.rb', line 35 def set_icons(arr) tab_setting(arr, :set_image_icon_at) end |
#set_image_icon_at(index, image_path) ⇒ Object
alias for set_icon_at set image_path_string instread
40 41 42 43 44 45 |
# File 'lib/rubeus/extensions/javax/swing/j_tabbed_pane.rb', line 40 def set_image_icon_at(index, image_path) if image_path && java.io.File.new(image_path).exists image_icon = javax.swing.ImageIcon.new(image_path) set_icon_at(index, image_icon) end end |
#set_tips(arr) ⇒ Object
set_tool_tip_text_at utility
48 49 50 |
# File 'lib/rubeus/extensions/javax/swing/j_tabbed_pane.rb', line 48 def set_tips(arr) tab_setting(arr, :set_tool_tip_text_at) end |
#set_titles(arr) ⇒ Object
set_title_at utility
30 31 32 |
# File 'lib/rubeus/extensions/javax/swing/j_tabbed_pane.rb', line 30 def set_titles(arr) tab_setting(arr, :set_title_at) end |