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 FragmentActivity
An 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 AccessibilityService
accessibilityService
the class used to generate audio and tactile cues when exploring the activityprotected AccessibleDialogBuilder
dialogBuilder
used to generate dialogs when the user clicks or long-clicks on an itemprotected ListView
list
The 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 boolean
dispatchTouchEvent(MotionEvent evt)
protected java.lang.CharSequence
getHeaderText()
Returns the header text.abstract java.lang.String
getName()
void
onCreate(Bundle savedInstanceState)
Called when the activity is first created.protected void
onPause()
void
onPostResume()
When the activity is resumed the header text is uttered thought the text to speech sinthesizerprotected void
onResume()
protected void
setHeaderText(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()
-
-