android.text.method
Class MetaKeyKeyListener

java.lang.Object
  extended by android.text.method.MetaKeyKeyListener
Direct Known Subclasses:
BaseKeyListener

public abstract class MetaKeyKeyListener
extends Object


Field Summary
static int META_ALT_LOCKED
           
static int META_ALT_ON
           
static int META_CAP_LOCKED
           
static int META_SHIFT_ON
           
static int META_SYM_LOCKED
           
static int META_SYM_ON
           
 
Constructor Summary
MetaKeyKeyListener()
           
 
Method Summary
static long adjustMetaAfterKeypress(long state)
           
static void adjustMetaAfterKeypress(Spannable content)
           
static void clearMetaKeyState(Editable content, int states)
           
 long clearMetaKeyState(long state, int which)
           
 void clearMetaKeyState(View view, Editable content, int states)
           
static int getMetaState(CharSequence text)
           
static int getMetaState(CharSequence text, int meta)
           
static int getMetaState(long state)
           
static int getMetaState(long state, int meta)
           
static long handleKeyDown(long state, int keyCode, KeyEvent event)
           
static long handleKeyUp(long state, int keyCode, KeyEvent event)
           
static boolean isMetaTracker(CharSequence text, Object what)
           
static boolean isSelectingMetaTracker(CharSequence text, Object what)
           
 boolean onKeyDown(View view, Editable content, int keyCode, KeyEvent event)
           
 boolean onKeyUp(View view, Editable content, int keyCode, KeyEvent event)
           
static long resetLockedMeta(long state)
           
protected static void resetLockedMeta(Spannable content)
           
static void resetMetaState(Spannable text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

META_SHIFT_ON

public static final int META_SHIFT_ON
See Also:
Constant Field Values

META_ALT_ON

public static final int META_ALT_ON
See Also:
Constant Field Values

META_SYM_ON

public static final int META_SYM_ON
See Also:
Constant Field Values

META_CAP_LOCKED

public static final int META_CAP_LOCKED
See Also:
Constant Field Values

META_ALT_LOCKED

public static final int META_ALT_LOCKED
See Also:
Constant Field Values

META_SYM_LOCKED

public static final int META_SYM_LOCKED
See Also:
Constant Field Values
Constructor Detail

MetaKeyKeyListener

public MetaKeyKeyListener()
Method Detail

resetMetaState

public static void resetMetaState(Spannable text)

getMetaState

public static final int getMetaState(CharSequence text)

getMetaState

public static final int getMetaState(CharSequence text,
                                     int meta)

adjustMetaAfterKeypress

public static void adjustMetaAfterKeypress(Spannable content)

isMetaTracker

public static boolean isMetaTracker(CharSequence text,
                                    Object what)

isSelectingMetaTracker

public static boolean isSelectingMetaTracker(CharSequence text,
                                             Object what)

resetLockedMeta

protected static void resetLockedMeta(Spannable content)

onKeyDown

public boolean onKeyDown(View view,
                         Editable content,
                         int keyCode,
                         KeyEvent event)

onKeyUp

public boolean onKeyUp(View view,
                       Editable content,
                       int keyCode,
                       KeyEvent event)

clearMetaKeyState

public void clearMetaKeyState(View view,
                              Editable content,
                              int states)

clearMetaKeyState

public static void clearMetaKeyState(Editable content,
                                     int states)

resetLockedMeta

public static long resetLockedMeta(long state)

getMetaState

public static final int getMetaState(long state)

getMetaState

public static final int getMetaState(long state,
                                     int meta)

adjustMetaAfterKeypress

public static long adjustMetaAfterKeypress(long state)

handleKeyDown

public static long handleKeyDown(long state,
                                 int keyCode,
                                 KeyEvent event)

handleKeyUp

public static long handleKeyUp(long state,
                               int keyCode,
                               KeyEvent event)

clearMetaKeyState

public long clearMetaKeyState(long state,
                              int which)


Copyright © 2008-2012. All Rights Reserved.