Class: ViewGroupWrapper
Instance Method Summary
collapse
Methods inherited from ViewWrapper
#animate, #background=, #background_color=, #blink, #builder, #click, #data, #enabled=, #enabled?, #find, #gone=, #gone?, #height=, #hidden?, #hide!, #initialize, #invalidate, #native, #p_tree, #parent, #show!, #tag, #to_native, #visible=, #visible?, #width=
#on
included
included
Constructor Details
This class inherits a constructor from ViewWrapper
Instance Method Details
#<<(markup_or_view) ⇒ Object
23
24
25
|
# File 'lib/droiuby/wrappers/view_group_wrapper.rb', line 23
def <<(markup_or_view)
append(markup_or_view)
end
|
#append(markup_or_view) ⇒ Object
#child(index) ⇒ Object
50
51
52
|
# File 'lib/droiuby/wrappers/view_group_wrapper.rb', line 50
def child(index)
@view.getChildAt(index)
end
|
43
44
45
46
47
48
|
# File 'lib/droiuby/wrappers/view_group_wrapper.rb', line 43
def children
wrapped_views = (0...self.count).collect { |i|
wrap_native_view(self.child(i))
}
ViewArray.new(wrapped_views)
end
|
35
36
37
|
# File 'lib/droiuby/wrappers/view_group_wrapper.rb', line 35
def count
@view.getChildCount
end
|
54
55
56
57
58
|
# File 'lib/droiuby/wrappers/view_group_wrapper.rb', line 54
def form_fields
fields = {}
collect_fields(self, fields)
fields
end
|
TODO: support reverse markup generation
8
9
10
|
# File 'lib/droiuby/wrappers/view_group_wrapper.rb', line 8
def inner
puts "TODO"
end
|
#remove_all_views ⇒ Object
39
40
41
|
# File 'lib/droiuby/wrappers/view_group_wrapper.rb', line 39
def remove_all_views
@view.removeAllViews
end
|
#to_front!(child = nil) ⇒ Object
27
28
29
30
31
32
33
|
# File 'lib/droiuby/wrappers/view_group_wrapper.rb', line 27
def to_front!(child = nil)
if child.nil?
super
else
@view.bringChildToFront(self.to_native(child))
end
end
|