|
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.widget.TextView
android.widget.EditText
public class EditText
EditText is a thin veneer over TextView that configures itself to be editable.
XML attributes
See EditText Attributes,
TextView Attributes,
View Attributes
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class android.widget.TextView |
|---|
TextView.BufferType, TextView.SavedState |
| 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 |
|---|
| Constructor Summary | |
|---|---|
EditText(Context context)
|
|
EditText(Context context,
AttributeSet attrs)
|
|
EditText(Context context,
AttributeSet attrs,
int defStyle)
|
|
| Method Summary | |
|---|---|
void |
extendSelection(int index)
Convenience for Selection.extendSelection(android.text.Spannable, int). |
protected boolean |
getDefaultEditable()
Subclasses override this to specify that they have a KeyListener by default even if not specifically called for in the XML options. |
protected MovementMethod |
getDefaultMovementMethod()
Subclasses override this to specify a default movement method. |
Editable |
getText()
Return the text the TextView is displaying. |
void |
selectAll()
Convenience for Selection.selectAll(android.text.Spannable). |
void |
setSelection(int index)
Convenience for Selection.setSelection(Spannable, int). |
void |
setSelection(int start,
int stop)
Convenience for Selection.setSelection(Spannable, int, int). |
void |
setText(CharSequence text,
TextView.BufferType type)
Sets the text that this TextView is to display (see TextView.setText(CharSequence)) and also sets whether it is stored
in a styleable/spannable buffer and whether it is editable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EditText(Context context)
public EditText(Context context,
AttributeSet attrs)
public EditText(Context context,
AttributeSet attrs,
int defStyle)
| Method Detail |
|---|
protected boolean getDefaultEditable()
TextView
getDefaultEditable in class TextViewprotected MovementMethod getDefaultMovementMethod()
TextView
getDefaultMovementMethod in class TextViewpublic Editable getText()
TextView
getText in class TextView
public void setText(CharSequence text,
TextView.BufferType type)
TextViewTextView.setText(CharSequence)) and also sets whether it is stored
in a styleable/spannable buffer and whether it is editable.
setText in class TextView
public void setSelection(int start,
int stop)
Selection.setSelection(Spannable, int, int).
public void setSelection(int index)
Selection.setSelection(Spannable, int).
public void selectAll()
Selection.selectAll(android.text.Spannable).
public void extendSelection(int index)
Selection.extendSelection(android.text.Spannable, int).
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||