Class: RTabItemComposite
- Defined in:
- lib/command_handlers/models/r_tab_item_composite.rb
Instance Attribute Summary collapse
-
#tab_item ⇒ Object
readonly
Returns the value of attribute tab_item.
Attributes inherited from RWidget
Instance Method Summary collapse
- #has_attribute?(attribute_name, *args) ⇒ Boolean
-
#initialize(tab_item, parent, style, &contents) ⇒ RTabItemComposite
constructor
A new instance of RTabItemComposite.
- #set_attribute(attribute_name, *args) ⇒ Object
Methods inherited from RWidget
#add_listener, #async_exec, #can_add_listener?, #has_style?, #process_block, #sync_exec, widget_exists?, #widget_listener_exists?
Methods included from Parent
Constructor Details
#initialize(tab_item, parent, style, &contents) ⇒ RTabItemComposite
Returns a new instance of RTabItemComposite.
8 9 10 11 12 |
# File 'lib/command_handlers/models/r_tab_item_composite.rb', line 8 def initialize(tab_item, parent, style, &contents) super("composite", parent, style, &contents) @tab_item = tab_item @tab_item..control = self. end |
Instance Attribute Details
#tab_item ⇒ Object (readonly)
Returns the value of attribute tab_item.
7 8 9 |
# File 'lib/command_handlers/models/r_tab_item_composite.rb', line 7 def tab_item @tab_item end |
Instance Method Details
#has_attribute?(attribute_name, *args) ⇒ Boolean
14 15 16 17 18 19 20 |
# File 'lib/command_handlers/models/r_tab_item_composite.rb', line 14 def has_attribute?(attribute_name, *args) if attribute_name.to_s == "text" true else super(attribute_name, *args) end end |
#set_attribute(attribute_name, *args) ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/command_handlers/models/r_tab_item_composite.rb', line 22 def set_attribute(attribute_name, *args) if attribute_name.to_s == "text" text_value = args[0] @tab_item..text = text_value else super(attribute_name, *args) end end |