android.text.method
Class QwertyKeyListener

java.lang.Object
  extended by android.text.method.MetaKeyKeyListener
      extended by android.text.method.BaseKeyListener
          extended by android.text.method.QwertyKeyListener
All Implemented Interfaces:
KeyListener

public class QwertyKeyListener
extends BaseKeyListener


Field Summary
 
Fields inherited from class android.text.method.MetaKeyKeyListener
META_ALT_LOCKED, META_ALT_ON, META_CAP_LOCKED, META_SHIFT_ON, META_SYM_LOCKED, META_SYM_ON
 
Constructor Summary
QwertyKeyListener(TextKeyListener.Capitalize cap, boolean autotext)
           
 
Method Summary
 int getInputType()
           
static QwertyKeyListener getInstance(boolean autotext, TextKeyListener.Capitalize cap)
           
static void markAsReplaced(Spannable content, int start, int end, String original)
           
 boolean onKeyDown(View view, Editable content, int keyCode, KeyEvent event)
           
 
Methods inherited from class android.text.method.BaseKeyListener
backspace, onKeyOther
 
Methods inherited from class android.text.method.MetaKeyKeyListener
adjustMetaAfterKeypress, adjustMetaAfterKeypress, clearMetaKeyState, clearMetaKeyState, clearMetaKeyState, getMetaState, getMetaState, getMetaState, getMetaState, handleKeyDown, handleKeyUp, isMetaTracker, isSelectingMetaTracker, onKeyUp, resetLockedMeta, resetLockedMeta, resetMetaState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface android.text.method.KeyListener
clearMetaKeyState, onKeyUp
 

Constructor Detail

QwertyKeyListener

public QwertyKeyListener(TextKeyListener.Capitalize cap,
                         boolean autotext)
Method Detail

getInstance

public static QwertyKeyListener getInstance(boolean autotext,
                                            TextKeyListener.Capitalize cap)

getInputType

public int getInputType()

onKeyDown

public boolean onKeyDown(View view,
                         Editable content,
                         int keyCode,
                         KeyEvent event)
Specified by:
onKeyDown in interface KeyListener
Overrides:
onKeyDown in class BaseKeyListener

markAsReplaced

public static void markAsReplaced(Spannable content,
                                  int start,
                                  int end,
                                  String original)


Copyright © 2008-2010. All Rights Reserved.