|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapwidgets.APWidget
apwidgets.APTextView
apwidgets.APEditText
public class APEditText
An editable text field. Add instances to APWidgetContainer
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface android.text.NoCopySpan |
---|
android.text.NoCopySpan.Concrete |
Constructor Summary | |
---|---|
APEditText(int x,
int y,
int width,
int height)
Creates a new editable text field. |
Method Summary | |
---|---|
boolean |
getHorizontallyScrolling()
|
void |
init(processing.core.PApplet pApplet)
Initializes the text field. |
boolean |
onEditorAction(android.widget.TextView textView,
int actionId,
android.view.KeyEvent keyEvent)
|
void |
setCloseImeOnDone(boolean closeImeOnDone)
If you have called setImeOptions(EditorInfo.IME_ACTION_DONE), and you have set closeImeOnDone to true, the IME will close when you press done. |
void |
setHorizontallyScrolling(boolean horizontallyScrolling)
|
void |
setImeOptions(int editorInfo)
You can set IMEOptions for this EditText using this method. |
void |
setInputType(int inputType)
You can set InputType here. |
void |
setNextEditText(APEditText nextEditText)
If you have called setImeOptions(EditorInfo.IME_ACTION_NEXT), you can use this method to specify which EditText will be focused when you press next. |
Methods inherited from class apwidgets.APTextView |
---|
afterTextChanged, beforeTextChanged, getText, getTextColor, getTextSize, onTextChanged, setText, setTextColor, setTextSize |
Methods inherited from class apwidgets.APWidget |
---|
addOnClickWidgetListener, getHeight, getPApplet, getWidth, getView, getX, getY, onClick, setPosition, setSize |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public APEditText(int x, int y, int width, int height)
x
- The text field's x position.y
- The text field's y position.width
- The text field's width.height
- The text field's height.Method Detail |
---|
public boolean getHorizontallyScrolling()
public void setCloseImeOnDone(boolean closeImeOnDone)
closeImeOnDone
- public void setNextEditText(APEditText nextEditText)
nextEditText
- public void init(processing.core.PApplet pApplet)
APWidgetContainer
as it is added to it.
init
in class APTextView
public boolean onEditorAction(android.widget.TextView textView, int actionId, android.view.KeyEvent keyEvent)
onEditorAction
in interface android.widget.TextView.OnEditorActionListener
public void setImeOptions(int editorInfo)
editorInfo
- public void setInputType(int inputType)
inputType
- public void setHorizontallyScrolling(boolean horizontallyScrolling)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |