public abstract class CaretText extends AbstractCaretOwner implements Text
AbstractCaretOwner.ToPosition| Modifier and Type | Method and Description |
|---|---|
void |
addNavKeys(Keyboard.KeyboardButton left,
Keyboard.KeyboardButton right) |
void |
addNavKeys(Keyboard.KeyboardButton left,
Keyboard.KeyboardModifier[] leftMods,
Keyboard.KeyboardButton right,
Keyboard.KeyboardModifier[] rightMods) |
TextCaret |
caret() |
void |
clear()
Clears all the text content.
|
protected int |
getFlags() |
protected void |
initCaret() |
void |
to(String regex)
Moves caret to a beginning the first occurance of the regex.
|
void |
to(String regex,
boolean front)
Moves caret to a beginning/end of the first occurance of the regex.
|
void |
to(String regex,
boolean front,
int index)
Moves caret to a beginning/end of an
index'th occurance of the regex. |
void |
type(String newText)
Supposed to type a new value from current position.
|
allowedError, allowError, toclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpositionpublic CaretText(Wrap<?> wrap)
public TextCaret caret()
caret in interface CaretOwnerprotected void initCaret()
protected int getFlags()
public void type(String newText)
Textpublic void clear()
Textpublic void to(String regex, boolean front, int index)
index'th occurance of the regex.regex - the regular expression to search forfront - todo documentindex - todo documentpublic void to(String regex, boolean front)
regex - the regular expression to search forfront - todo documentpublic void to(String regex)
regex - the regular expression to search forpublic void addNavKeys(Keyboard.KeyboardButton left, Keyboard.KeyboardModifier[] leftMods, Keyboard.KeyboardButton right, Keyboard.KeyboardModifier[] rightMods)
public void addNavKeys(Keyboard.KeyboardButton left, Keyboard.KeyboardButton right)
Copyright © 2018. All rights reserved.