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.
|
Comprehension template code implementing methods of TemplateInterface. More...
Public Member Functions | |
ComprehensionTemplate () | |
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 | loadProjectTemplateEditor (Context context, ArrayList< Element > data) |
BaseAdapter | loadProjectMetaEditor (Context context, Document doc) |
String | getTitle () |
Used to get the title of the templaye. Mainly used to update ActionBar in Template Editor. More... | |
void | addItem (final Activity activity) |
void | addMetaData (final Activity activity) |
void | editItem (final Activity activity, final int position) |
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... | |
void | setTemplateId (int templateId) |
Set templateId,that can be used to get Info about current template from enum Template. 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... | |
Public Member Functions inherited from org.buildmlearn.toolkit.model.TemplateInterface | |
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... | |
Private Member Functions | |
void | checkButton (ArrayList< RadioButton > buttons, ArrayList< EditText > options, int id, Context context) |
int | getCheckedAnswer (ArrayList< RadioButton > buttons) |
void | setEmptyView (Activity activity) |
Toggles the visibility of empty text if Array has zero elements. More... | |
String | readFile (File file) |
Static Private Member Functions | |
static boolean | validated (Context context, EditText title, EditText passage, EditText timer) |
Private Attributes | |
final ArrayList< ComprehensionMetaModel > | metaData |
transient ComprehensionAdapter | adapter |
transient ComprehensionMetaAdapter | metaAdapter |
ArrayList< ComprehensionModel > | comprehensionData |
int | templateId |
Comprehension template code implementing methods of TemplateInterface.
Created by Anupam (opticod) on 26/5/16.
org.buildmlearn.toolkit.templates.ComprehensionTemplate.ComprehensionTemplate | ( | ) |
void org.buildmlearn.toolkit.templates.ComprehensionTemplate.addItem | ( | final Activity | activity | ) |
void org.buildmlearn.toolkit.templates.ComprehensionTemplate.addMetaData | ( | final Activity | activity | ) |
|
private |
BaseAdapter org.buildmlearn.toolkit.templates.ComprehensionTemplate.currentMetaEditorAdapter | ( | ) |
This function is used to get the meta adapter (containing template meta details) for a existing/current template project.
Implements org.buildmlearn.toolkit.model.TemplateInterface.
BaseAdapter org.buildmlearn.toolkit.templates.ComprehensionTemplate.currentTemplateEditorAdapter | ( | ) |
This function is used to get the adapter (containing template data) for a existing/current template project.
Implements org.buildmlearn.toolkit.model.TemplateInterface.
void org.buildmlearn.toolkit.templates.ComprehensionTemplate.deleteItem | ( | Activity | activity, |
int | position | ||
) |
Remove an item form template data list.
activity | Current Activity |
position | Position of the item to be removed |
Implements org.buildmlearn.toolkit.model.TemplateInterface.
void org.buildmlearn.toolkit.templates.ComprehensionTemplate.editItem | ( | final Activity | activity, |
final int | position | ||
) |
String org.buildmlearn.toolkit.templates.ComprehensionTemplate.getApkFilePath | ( | ) |
Path of the apk stored in assets
Implements org.buildmlearn.toolkit.model.TemplateInterface.
String org.buildmlearn.toolkit.templates.ComprehensionTemplate.getAssetsFileName | ( | Context | context | ) |
Name of the xml file congaing template data in the assets folders in the build apk.
context | For obtaining String from StringRes |
Implements org.buildmlearn.toolkit.model.TemplateInterface.
String org.buildmlearn.toolkit.templates.ComprehensionTemplate.getAssetsFilePath | ( | ) |
Folder path in which the apk is stored in the build APK.
Implements org.buildmlearn.toolkit.model.TemplateInterface.
|
private |
ArrayList<Element> org.buildmlearn.toolkit.templates.ComprehensionTemplate.getItems | ( | Document | doc | ) |
Implements org.buildmlearn.toolkit.model.TemplateInterface.
android.support.v4.app.Fragment org.buildmlearn.toolkit.templates.ComprehensionTemplate.getSimulatorFragment | ( | String | filePathWithName | ) |
Returns a fragment required for the Simulator Activity.
filePathWithName | Path of the generated .buildmlearn file |
Implements org.buildmlearn.toolkit.model.TemplateInterface.
String org.buildmlearn.toolkit.templates.ComprehensionTemplate.getTitle | ( | ) |
Used to get the title of the templaye. Mainly used to update ActionBar in Template Editor.
Implements org.buildmlearn.toolkit.model.TemplateInterface.
BaseAdapter org.buildmlearn.toolkit.templates.ComprehensionTemplate.loadProjectMetaEditor | ( | Context | context, |
Document | doc | ||
) |
Implements org.buildmlearn.toolkit.model.TemplateInterface.
BaseAdapter org.buildmlearn.toolkit.templates.ComprehensionTemplate.loadProjectTemplateEditor | ( | Context | context, |
ArrayList< Element > | data | ||
) |
Implements org.buildmlearn.toolkit.model.TemplateInterface.
BaseAdapter org.buildmlearn.toolkit.templates.ComprehensionTemplate.newMetaEditorAdapter | ( | Context | context | ) |
Called from Template Editor when template editor is started for creating a new meta details of template project.
context | Application context |
Implements org.buildmlearn.toolkit.model.TemplateInterface.
BaseAdapter org.buildmlearn.toolkit.templates.ComprehensionTemplate.newTemplateEditorAdapter | ( | Context | context | ) |
Called from Template Editor when template editor is started for creating a new template project.
context | Application context |
Implements org.buildmlearn.toolkit.model.TemplateInterface.
void org.buildmlearn.toolkit.templates.ComprehensionTemplate.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.
context | |
requestCode | |
resultCode | |
intent |
Implements org.buildmlearn.toolkit.model.TemplateInterface.
|
private |
|
private |
Toggles the visibility of empty text if Array has zero elements.
void org.buildmlearn.toolkit.templates.ComprehensionTemplate.setTemplateId | ( | int | templateId | ) |
Set templateId,that can be used to get Info about current template from enum Template.
templateId |
Implements org.buildmlearn.toolkit.model.TemplateInterface.
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |