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
25
26
27
|
# File 'lib/droiuby/wrappers/view_group_wrapper.rb', line 25
def <<(markup_or_view)
append(markup_or_view)
end
|
#append(markup_or_view) ⇒ Object
#child(index) ⇒ Object
48
49
50
|
# File 'lib/droiuby/wrappers/view_group_wrapper.rb', line 48
def child(index)
@view.getChildAt(index)
end
|
41
42
43
44
45
46
|
# File 'lib/droiuby/wrappers/view_group_wrapper.rb', line 41
def children
wrapped_views = (0...self.count).collect { |i|
wrap_native_view(self.child(i))
}
ViewArray.new(wrapped_views)
end
|
37
38
39
|
# File 'lib/droiuby/wrappers/view_group_wrapper.rb', line 37
def count
@view.getChildCount
end
|
52
53
54
55
56
|
# File 'lib/droiuby/wrappers/view_group_wrapper.rb', line 52
def form_fields
fields = {}
collect_fields(self, fields)
fields
end
|
TODO: support reverse markup generation
10
11
12
|
# File 'lib/droiuby/wrappers/view_group_wrapper.rb', line 10
def inner
puts "TODO"
end
|
#to_front!(child = nil) ⇒ Object
29
30
31
32
33
34
35
|
# File 'lib/droiuby/wrappers/view_group_wrapper.rb', line 29
def to_front!(child = nil)
if child.nil?
super
else
@view.bringChildToFront(self.to_native(child))
end
end
|