git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ttable delete up/left
[nikiroo-utils.git]
/
src
/
jexer
/
TList.java
diff --git
a/src/jexer/TList.java
b/src/jexer/TList.java
index da60af18745737dbc5ed5ecaf7d3a9a08730f430..3aed01ed21c25131d2e70e96efdf4d4bd9039ed3 100644
(file)
--- a/
src/jexer/TList.java
+++ b/
src/jexer/TList.java
@@
-29,7
+29,6
@@
package jexer;
import java.util.ArrayList;
package jexer;
import java.util.ArrayList;
-import java.util.Collections;
import java.util.List;
import jexer.bits.CellAttributes;
import java.util.List;
import jexer.bits.CellAttributes;
@@
-406,6
+405,16
@@
public class TList extends TScrollableWidget {
selectedString = index;
}
selectedString = index;
}
+ /**
+ * Get a selectable string by index.
+ *
+ * @param idx index into list
+ * @return the string at idx in the list
+ */
+ public final String getListItem(final int idx) {
+ return strings.get(idx);
+ }
+
/**
* Get the selected string.
*
/**
* Get the selected string.
*