Module: Cheri::JRuby::Explorer::ViewerInterface

Included in:
Viewer
Defined in:
lib/cheri/jruby/explorer/viewer.rb

Instance Method Summary collapse

Instance Method Details

#close_viewObject



232
233
234
# File 'lib/cheri/jruby/explorer/viewer.rb', line 232

def close_view
  @main.close_view(self)
end

#iconObject



181
182
183
# File 'lib/cheri/jruby/explorer/viewer.rb', line 181

def icon
  @icon
end

#icon_tabObject



189
190
191
# File 'lib/cheri/jruby/explorer/viewer.rb', line 189

def icon_tab
  icon  
end

#icon_treeObject



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

#instanceObject



161
162
163
# File 'lib/cheri/jruby/explorer/viewer.rb', line 161

def instance
  @instance  
end

#leaf?Boolean

Returns:

  • (Boolean)


197
198
199
# File 'lib/cheri/jruby/explorer/viewer.rb', line 197

def leaf?
  false  
end

#mainObject



157
158
159
# File 'lib/cheri/jruby/explorer/viewer.rb', line 157

def main
  @main  
end

#proxyObject



165
166
167
# File 'lib/cheri/jruby/explorer/viewer.rb', line 165

def proxy
  @instance.proxy  
end

#refreshObject



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
    button 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

#titleObject



169
170
171
# File 'lib/cheri/jruby/explorer/viewer.rb', line 169

def title
  @title
end

#title_tabObject



177
178
179
# File 'lib/cheri/jruby/explorer/viewer.rb', line 177

def title_tab
  title  
end

#title_treeObject



173
174
175
# File 'lib/cheri/jruby/explorer/viewer.rb', line 173

def title_tree
  title  
end

#tooltipObject



193
194
195
# File 'lib/cheri/jruby/explorer/viewer.rb', line 193

def tooltip
  @tooltip
end

#typeObject

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