Module: PMScreenModule::ClassMethods
- Defined in:
- lib/project/pro_motion/pm_screen_module.rb
Instance Attribute Summary collapse
-
#bars_title ⇒ Object
readonly
Returns the value of attribute bars_title.
-
#show_action_bar ⇒ Object
readonly
Returns the value of attribute show_action_bar.
-
#xml_resource ⇒ Object
readonly
Returns the value of attribute xml_resource.
-
#xml_widget_ids ⇒ Object
readonly
Returns the value of attribute xml_widget_ids.
Instance Method Summary collapse
- #rmq_style_sheet_class ⇒ Object
- #stylesheet(style_sheet_class) ⇒ Object
- #title(new_title) ⇒ Object
- #uses_action_bar(show_action_bar) ⇒ Object
- #uses_xml(xml_resource = nil) ⇒ Object
- #xml_widgets(*widget_ids) ⇒ Object
Instance Attribute Details
#bars_title ⇒ Object (readonly)
Returns the value of attribute bars_title.
9 10 11 |
# File 'lib/project/pro_motion/pm_screen_module.rb', line 9 def @bars_title end |
#show_action_bar ⇒ Object (readonly)
Returns the value of attribute show_action_bar.
9 10 11 |
# File 'lib/project/pro_motion/pm_screen_module.rb', line 9 def @show_action_bar end |
#xml_resource ⇒ Object (readonly)
Returns the value of attribute xml_resource.
9 10 11 |
# File 'lib/project/pro_motion/pm_screen_module.rb', line 9 def xml_resource @xml_resource end |
#xml_widget_ids ⇒ Object (readonly)
Returns the value of attribute xml_widget_ids.
9 10 11 |
# File 'lib/project/pro_motion/pm_screen_module.rb', line 9 def @xml_widget_ids end |
Instance Method Details
#rmq_style_sheet_class ⇒ Object
17 18 19 |
# File 'lib/project/pro_motion/pm_screen_module.rb', line 17 def rmq_style_sheet_class @rmq_style_sheet_class end |
#stylesheet(style_sheet_class) ⇒ Object
13 14 15 |
# File 'lib/project/pro_motion/pm_screen_module.rb', line 13 def stylesheet(style_sheet_class) @rmq_style_sheet_class = style_sheet_class end |
#title(new_title) ⇒ Object
36 37 38 39 40 |
# File 'lib/project/pro_motion/pm_screen_module.rb', line 36 def title(new_title) @bars_title = new_title #self.activity.title = new_title #getActivity().getActionBar().setTitle("abc") end |
#uses_action_bar(show_action_bar) ⇒ Object
32 33 34 |
# File 'lib/project/pro_motion/pm_screen_module.rb', line 32 def () @show_action_bar = end |
#uses_xml(xml_resource = nil) ⇒ Object
21 22 23 |
# File 'lib/project/pro_motion/pm_screen_module.rb', line 21 def uses_xml(xml_resource=nil) @xml_resource = xml_resource ||= deduce_resource_id end |
#xml_widgets(*widget_ids) ⇒ Object
25 26 27 28 29 30 |
# File 'lib/project/pro_motion/pm_screen_module.rb', line 25 def (*) @xml_widget_ids = || [] @xml_widget_ids.each do |id| attr_accessor id end end |