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 | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.buildmlearn.toolkit.fragment.DraftsFragment Class Reference

Fragment used to save drafts. More...

Inheritance diagram for org.buildmlearn.toolkit.fragment.DraftsFragment:
Inheritance graph
[legend]
Collaboration diagram for org.buildmlearn.toolkit.fragment.DraftsFragment:
Collaboration graph
[legend]

Public Member Functions

void onCreate (Bundle savedInstanceState)
 
View onCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
 
void onViewCreated (View view, Bundle savedInstanceState)
 
void onItemClick (AdapterView<?> parent, View view, int position, long id)
 
void onResume ()
 
void onPrepareOptionsMenu (Menu menu)
 
boolean onOptionsItemSelected (MenuItem item)
 

Private Member Functions

void setAdapter (DraftProjectAdapter adapter)
 
void setEmptyText ()
 
void reloadContent ()
 
void restoreColorScheme ()
 Restores the color scheme when switching from edit mode to normal mode. Edit mode is triggered, when the list item is long pressed. More...
 
void changeColorScheme ()
 Changes the color scheme when switching from normal mode to edit mode. Edit mode is triggered, when the list item is long pressed. More...
 
void deleteItem (int selectedPosition)
 Removes selected project item. More...
 
void deleteAllDrafts ()
 Removes All Drafts. More...
 
void restoreSelectedView ()
 Removes selected color from the selected ListView item when switching from edit mode to normal mode. More...
 

Private Attributes

AbsListView mListView
 
boolean showTemplateSelectedMenu
 
DraftProjectAdapter mAdapter
 
ToolkitApplication mToolkit
 
Activity activity
 
ArrayList< SavedProjectdraftProjects
 
View selectedView = null
 
int selectedPosition = -1
 

Static Private Attributes

static final String TAG = "Draft Project Fragment"
 

Detailed Description

Fragment used to save drafts.

Created by scopeinfinity on 10/3/16.

Member Function Documentation

void org.buildmlearn.toolkit.fragment.DraftsFragment.changeColorScheme ( )
private

Changes the color scheme when switching from normal mode to edit mode. Edit mode is triggered, when the list item is long pressed.

void org.buildmlearn.toolkit.fragment.DraftsFragment.deleteAllDrafts ( )
private

Removes All Drafts.

void org.buildmlearn.toolkit.fragment.DraftsFragment.deleteItem ( int  selectedPosition)
private

Removes selected project item.

void org.buildmlearn.toolkit.fragment.DraftsFragment.onCreate ( Bundle  savedInstanceState)
View org.buildmlearn.toolkit.fragment.DraftsFragment.onCreateView ( LayoutInflater  inflater,
ViewGroup  container,
Bundle  savedInstanceState 
)
void org.buildmlearn.toolkit.fragment.DraftsFragment.onItemClick ( AdapterView<?>  parent,
View  view,
int  position,
long  id 
)
boolean org.buildmlearn.toolkit.fragment.DraftsFragment.onOptionsItemSelected ( MenuItem  item)
void org.buildmlearn.toolkit.fragment.DraftsFragment.onPrepareOptionsMenu ( Menu  menu)
void org.buildmlearn.toolkit.fragment.DraftsFragment.onResume ( )
void org.buildmlearn.toolkit.fragment.DraftsFragment.onViewCreated ( View  view,
Bundle  savedInstanceState 
)
void org.buildmlearn.toolkit.fragment.DraftsFragment.reloadContent ( )
private
void org.buildmlearn.toolkit.fragment.DraftsFragment.restoreColorScheme ( )
private

Restores the color scheme when switching from edit mode to normal mode. Edit mode is triggered, when the list item is long pressed.

void org.buildmlearn.toolkit.fragment.DraftsFragment.restoreSelectedView ( )
private

Removes selected color from the selected ListView item when switching from edit mode to normal mode.

void org.buildmlearn.toolkit.fragment.DraftsFragment.setAdapter ( DraftProjectAdapter  adapter)
private
void org.buildmlearn.toolkit.fragment.DraftsFragment.setEmptyText ( )
private

Member Data Documentation

Activity org.buildmlearn.toolkit.fragment.DraftsFragment.activity
private
ArrayList<SavedProject> org.buildmlearn.toolkit.fragment.DraftsFragment.draftProjects
private
DraftProjectAdapter org.buildmlearn.toolkit.fragment.DraftsFragment.mAdapter
private
AbsListView org.buildmlearn.toolkit.fragment.DraftsFragment.mListView
private
ToolkitApplication org.buildmlearn.toolkit.fragment.DraftsFragment.mToolkit
private
int org.buildmlearn.toolkit.fragment.DraftsFragment.selectedPosition = -1
private
View org.buildmlearn.toolkit.fragment.DraftsFragment.selectedView = null
private
boolean org.buildmlearn.toolkit.fragment.DraftsFragment.showTemplateSelectedMenu
private
final String org.buildmlearn.toolkit.fragment.DraftsFragment.TAG = "Draft Project Fragment"
staticprivate

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