com.x5.template.providers
Class AndroidTemplates

java.lang.Object
  extended by com.x5.template.providers.TemplateProvider
      extended by com.x5.template.providers.AndroidTemplates
All Implemented Interfaces:
ContentSource

public class AndroidTemplates
extends TemplateProvider


Constructor Summary
AndroidTemplates(android.content.Context androidContext)
          Place templates in assets/themes/*.chtml and this template loader will be able to find them.
AndroidTemplates(android.content.Context androidContext, java.lang.String themeFolder)
          Place templates in assets/[themeFolder]/*.chtml and this template loader will be able to find them.
 
Method Summary
 java.lang.String getProtocol()
           
 java.lang.String loadContainerDoc(java.lang.String docName)
           
 
Methods inherited from class com.x5.template.providers.TemplateProvider
clearCache, clearCache, fetch, getSnippet, loadItemDoc, provides, setDefaultExtension
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndroidTemplates

public AndroidTemplates(android.content.Context androidContext)
Place templates in assets/themes/*.chtml and this template loader will be able to find them. Provide a context to the constructor, eg: AndroidTemplates loader = new AndroidTemplates(getBaseContext()); Theme = new Theme(loader);

Parameters:
androidContext -

AndroidTemplates

public AndroidTemplates(android.content.Context androidContext,
                        java.lang.String themeFolder)
Place templates in assets/[themeFolder]/*.chtml and this template loader will be able to find them. Provide a context to the constructor, eg: AndroidTemplates loader = new AndroidTemplates(getBaseContext(),"webview"); Theme = new Theme(loader);

Parameters:
androidContext -
themeFolder -
Method Detail

getProtocol

public java.lang.String getProtocol()
Specified by:
getProtocol in interface ContentSource
Specified by:
getProtocol in class TemplateProvider

loadContainerDoc

public java.lang.String loadContainerDoc(java.lang.String docName)
                                  throws java.io.IOException
Specified by:
loadContainerDoc in class TemplateProvider
Throws:
java.io.IOException


Copyright © 2015. All Rights Reserved.