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.
    • 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 sinthesizer
      protected void onResume() 
      protected void setHeaderText(java.lang.CharSequence headerText)
      Set the header text.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • AccessibleActivity

        public AccessibleActivity()
    • 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()