Module: PMScreenModule::ClassMethods

Defined in:
lib/project/pro_motion/fragments/pm_screen_module.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bars_titleObject (readonly)

Returns the value of attribute bars_title.



9
10
11
# File 'lib/project/pro_motion/fragments/pm_screen_module.rb', line 9

def bars_title
  @bars_title
end

#show_action_barObject (readonly)

Returns the value of attribute show_action_bar.



9
10
11
# File 'lib/project/pro_motion/fragments/pm_screen_module.rb', line 9

def show_action_bar
  @show_action_bar
end

#xml_resourceObject (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) ⇒ Object Also known as: nav_bar, uses_action_bar



26
27
28
# File 'lib/project/pro_motion/fragments/pm_screen_module.rb', line 26

def action_bar(show_action_bar)
  @show_action_bar = show_action_bar
end

#rmq_style_sheet_classObject



17
18
19
# File 'lib/project/pro_motion/fragments/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/fragments/pm_screen_module.rb', line 13

def stylesheet(style_sheet_class)
  @rmq_style_sheet_class = style_sheet_class
end

#title(new_title) ⇒ Object



32
33
34
35
36
# File 'lib/project/pro_motion/fragments/pm_screen_module.rb', line 32

def title(new_title)
  @bars_title = new_title
  #self.activity.title = new_title
  #getActivity().getActionBar().setTitle("abc")
end

#xml_layout(xml_resource = nil) ⇒ Object Also known as: uses_xml



21
22
23
# File 'lib/project/pro_motion/fragments/pm_screen_module.rb', line 21

def xml_layout(xml_resource=nil)
  @xml_resource = xml_resource ||= deduce_resource_id
end