android.text
Class Selection
java.lang.Object
android.text.Selection
public class Selection
- extends Object
Method Summary |
static boolean |
extendDown(Spannable text,
Layout layout)
|
static boolean |
extendLeft(Spannable text,
Layout layout)
|
static boolean |
extendRight(Spannable text,
Layout layout)
|
static void |
extendSelection(Spannable text,
int index)
|
static boolean |
extendToLeftEdge(Spannable text,
Layout layout)
|
static boolean |
extendToRightEdge(Spannable text,
Layout layout)
|
static boolean |
extendUp(Spannable text,
Layout layout)
|
static int |
getSelectionEnd(CharSequence text)
|
static int |
getSelectionStart(CharSequence text)
|
static boolean |
moveDown(Spannable text,
Layout layout)
|
static boolean |
moveLeft(Spannable text,
Layout layout)
|
static boolean |
moveRight(Spannable text,
Layout layout)
|
static boolean |
moveToLeftEdge(Spannable text,
Layout layout)
|
static boolean |
moveToRightEdge(Spannable text,
Layout layout)
|
static boolean |
moveUp(Spannable text,
Layout layout)
|
static void |
removeSelection(Spannable text)
|
static void |
selectAll(Spannable text)
|
static void |
setSelection(Spannable text,
int index)
|
static void |
setSelection(Spannable text,
int start,
int stop)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SELECTION_START
public static final Object SELECTION_START
SELECTION_END
public static final Object SELECTION_END
getSelectionStart
public static final int getSelectionStart(CharSequence text)
getSelectionEnd
public static final int getSelectionEnd(CharSequence text)
setSelection
public static void setSelection(Spannable text,
int start,
int stop)
setSelection
public static final void setSelection(Spannable text,
int index)
selectAll
public static final void selectAll(Spannable text)
extendSelection
public static final void extendSelection(Spannable text,
int index)
removeSelection
public static final void removeSelection(Spannable text)
moveUp
public static boolean moveUp(Spannable text,
Layout layout)
moveDown
public static boolean moveDown(Spannable text,
Layout layout)
moveLeft
public static boolean moveLeft(Spannable text,
Layout layout)
moveRight
public static boolean moveRight(Spannable text,
Layout layout)
extendUp
public static boolean extendUp(Spannable text,
Layout layout)
extendDown
public static boolean extendDown(Spannable text,
Layout layout)
extendLeft
public static boolean extendLeft(Spannable text,
Layout layout)
extendRight
public static boolean extendRight(Spannable text,
Layout layout)
extendToLeftEdge
public static boolean extendToLeftEdge(Spannable text,
Layout layout)
extendToRightEdge
public static boolean extendToRightEdge(Spannable text,
Layout layout)
moveToLeftEdge
public static boolean moveToLeftEdge(Spannable text,
Layout layout)
moveToRightEdge
public static boolean moveToRightEdge(Spannable text,
Layout layout)
Copyright © 2008-2012. All Rights Reserved.