public abstract class SelectionText extends CaretText implements IntervalSelectable
AbstractCaretOwner.ToPositionSELECTION_ANCHOR_PROP_NAME| Constructor and Description |
|---|
SelectionText(Wrap<?> wrap) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
initCaret() |
void |
select(String regex)
Selects first occurance of the regex.
|
void |
select(String regex,
int index)
Selects
index'th occurance of the regex. |
String |
selection() |
addNavKeys, addNavKeys, caret, clear, getFlags, to, to, to, typeallowedError, allowError, toclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitanchor, caretposition, topublic SelectionText(Wrap<?> wrap)
public void select(String regex, int index)
index'th occurance of the regex.regex - the regular expression to selectindex - the occurance indexpublic void select(String regex)
regex - the regular expression to selectpublic String selection()
Copyright © 2019. All rights reserved.