com.github.jobs.templates
Class TemplatesHelper

java.lang.Object
  extended by com.github.jobs.templates.TemplatesHelper

public class TemplatesHelper
extends Object

Version:
1.0
Author:
cristian

Constructor Summary
TemplatesHelper()
           
 
Method Summary
static int getAddServiceButtonLabel(int id)
          This is used to set a hint to the edit text when configuring a service via ServiceChooserDialog
static String getContent(android.content.Context context, TemplateService templateService)
          Returns content for a template service
static int getHint(int id)
          This is used to set a hint to the edit text when configuring a service via ServiceChooserDialog
static int getServiceDrawable(int id)
           
static List<Service> getServices(android.content.Context context)
          Creates and returns a list of available services
static TemplateService getTemplateFromResult(int serviceId, android.content.Intent result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplatesHelper

public TemplatesHelper()
Method Detail

getServices

public static List<Service> getServices(android.content.Context context)
Creates and returns a list of available services

Parameters:
context - used to get string resources
Returns:
a list of available services

getServiceDrawable

public static int getServiceDrawable(int id)
Parameters:
id - service id
Returns:
the service drawable resource

getHint

public static int getHint(int id)
This is used to set a hint to the edit text when configuring a service via ServiceChooserDialog

Parameters:
id - service id
Returns:
the service hint string resource

getAddServiceButtonLabel

public static int getAddServiceButtonLabel(int id)
This is used to set a hint to the edit text when configuring a service via ServiceChooserDialog

Parameters:
id - service id
Returns:
the service hint string resource

getContent

public static String getContent(android.content.Context context,
                                TemplateService templateService)
Returns content for a template service

Parameters:
context - used to create the content strings
templateService - service to generate the content from
Returns:
a string result with the service content

getTemplateFromResult

public static TemplateService getTemplateFromResult(int serviceId,
                                                    android.content.Intent result)


Copyright © 2012-2013. All Rights Reserved.