|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.support.v4.app.Fragment
org.android.activityminer.app.db.DBRecordingViewFragment
public class DBRecordingViewFragment
The fragment for the recording tab.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class android.support.v4.app.Fragment |
---|
android.support.v4.app.Fragment.InstantiationException, android.support.v4.app.Fragment.SavedState |
Field Summary | |
---|---|
private ExpandableDBRecordingStatisticAdapter |
adapter
The list adapter |
private DBManager |
dbManager
A reference to the global database manager. |
private int |
index
Index to temporarily store selected index in |
private DBRecordingStatistic |
statistic
The recording statistics |
Constructor Summary | |
---|---|
DBRecordingViewFragment()
|
Method Summary | |
---|---|
protected void |
deleteFeaturesForRecording(DBRecordingStatisticEntry recordStatistics)
Does delete all extracted features for the given recording entry. |
protected void |
deleteFeaturesForSequence(DBRecordingStatisticSequenceEntry sequenceStatistic)
Does delete all extracted features for the given sequence entry. |
protected void |
deleteRecording(DBRecordingStatisticSequenceEntry sequenceStatistic,
DBRecordingStatisticEntry recordStatistics)
Does delete the recording from the selected recoding statistic. |
protected void |
deleteSequence(DBRecordingStatisticSequenceEntry sequenceStatistic)
Does delete the sequence of the recording from the selected recoding statistic. |
private List<DBRecordingStatisticEntry> |
getRecordingStatisticsForSequenceBehindSelection(DBRecordingStatisticSequenceEntry sequenceStatistic,
DBRecordingStatisticEntry recordStatistics)
Getter for the recordings statistics from the given sequence behind the selected recording identifier |
void |
onActivityCreated(Bundle savedInstanceState)
|
boolean |
onContextItemSelected(MenuItem item)
|
void |
onCreateContextMenu(ContextMenu menu,
View v,
ContextMenu.ContextMenuInfo menuInfo)
|
void |
onCreateOptionsMenu(Menu menu,
MenuInflater inflater)
|
View |
onCreateView(LayoutInflater inflater,
ViewGroup container,
Bundle savedInstanceState)
|
private boolean |
onDeleteAllTrainingSamples()
Handler for option delete all training samples. |
void |
onEvent(ObservableEventSource<? extends TaskFinishedEvent> eventSource,
TaskFinishedEvent observedEvent)
|
boolean |
onOptionsItemSelected(MenuItem item)
|
private boolean |
onReassignSequenceToActivity(DBRecordingStatisticSequenceEntry sequenceStatistic)
Handler for reassignment of a sequence to an activity.. |
private boolean |
onRecordingDeletion(DBRecordingStatisticSequenceEntry sequenceStatistic,
DBRecordingStatisticEntry recordStatistics)
Handler for option delete selected recoding. |
private boolean |
onRecordingFeatureExploration(DBRecordingStatisticEntry recordStatistics)
Handler for option explore features for selected recoding. |
private boolean |
onSequenceDeletion(DBRecordingStatisticSequenceEntry sequenceStatistic)
Handler for option delete sequence of selected recoding. |
private boolean |
onSequenceFeatureDeletion(DBRecordingStatisticSequenceEntry sequenceStatistic)
Handler for option delete extracted features for selected sequence. |
private boolean |
onSequenceFeatureExploration(DBRecordingStatisticSequenceEntry sequenceStatistic)
Handler for option explore features for selected sequence. |
private boolean |
onSequenceFeatureExtraction(DBRecordingStatisticSequenceEntry sequenceStatistic)
Handler for option extract features for selected sequence. |
private boolean |
onSequenceTruncation(DBRecordingStatisticSequenceEntry sequenceStatistic,
DBRecordingStatisticEntry recordStatistics)
Handler for option truncate sequence behind selected recoding. |
protected void |
truncateSequenceBehindSelected(DBRecordingStatisticSequenceEntry sequenceStatistic,
List<DBRecordingStatisticEntry> recStatisticsToRemove)
Does delete the sequence of the recording from the selected recoding statistic. |
private void |
updateData()
Method for data updates |
Methods inherited from class android.support.v4.app.Fragment |
---|
dump, equals, getActivity, getArguments, getChildFragmentManager, getFragmentManager, getId, getLayoutInflater, getLoaderManager, getParentFragment, getResources, getRetainInstance, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isVisible, onActivityResult, onAttach, onConfigurationChanged, onCreate, onCreateAnimation, onDestroy, onDestroyOptionsMenu, onDestroyView, onDetach, onHiddenChanged, onInflate, onLowMemory, onOptionsMenuClosed, onPause, onPrepareOptionsMenu, onResume, onSaveInstanceState, onStart, onStop, onViewCreated, onViewStateRestored, registerForContextMenu, setArguments, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setRetainInstance, setTargetFragment, setUserVisibleHint, startActivity, startActivityForResult, toString, unregisterForContextMenu |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private ExpandableDBRecordingStatisticAdapter adapter
private DBRecordingStatistic statistic
private DBManager dbManager
private int index
Constructor Detail |
---|
public DBRecordingViewFragment()
Method Detail |
---|
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
onCreateView
in class android.support.v4.app.Fragment
public void onActivityCreated(Bundle savedInstanceState)
onActivityCreated
in class android.support.v4.app.Fragment
private void updateData()
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater)
onCreateOptionsMenu
in class android.support.v4.app.Fragment
public final boolean onOptionsItemSelected(MenuItem item)
onOptionsItemSelected
in class android.support.v4.app.Fragment
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo)
onCreateContextMenu
in interface View.OnCreateContextMenuListener
onCreateContextMenu
in class android.support.v4.app.Fragment
public boolean onContextItemSelected(MenuItem item)
onContextItemSelected
in class android.support.v4.app.Fragment
private boolean onRecordingFeatureExploration(DBRecordingStatisticEntry recordStatistics)
recordStatistics
- the statistic entry of the recording
private boolean onSequenceFeatureExploration(DBRecordingStatisticSequenceEntry sequenceStatistic)
sequenceStatistic
- the statistic entry of the sequence
private boolean onSequenceFeatureExtraction(DBRecordingStatisticSequenceEntry sequenceStatistic)
sequenceStatistic
- the statistic entry of the sequence
private boolean onDeleteAllTrainingSamples()
protected final void deleteFeaturesForRecording(DBRecordingStatisticEntry recordStatistics)
recordStatistics
- the statistic entry of the recordingprivate boolean onSequenceFeatureDeletion(DBRecordingStatisticSequenceEntry sequenceStatistic)
sequenceStatistic
- the statistic entry of the sequence
protected final void deleteFeaturesForSequence(DBRecordingStatisticSequenceEntry sequenceStatistic)
sequenceStatistic
- the statistic entry of the sequencepublic void onEvent(ObservableEventSource<? extends TaskFinishedEvent> eventSource, TaskFinishedEvent observedEvent)
onEvent
in interface EventObserver<TaskFinishedEvent>
private boolean onSequenceTruncation(DBRecordingStatisticSequenceEntry sequenceStatistic, DBRecordingStatisticEntry recordStatistics)
sequenceStatistic
- the statistic entry of the sequencerecordStatistics
- the statistic entry of the recording in the sequence to truncate
private boolean onSequenceDeletion(DBRecordingStatisticSequenceEntry sequenceStatistic)
sequenceStatistic
- the statistic entry of the sequence
private List<DBRecordingStatisticEntry> getRecordingStatisticsForSequenceBehindSelection(DBRecordingStatisticSequenceEntry sequenceStatistic, DBRecordingStatisticEntry recordStatistics)
sequenceStatistic
- the statistic entry of the sequencerecordStatistics
- the statistic entry of the recording in the sequence to truncate
behind
private boolean onRecordingDeletion(DBRecordingStatisticSequenceEntry sequenceStatistic, DBRecordingStatisticEntry recordStatistics)
sequenceStatistic
- the statistic of the sequence to remove from listrecordStatistics
- the recording statistic of the recording to delete
protected void deleteRecording(DBRecordingStatisticSequenceEntry sequenceStatistic, DBRecordingStatisticEntry recordStatistics)
sequenceStatistic
- the statistic of the sequence to remove from listrecordStatistics
- the recording statistic of the recording to deleteprotected void deleteSequence(DBRecordingStatisticSequenceEntry sequenceStatistic)
sequenceStatistic
- the statistic of the sequence to remove from listprivate boolean onReassignSequenceToActivity(DBRecordingStatisticSequenceEntry sequenceStatistic)
sequenceStatistic
- the statistic entry of the sequence
protected void truncateSequenceBehindSelected(DBRecordingStatisticSequenceEntry sequenceStatistic, List<DBRecordingStatisticEntry> recStatisticsToRemove)
sequenceStatistic
- the statistic entry of the sequencerecStatisticsToRemove
- the recording statistics of the sequence to remove from list
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |