Class: Rho::NativeView
- Defined in:
- lib/framework/rho/rhonativeviewmanager.rb
Instance Method Summary collapse
-
#destroy ⇒ Object
destroy this native view.
-
#get_tabindex ⇒ Object
return tab index where this native view was opened.
-
#get_viewtype ⇒ Object
return string with view_type of this native view.
-
#initialize(typename, tab_index, id) ⇒ NativeView
constructor
A new instance of NativeView.
-
#navigate(message) ⇒ Object
execute navigate() function in NativeView native object linked to this object message - string.
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
#destroy ⇒ Object
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_tabindex ⇒ Object
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_viewtype ⇒ Object
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 |
#navigate(message) ⇒ Object
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() puts 'NativeView.navigate('++')' RhodesNativeViewManager.navigate_native_view(@nv_id, ) end |