Class: WR::Tabctrl::Tab::Controls
- Inherits:
-
Collection
- Object
- Array
- Collection
- WR::Tabctrl::Tab::Controls
- Defined in:
- lib/wrb/components/tabctrl.rb
Instance Method Summary collapse
-
#<<(arg) ⇒ Object
dpp arg.
- #delete(obj) ⇒ Object
- #hide ⇒ Object
-
#initialize(onr) ⇒ Controls
constructor
A new instance of Controls.
-
#show ⇒ Object
; dpp self.
Constructor Details
#initialize(onr) ⇒ Controls
Returns a new instance of Controls.
134 135 136 |
# File 'lib/wrb/components/tabctrl.rb', line 134 def initialize(onr) @owner = onr end |
Instance Method Details
#<<(arg) ⇒ Object
dpp arg
138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/wrb/components/tabctrl.rb', line 138 def <<(arg)# dpp arg @owner.owner << arg unless arg.idcmd @owner._add_accessor(arg, "#{arg.name}".intern) @owner.instance_eval("def _#{arg.name}() #{arg.name}; end") class << arg attr_accessor :owner end arg.owner = self super(arg) self.uniq! arg end |
#delete(obj) ⇒ Object
158 159 160 161 |
# File 'lib/wrb/components/tabctrl.rb', line 158 def delete(obj) obj.show super end |
#hide ⇒ Object
155 156 157 |
# File 'lib/wrb/components/tabctrl.rb', line 155 def hide() self.each{|i| i.hide} end |
#show ⇒ Object
; dpp self
151 152 153 |
# File 'lib/wrb/components/tabctrl.rb', line 151 def show() #; dpp self self.each{|i| i.showna} end |