Module: PMScreenModule::ClassMethods
- Defined in:
- lib/project/pro_motion/fragments/pm_screen_module.rb
Instance Attribute Summary collapse
-
#bars_title ⇒ Object
readonly
Returns the value of attribute bars_title.
-
#xml_resource ⇒ Object
readonly
Returns the value of attribute xml_resource.
Instance Method Summary collapse
-
#action_bar(show_action_bar, opts = {}) ⇒ Object
(also: #nav_bar, #uses_action_bar)
Sets up the action bar for this screen.
- #action_bar_options ⇒ Object
- #rmq_style_sheet_class ⇒ Object
- #stylesheet(style_sheet_class) ⇒ Object
- #title(new_title) ⇒ Object
- #xml_layout(xml_resource = nil) ⇒ Object (also: #uses_xml)
Instance Attribute Details
#bars_title ⇒ Object (readonly)
Returns the value of attribute bars_title.
9 10 11 |
# File 'lib/project/pro_motion/fragments/pm_screen_module.rb', line 9 def end |
#xml_resource ⇒ Object (readonly)
Returns the value of attribute xml_resource.
9 10 11 |
# File 'lib/project/pro_motion/fragments/pm_screen_module.rb', line 9 def xml_resource @xml_resource end |
Instance Method Details
#action_bar(show_action_bar, opts = {}) ⇒ Object Also known as: uses_action_bar ,
Sets up the action bar for this screen.
Example:
true, back: true, icon: true,
custom_icon: "resourcename", custom_back: "custombackicon"
30 31 32 |
# File 'lib/project/pro_motion/fragments/pm_screen_module.rb', line 30 def (, opts={}) = ({show:true, back: true, icon: false}).merge(opts).merge({show: }) end |
#action_bar_options ⇒ Object
36 37 38 |
# File 'lib/project/pro_motion/fragments/pm_screen_module.rb', line 36 def ||= (true, {}) end |
#rmq_style_sheet_class ⇒ Object
15 16 17 |
# File 'lib/project/pro_motion/fragments/pm_screen_module.rb', line 15 def rmq_style_sheet_class @rmq_style_sheet_class end |
#stylesheet(style_sheet_class) ⇒ Object
11 12 13 |
# File 'lib/project/pro_motion/fragments/pm_screen_module.rb', line 11 def stylesheet(style_sheet_class) @rmq_style_sheet_class = style_sheet_class end |
#title(new_title) ⇒ Object
40 41 42 43 44 |
# File 'lib/project/pro_motion/fragments/pm_screen_module.rb', line 40 def title(new_title) = new_title #self.activity.title = new_title #getActivity().getActionBar().setTitle("abc") end |
#xml_layout(xml_resource = nil) ⇒ Object Also known as: uses_xml
19 20 21 |
# File 'lib/project/pro_motion/fragments/pm_screen_module.rb', line 19 def xml_layout(xml_resource=nil) @xml_resource = xml_resource ||= deduce_resource_id end |