< prev index next >
core/JemmyCore/src/org/jemmy/input/CaretText.java
Print this page
*** 43,56 ****
TextCaret caret;
TextImpl text;
Wrap<?> wrap;
- /**
- *
- * @param wrap
- */
public CaretText(Wrap<?> wrap) {
this.wrap = wrap;
text = new TextImpl(wrap) {
public String text() {
return CaretText.this.text();
--- 43,52 ----
*** 67,80 ****
protected void initCaret() {
caret = new TextCaret(wrap, this);
}
- /**
- *
- * @return
- */
protected int getFlags() {
return (Integer)wrap.getEnvironment().
getProperty(RegexCaretDirection.REGEX_FLAGS, 0);
}
--- 63,72 ----
*** 86,136 ****
text.clear();
}
/**
* Moves caret to a beginning/end of an <code>index</code>'th occurance of the regex.
! * @param regex
! * @param front
! * @param index
*/
public void to(String regex, boolean front, int index) {
caret().to(new RegexCaretDirection(this, this, regex, getFlags(), front, index));
}
/**
* Moves caret to a beginning/end of the first occurance of the regex.
! * @param regex
! * @param front
*/
public void to(String regex, boolean front) {
to(regex, front, 0);
}
/**
* Moves caret to a beginning the first occurance of the regex.
! * @param regex
*/
public void to(String regex) {
to(regex, true);
}
- /**
- *
- * @param left
- * @param leftMods
- * @param right
- * @param rightMods
- */
public void addNavKeys(KeyboardButton left, KeyboardModifier[] leftMods,
KeyboardButton right, KeyboardModifier[] rightMods) {
caret().addNavKeys(left, leftMods, right, rightMods);
}
- /**
- *
- * @param left
- * @param right
- */
public void addNavKeys(KeyboardButton left, KeyboardButton right) {
addNavKeys(left, new KeyboardModifier[0], right, new KeyboardModifier[0]);
}
}
--- 78,119 ----
text.clear();
}
/**
* Moves caret to a beginning/end of an <code>index</code>'th occurance of the regex.
! *
! * @param regex the regular expression to search for
! * @param front todo document
! * @param index todo document
*/
public void to(String regex, boolean front, int index) {
caret().to(new RegexCaretDirection(this, this, regex, getFlags(), front, index));
}
/**
* Moves caret to a beginning/end of the first occurance of the regex.
! *
! * @param regex the regular expression to search for
! * @param front todo document
*/
public void to(String regex, boolean front) {
to(regex, front, 0);
}
/**
* Moves caret to a beginning the first occurance of the regex.
! *
! * @param regex the regular expression to search for
*/
public void to(String regex) {
to(regex, true);
}
public void addNavKeys(KeyboardButton left, KeyboardModifier[] leftMods,
KeyboardButton right, KeyboardModifier[] rightMods) {
caret().addNavKeys(left, leftMods, right, rightMods);
}
public void addNavKeys(KeyboardButton left, KeyboardButton right) {
addNavKeys(left, new KeyboardModifier[0], right, new KeyboardModifier[0]);
}
}
< prev index next >