git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix set value
[fanfix.git]
/
src
/
jexer
/
TList.java
diff --git
a/src/jexer/TList.java
b/src/jexer/TList.java
index da60af18745737dbc5ed5ecaf7d3a9a08730f430..0ed7a070c5839da8147ba829bd5ff0a0dc7772fd 100644
(file)
--- a/
src/jexer/TList.java
+++ b/
src/jexer/TList.java
@@
-406,6
+406,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.
*