Class: ListViewWrapper

Inherits:
ViewGroupWrapper show all
Defined in:
lib/droiuby/wrappers/list_view.rb

Instance Method Summary collapse

Methods inherited from ViewGroupWrapper

#<<, #append, #child, #children, #count, #form_fields, #inner, #inner=, #to_front!

Methods inherited from ViewWrapper

#animate, #background=, #background_color=, #blink, #builder, #click, #data, #enabled=, #enabled?, #find, #gone=, #gone?, #height=, #hidden?, #hide!, #invalidate, #native, #p_tree, #parent, #show!, #tag, #to_front!, #to_native, #visible=, #visible?, #width=

Methods included from Droiuby::Wrappers::Listeners

#on

Methods included from Droiuby::ViewHelper

included

Methods included from JavaMethodHelper

included

Constructor Details

#initialize(native = nil) ⇒ ListViewWrapper

Returns a new instance of ListViewWrapper.



3
4
5
# File 'lib/droiuby/wrappers/list_view.rb', line 3

def initialize(native = nil)
  @native = native
end

Instance Method Details

#set_adapter(adapter) ⇒ Object



7
8
9
# File 'lib/droiuby/wrappers/list_view.rb', line 7

def set_adapter(adapter)
  @native.setAdapter(adapter.native)
end