Package uk.ac.qmul.eecs.ccmi.activities
Class FileSelectorActivity
- java.lang.Object
-
- FragmentActivity
-
- uk.ac.qmul.eecs.ccmi.activities.AccessibleActivity
-
- uk.ac.qmul.eecs.ccmi.activities.FileSelectorActivity
-
- Direct Known Subclasses:
- FileSelectorActivity.Open, FileSelectorActivity.Save
public abstract class FileSelectorActivity extends AccessibleActivity
An abstract activity for file selection. The file system is shown as follows: the current directory is displayed on a the header and all the files or folder contained in it are displayed in a list view. Clicking on a list item will only take effect if the item is a directory. The selected directory will become the current directory. In order to select the parent directory a click on the back button is needed. Being anAccessibleActivity
the view can be explored though sound and haptics by hovering on it. in order to scroll the list a double-finger scroll is required or, if the device does not support multitouch, a scroll button will appear on the bottom for scrolling.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
FileSelectorActivity.Open
AFileSelectorActivity
for opening a file.static class
FileSelectorActivity.Save
AFileSelectorActivity
for saving a file.
-
Field Summary
-
Fields inherited from class uk.ac.qmul.eecs.ccmi.activities.AccessibleActivity
accessibilityService, dialogBuilder, list
-
-
Constructor Summary
Constructors Constructor and Description FileSelectorActivity()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description void
onBackPressed()
On pressing the back button, the parent of the current directory will be displayed.void
onCreate(Bundle savedInstanceState)
Called when the activity is first created.void
onItemClick(<any> av, View v, int position, long id)
abstract boolean
onItemLongClick(<any> av, View v, int position, long id)
To be implemented by subclasses.-
Methods inherited from class uk.ac.qmul.eecs.ccmi.activities.AccessibleActivity
dispatchTouchEvent, getHeaderText, getName, onPause, onPostResume, onResume, setHeaderText
-
-
-
-
Method Detail
-
onCreate
public void onCreate(Bundle savedInstanceState)
Description copied from class:AccessibleActivity
Called when the activity is first created.- Overrides:
onCreate
in classAccessibleActivity
-
onItemClick
public void onItemClick(<any> av, View v, int position, long id)
-
onItemLongClick
public abstract boolean onItemLongClick(<any> av, View v, int position, long id)
To be implemented by subclasses. The long click represent the trigger of an operation on the selected file.
-
onBackPressed
public void onBackPressed()
On pressing the back button, the parent of the current directory will be displayed.
-
-