Class: Rho::NativeView

Inherits:
Object show all
Defined in:
lib/framework/rho/rhonativeviewmanager.rb

Instance Method Summary collapse

Constructor Details

#initialize(typename, tab_index, id) ⇒ NativeView

Returns a new instance of NativeView.



33
34
35
36
37
38
# File 'lib/framework/rho/rhonativeviewmanager.rb', line 33

def initialize( typename, tab_index, id )
   puts 'Ruby NativeView.initialize()'
   @nv_typename = typename
   @tab_index = tab_index
   @nv_id = id
end

Instance Method Details

#destroyObject

destroy this native view



59
60
61
# File 'lib/framework/rho/rhonativeviewmanager.rb', line 59

def destroy
   RhodesNativeViewManager.destroy_native_view(@nv_id)		
end

#get_tabindexObject

return tab index where this native view was opened



46
47
48
# File 'lib/framework/rho/rhonativeviewmanager.rb', line 46

def get_tabindex
    return @tab_index
end

#get_viewtypeObject

return string with view_type of this native view



41
42
43
# File 'lib/framework/rho/rhonativeviewmanager.rb', line 41

def get_viewtype
    return @nv_typename
end

execute navigate() function in NativeView native object linked to this object message - string



52
53
54
55
# File 'lib/framework/rho/rhonativeviewmanager.rb', line 52

def navigate(message)
    puts 'NativeView.navigate('+message+')'
    RhodesNativeViewManager.navigate_native_view(@nv_id, message)	
end