MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / getTextAt

Method getTextAt

CodenameOne/src/com/codename1/ui/TextArea.java:1021–1031  ·  view source on GitHub ↗
(int line)

Source from the content-addressed store, hash-verified

1019 ///
1020 /// the text of the line
1021 public String getTextAt(int line) {
1022 ArrayList rowsV = getRowStrings();
1023 int size = rowsV.size();
1024 if (size == 0) {
1025 return "";
1026 }
1027 if (line >= size) {
1028 return (String) rowsV.get(size - 1);
1029 }
1030 return (String) rowsV.get(line);
1031 }
1032
1033 private int indexOf(char[] t, char c, int offset, int length) {
1034 int tlen = t.length;

Callers 12

runMethod · 0.95
decreaseCursorMethod · 0.80
increaseCursorLineMethod · 0.80
decreaseCursorLineMethod · 0.80
updateCursorLocationMethod · 0.80
getCurrentTextLineMethod · 0.80
getCursorPositionMethod · 0.80
pointerReleasedMethod · 0.80
calculateTextAreaSpanMethod · 0.80
drawTextAreaMethod · 0.80
getTextFieldStringMethod · 0.80
navigationMovementMethod · 0.80

Calls 3

getRowStringsMethod · 0.95
sizeMethod · 0.95
getMethod · 0.95

Tested by

no test coverage detected