Module: PMScreenModule::ClassMethods

Defined in:
lib/project/pro_motion/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/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/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/pm_screen_module.rb', line 9

def xml_resource
  @xml_resource
end

#xml_widget_idsObject (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
  @xml_widget_ids
end

Instance Method Details

#rmq_style_sheet_classObject



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 uses_action_bar(show_action_bar)
  @show_action_bar = 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_widgets(*widget_ids)
  @xml_widget_ids = widget_ids || []
  @xml_widget_ids.each do |id|
    attr_accessor id
  end
end