|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.view.View
android.view.ViewGroup
android.widget.RelativeLayout
android.widget.DialerFilter
public class DialerFilter
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class android.widget.RelativeLayout |
|---|
RelativeLayout.LayoutParams |
| Nested classes/interfaces inherited from class android.view.ViewGroup |
|---|
ViewGroup.MarginLayoutParams, ViewGroup.OnHierarchyChangeListener |
| Nested classes/interfaces inherited from class android.view.View |
|---|
View.BaseSavedState, View.MeasureSpec, View.OnClickListener, View.OnCreateContextMenuListener, View.OnFocusChangeListener, View.OnKeyListener, View.OnLongClickListener, View.OnTouchListener |
| Field Summary | |
|---|---|
static int |
DIGITS_AND_LETTERS
This mode has both lines |
static int |
DIGITS_AND_LETTERS_NO_DIGITS
This mode is when after starting in DIGITS_AND_LETTERS mode the filter
has removed all possibility of the digits matching, leaving only the letters line |
static int |
DIGITS_AND_LETTERS_NO_LETTERS
This mode is when after starting in DIGITS_AND_LETTERS mode the filter
has removed all possibility of the letters matching, leaving only the digits line |
static int |
DIGITS_ONLY
This mode has only the digits line |
static int |
LETTERS_ONLY
This mode has only the letters line |
(package private) EditText |
mDigits
|
(package private) EditText |
mHint
|
(package private) ImageView |
mIcon
|
(package private) InputFilter[] |
mInputFilters
|
(package private) EditText |
mLetters
|
(package private) int |
mMode
|
(package private) EditText |
mPrimary
|
| Fields inherited from class android.widget.RelativeLayout |
|---|
ABOVE, ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_LEFT, ALIGN_PARENT_BOTTOM, ALIGN_PARENT_LEFT, ALIGN_PARENT_RIGHT, ALIGN_PARENT_TOP, ALIGN_RIGHT, ALIGN_TOP, BELOW, CENTER_HORIZONTAL, CENTER_IN_PARENT, CENTER_VERTICAL, LEFT_OF, RIGHT_OF, TRUE |
| Constructor Summary | |
|---|---|
DialerFilter(Context context)
|
|
DialerFilter(Context context,
AttributeSet attrs)
|
|
| Method Summary | |
|---|---|
void |
append(String text)
|
void |
clearText()
Clears both the digits and the filter text. |
CharSequence |
getDigits()
|
CharSequence |
getFilterText()
|
CharSequence |
getLetters()
|
int |
getMode()
|
boolean |
isQwertyKeyboard()
|
protected void |
onFinishInflate()
Finalize inflating a view from XML. |
protected void |
onFocusChanged(boolean focused,
int direction,
Rect previouslyFocusedRect)
Only show the icon view when focused, if there is one. |
boolean |
onKeyDown(int keyCode,
KeyEvent event)
Default implementation of KeyEvent.Callback.onKeyMultiple(): perform press of the view
when KeyEvent.KEYCODE_DPAD_CENTER or KeyEvent.KEYCODE_ENTER
is released, if the view is enabled and clickable. |
boolean |
onKeyUp(int keyCode,
KeyEvent event)
Default implementation of KeyEvent.Callback.onKeyMultiple(): perform clicking of the view
when KeyEvent.KEYCODE_DPAD_CENTER or
KeyEvent.KEYCODE_ENTER is released. |
protected void |
onModeChange(int oldMode,
int newMode)
Called right after the mode changes to give subclasses the option to restyle, etc. |
void |
removeFilterWatcher(TextWatcher watcher)
|
void |
setDigitsWatcher(TextWatcher watcher)
|
void |
setFilterWatcher(TextWatcher watcher)
|
void |
setLettersWatcher(TextWatcher watcher)
|
void |
setMode(int newMode)
Change the mode of the widget. |
| Methods inherited from class android.widget.RelativeLayout |
|---|
checkLayoutParams, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getBaseline, onLayout, onMeasure, setGravity, setHorizontalGravity, setIgnoreGravity, setVerticalGravity |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface android.view.ViewParent |
|---|
createContextMenu, getParent, isLayoutRequested, requestLayout |
| Field Detail |
|---|
public static final int DIGITS_AND_LETTERS
public static final int DIGITS_AND_LETTERS_NO_DIGITS
DIGITS_AND_LETTERS mode the filter
has removed all possibility of the digits matching, leaving only the letters line
public static final int DIGITS_AND_LETTERS_NO_LETTERS
DIGITS_AND_LETTERS mode the filter
has removed all possibility of the letters matching, leaving only the digits line
public static final int DIGITS_ONLY
public static final int LETTERS_ONLY
EditText mLetters
EditText mDigits
EditText mPrimary
EditText mHint
InputFilter[] mInputFilters
ImageView mIcon
int mMode
| Constructor Detail |
|---|
public DialerFilter(Context context)
public DialerFilter(Context context,
AttributeSet attrs)
| Method Detail |
|---|
protected void onFinishInflate()
ViewEven if the subclass overrides onFinishInflate, they should always be sure to call the super method, so that we get called.
onFinishInflate in class View
protected void onFocusChanged(boolean focused,
int direction,
Rect previouslyFocusedRect)
onFocusChanged in class Viewfocused - True if the View has focus; false otherwise.direction - The direction focus has moved when requestFocus()
is called to give this view focus. Values are
View.FOCUS_UP, View.FOCUS_DOWN, View.FOCUS_LEFT or
View.FOCUS_RIGHT. It may not always apply, in which
case use the default.previouslyFocusedRect - The rectangle, in this view's coordinate
system, of the previously focused view. If applicable, this will be
passed in as finer grained information about where the focus is coming
from (in addition to direction). Will be null otherwise.public boolean isQwertyKeyboard()
public boolean onKeyDown(int keyCode,
KeyEvent event)
ViewKeyEvent.Callback.onKeyMultiple(): perform press of the view
when KeyEvent.KEYCODE_DPAD_CENTER or KeyEvent.KEYCODE_ENTER
is released, if the view is enabled and clickable.
onKeyDown in interface KeyEvent.CallbackonKeyDown in class ViewkeyCode - A key code that represents the button pressed, from
KeyEvent.event - The KeyEvent object that defines the button action.
public boolean onKeyUp(int keyCode,
KeyEvent event)
ViewKeyEvent.Callback.onKeyMultiple(): perform clicking of the view
when KeyEvent.KEYCODE_DPAD_CENTER or
KeyEvent.KEYCODE_ENTER is released.
onKeyUp in interface KeyEvent.CallbackonKeyUp in class ViewkeyCode - A key code that represents the button pressed, from
KeyEvent.event - The KeyEvent object that defines the button action.
public int getMode()
public void setMode(int newMode)
newMode - The mode to switch to.public CharSequence getLetters()
public CharSequence getDigits()
public CharSequence getFilterText()
public void append(String text)
public void clearText()
public void setLettersWatcher(TextWatcher watcher)
public void setDigitsWatcher(TextWatcher watcher)
public void setFilterWatcher(TextWatcher watcher)
public void removeFilterWatcher(TextWatcher watcher)
protected void onModeChange(int oldMode,
int newMode)
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||