Module: Cheri::JRuby::Explorer::ViewerInterface
- Included in:
- Viewer
- Defined in:
- lib/cheri/jruby/explorer/viewer.rb
Instance Method Summary collapse
- #close_view ⇒ Object
- #icon ⇒ Object
- #icon_tab ⇒ Object
- #icon_tree ⇒ Object
- #initialize(node_type, main, instance, *r) ⇒ Object
- #instance ⇒ Object
- #leaf? ⇒ Boolean
- #main ⇒ Object
- #proxy ⇒ Object
- #refresh ⇒ Object
- #tab(&block) ⇒ Object
- #title ⇒ Object
- #title_tab ⇒ Object
- #title_tree ⇒ Object
- #tooltip ⇒ Object
-
#type ⇒ Object
The node type of this viewer.
- #view(&block) ⇒ Object
Instance Method Details
#close_view ⇒ Object
232 233 234 |
# File 'lib/cheri/jruby/explorer/viewer.rb', line 232 def close_view @main.close_view(self) end |
#icon ⇒ Object
181 182 183 |
# File 'lib/cheri/jruby/explorer/viewer.rb', line 181 def icon @icon end |
#icon_tab ⇒ Object
189 190 191 |
# File 'lib/cheri/jruby/explorer/viewer.rb', line 189 def icon_tab icon end |
#icon_tree ⇒ Object
185 186 187 |
# File 'lib/cheri/jruby/explorer/viewer.rb', line 185 def icon_tree icon end |
#initialize(node_type, main, instance, *r) ⇒ Object
146 147 148 149 150 |
# File 'lib/cheri/jruby/explorer/viewer.rb', line 146 def initialize(node_type,main,instance,*r) @type = node_type @main = main @instance = instance end |
#instance ⇒ Object
161 162 163 |
# File 'lib/cheri/jruby/explorer/viewer.rb', line 161 def instance @instance end |
#leaf? ⇒ Boolean
197 198 199 |
# File 'lib/cheri/jruby/explorer/viewer.rb', line 197 def leaf? false end |
#main ⇒ Object
157 158 159 |
# File 'lib/cheri/jruby/explorer/viewer.rb', line 157 def main @main end |
#proxy ⇒ Object
165 166 167 |
# File 'lib/cheri/jruby/explorer/viewer.rb', line 165 def proxy @instance.proxy end |
#refresh ⇒ Object
209 210 |
# File 'lib/cheri/jruby/explorer/viewer.rb', line 209 def refresh end |
#tab(&block) ⇒ Object
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 |
# File 'lib/cheri/jruby/explorer/viewer.rb', line 212 def tab(&block) @tab ||= x_panel do opaque false label icon_tab x_spacer 2 label title_tab x_spacer 10 CloseTabDimIcon do rollover_icon CloseTabIcon fixed_size 12,12 tool_tip_text 'Close' content_area_filled false border_painted false on_click { close_view } end end cheri_yield @tab, &block if block_given? @tab end |
#title ⇒ Object
169 170 171 |
# File 'lib/cheri/jruby/explorer/viewer.rb', line 169 def title @title end |
#title_tab ⇒ Object
177 178 179 |
# File 'lib/cheri/jruby/explorer/viewer.rb', line 177 def title_tab title end |
#title_tree ⇒ Object
173 174 175 |
# File 'lib/cheri/jruby/explorer/viewer.rb', line 173 def title_tree title end |
#tooltip ⇒ Object
193 194 195 |
# File 'lib/cheri/jruby/explorer/viewer.rb', line 193 def tooltip @tooltip end |
#type ⇒ Object
The node type of this viewer
153 154 155 |
# File 'lib/cheri/jruby/explorer/viewer.rb', line 153 def type @type end |
#view(&block) ⇒ Object
201 202 203 204 205 206 207 |
# File 'lib/cheri/jruby/explorer/viewer.rb', line 201 def view(&block) if @view @view.put_client_property(:viewer,self) cheri_yield(@view,&block) if block @view end end |