Build 1.0_r1(from source)

android.text.method
Class ArrowKeyMovementMethod

java.lang.Object
  extended by android.text.method.ArrowKeyMovementMethod
All Implemented Interfaces:
MovementMethod

public class ArrowKeyMovementMethod
extends Object
implements MovementMethod


Constructor Summary
ArrowKeyMovementMethod()
           
 
Method Summary
 boolean canSelectArbitrarily()
          Returns true if this movement method allows arbitrary selection of any text; false if it has no selection (like a movement method that only scrolls) or a constrained selection (for example limited to links.
static MovementMethod getInstance()
           
 void initialize(TextView widget, Spannable text)
           
 boolean onKeyDown(TextView widget, Spannable buffer, int keyCode, KeyEvent event)
           
 boolean onKeyUp(TextView widget, Spannable buffer, int keyCode, KeyEvent event)
           
 void onTakeFocus(TextView view, Spannable text, int dir)
           
 boolean onTouchEvent(TextView widget, Spannable buffer, MotionEvent event)
           
 boolean onTrackballEvent(TextView widget, Spannable buffer, MotionEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrowKeyMovementMethod

public ArrowKeyMovementMethod()
Method Detail

onKeyDown

public boolean onKeyDown(TextView widget,
                         Spannable buffer,
                         int keyCode,
                         KeyEvent event)
Specified by:
onKeyDown in interface MovementMethod

onKeyUp

public boolean onKeyUp(TextView widget,
                       Spannable buffer,
                       int keyCode,
                       KeyEvent event)
Specified by:
onKeyUp in interface MovementMethod

onTrackballEvent

public boolean onTrackballEvent(TextView widget,
                                Spannable buffer,
                                MotionEvent event)
Specified by:
onTrackballEvent in interface MovementMethod

onTouchEvent

public boolean onTouchEvent(TextView widget,
                            Spannable buffer,
                            MotionEvent event)
Specified by:
onTouchEvent in interface MovementMethod

canSelectArbitrarily

public boolean canSelectArbitrarily()
Description copied from interface: MovementMethod
Returns true if this movement method allows arbitrary selection of any text; false if it has no selection (like a movement method that only scrolls) or a constrained selection (for example limited to links. The "Select All" menu item is disabled if arbitrary selection is not allowed.

Specified by:
canSelectArbitrarily in interface MovementMethod

initialize

public void initialize(TextView widget,
                       Spannable text)
Specified by:
initialize in interface MovementMethod

onTakeFocus

public void onTakeFocus(TextView view,
                        Spannable text,
                        int dir)
Specified by:
onTakeFocus in interface MovementMethod

getInstance

public static MovementMethod getInstance()

Build 1.0_r1(from source)

Please submit a feedback, bug or feature