Package uk.ac.qmul.eecs.ccmi.activities
Class AccessibleActivity
- java.lang.Object
-
- FragmentActivity
-
- uk.ac.qmul.eecs.ccmi.activities.AccessibleActivity
-
- Direct Known Subclasses:
- CcmiEditorAppActivity, FileSelectorActivity
public abstract class AccessibleActivity extends FragmentActivityAn abstract accessible activity, displaying items of a list in a ListView and a text header.
-
-
Field Summary
Fields Modifier and Type Field and Description protected AccessibilityServiceaccessibilityServicethe class used to generate audio and tactile cues when exploring the activityprotected AccessibleDialogBuilderdialogBuilderused to generate dialogs when the user clicks or long-clicks on an itemprotected ListViewlistThe list item list of the activity
-
Constructor Summary
Constructors Constructor and Description AccessibleActivity()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description booleandispatchTouchEvent(MotionEvent evt)protected java.lang.CharSequencegetHeaderText()Returns the header text.abstract java.lang.StringgetName()voidonCreate(Bundle savedInstanceState)Called when the activity is first created.protected voidonPause()voidonPostResume()When the activity is resumed the header text is uttered thought the text to speech sinthesizerprotected voidonResume()protected voidsetHeaderText(java.lang.CharSequence headerText)Set the header text.
-
-
-
Field Detail
-
accessibilityService
protected AccessibilityService accessibilityService
the class used to generate audio and tactile cues when exploring the activity
-
dialogBuilder
protected AccessibleDialogBuilder dialogBuilder
used to generate dialogs when the user clicks or long-clicks on an item
-
list
protected ListView list
The list item list of the activity
-
-
Method Detail
-
onCreate
public void onCreate(Bundle savedInstanceState)
Called when the activity is first created.
-
onResume
protected void onResume()
-
onPostResume
public void onPostResume()
When the activity is resumed the header text is uttered thought the text to speech sinthesizer
-
onPause
protected void onPause()
-
dispatchTouchEvent
public boolean dispatchTouchEvent(MotionEvent evt)
-
setHeaderText
protected void setHeaderText(java.lang.CharSequence headerText)
Set the header text. The text is uttered when the user hover over the header.- Parameters:
headerText- the header text
-
getHeaderText
protected java.lang.CharSequence getHeaderText()
Returns the header text. The text is uttered when the user hover over the header.- Returns:
- the header text
-
getName
public abstract java.lang.String getName()
-
-