Android
android.text.method
public class

android.text.method.ArrowKeyMovementMethod

java.lang.Object
android.text.method.ArrowKeyMovementMethod MovementMethod

Summary

Public Constructors

            ArrowKeyMovementMethod()

Public Methods

          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
Methods inherited from interface android.text.method.MovementMethod

Details

Public Constructors

public ArrowKeyMovementMethod()

Public Methods

public 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. The "Select All" menu item is disabled if arbitrary selection is not allowed.

public static MovementMethod getInstance()

public void initialize(TextView widget, Spannable text)

public boolean onKeyDown(TextView widget, Spannable buffer, int keyCode, KeyEvent event)

public boolean onKeyUp(TextView widget, Spannable buffer, int keyCode, KeyEvent event)

public void onTakeFocus(TextView view, Spannable text, int dir)

public boolean onTouchEvent(TextView widget, Spannable buffer, MotionEvent event)

public boolean onTrackballEvent(TextView widget, Spannable buffer, MotionEvent event)

Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56