BuildmLearn-Toolkit-Android  2.0.0
The Android version of the BuildmLearn Toolkit. BuildmLearn Toolkit is an easy-to-use program that helps the users make mobile apps without any knowledge of application development.
Public Member Functions | List of all members
org.buildmlearn.toolkit.model.TemplateInterface Interface Reference

Interface containing methods for a implementing a template. More...

Inheritance diagram for org.buildmlearn.toolkit.model.TemplateInterface:
Inheritance graph
[legend]
Collaboration diagram for org.buildmlearn.toolkit.model.TemplateInterface:
Collaboration graph
[legend]

Public Member Functions

BaseAdapter newTemplateEditorAdapter (Context context)
 Called from Template Editor when template editor is started for creating a new template project. More...
 
BaseAdapter newMetaEditorAdapter (Context context)
 Called from Template Editor when template editor is started for creating a new meta details of template project. More...
 
BaseAdapter currentTemplateEditorAdapter ()
 This function is used to get the adapter (containing template data) for a existing/current template project. More...
 
BaseAdapter currentMetaEditorAdapter ()
 This function is used to get the meta adapter (containing template meta details) for a existing/current template project. More...
 
BaseAdapter loadProjectMetaEditor (Context context, Document doc)
 
BaseAdapter loadProjectTemplateEditor (Context context, ArrayList< Element > data)
 
void setTemplateId (int templateId)
 Set templateId,that can be used to get Info about current template from enum Template. More...
 
String getTitle ()
 Used to get the title of the templaye. Mainly used to update ActionBar in Template Editor. More...
 
void addItem (Activity activity)
 Add an item to template data. More...
 
void addMetaData (Activity activity)
 Add MetaData to template data. More...
 
void editItem (Activity activity, int position)
 Called to edit an item in the template data. More...
 
void deleteItem (Activity activity, int position)
 Remove an item form template data list. More...
 
ArrayList< Element > getItems (Document doc)
 
android.support.v4.app.Fragment getSimulatorFragment (String filePathWithName)
 Returns a fragment required for the Simulator Activity. More...
 
String getAssetsFileName (Context context)
 Name of the xml file congaing template data in the assets folders in the build apk. More...
 
String getAssetsFilePath ()
 Folder path in which the apk is stored in the build APK. More...
 
String getApkFilePath ()
 
void onActivityResult (Context context, int requestCode, int resultCode, Intent intent)
 Called whenever onActivityResult is called in Template Editor. Can be used to perform action related to intent and callbacks. More...
 

Detailed Description

Interface containing methods for a implementing a template.

Each template must implement this interface. For using the template, a new enum in Template Enum is required.

Created by abhishek on 27/5/15.

Member Function Documentation

void org.buildmlearn.toolkit.model.TemplateInterface.addItem ( Activity  activity)

Add an item to template data.

Parameters
activityCurrent Activity
void org.buildmlearn.toolkit.model.TemplateInterface.addMetaData ( Activity  activity)
BaseAdapter org.buildmlearn.toolkit.model.TemplateInterface.currentMetaEditorAdapter ( )
BaseAdapter org.buildmlearn.toolkit.model.TemplateInterface.currentTemplateEditorAdapter ( )
void org.buildmlearn.toolkit.model.TemplateInterface.deleteItem ( Activity  activity,
int  position 
)
void org.buildmlearn.toolkit.model.TemplateInterface.editItem ( Activity  activity,
int  position 
)

Called to edit an item in the template data.

Parameters
activityCurrent activity
positionPosition of the item in the template data list
String org.buildmlearn.toolkit.model.TemplateInterface.getApkFilePath ( )
String org.buildmlearn.toolkit.model.TemplateInterface.getAssetsFileName ( Context  context)
String org.buildmlearn.toolkit.model.TemplateInterface.getAssetsFilePath ( )
ArrayList<Element> org.buildmlearn.toolkit.model.TemplateInterface.getItems ( Document  doc)
android.support.v4.app.Fragment org.buildmlearn.toolkit.model.TemplateInterface.getSimulatorFragment ( String  filePathWithName)

Returns a fragment required for the Simulator Activity.

Parameters
filePathWithNamePath of the generated .buildmlearn file
Returns
Returns a fragment required for the Simulator Activity. **Dev Note: File Path should be used to populate data from actual .buildmlearn file in the Simulator.

Implemented in org.buildmlearn.toolkit.templates.ComprehensionTemplate, org.buildmlearn.toolkit.templates.VideoCollectionTemplate, org.buildmlearn.toolkit.templates.MatchTemplate, org.buildmlearn.toolkit.templates.QuizTemplate, org.buildmlearn.toolkit.templates.FlashTemplate, org.buildmlearn.toolkit.templates.DictationTemplate, org.buildmlearn.toolkit.templates.InfoTemplate, and org.buildmlearn.toolkit.templates.LearnSpellingTemplate.

String org.buildmlearn.toolkit.model.TemplateInterface.getTitle ( )
BaseAdapter org.buildmlearn.toolkit.model.TemplateInterface.loadProjectMetaEditor ( Context  context,
Document  doc 
)
BaseAdapter org.buildmlearn.toolkit.model.TemplateInterface.loadProjectTemplateEditor ( Context  context,
ArrayList< Element >  data 
)
BaseAdapter org.buildmlearn.toolkit.model.TemplateInterface.newMetaEditorAdapter ( Context  context)
BaseAdapter org.buildmlearn.toolkit.model.TemplateInterface.newTemplateEditorAdapter ( Context  context)
void org.buildmlearn.toolkit.model.TemplateInterface.onActivityResult ( Context  context,
int  requestCode,
int  resultCode,
Intent  intent 
)
void org.buildmlearn.toolkit.model.TemplateInterface.setTemplateId ( int  templateId)

The documentation for this interface was generated from the following file: