X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTList.java;fp=src%2Fjexer%2FTList.java;h=0ed7a070c5839da8147ba829bd5ff0a0dc7772fd;hb=af56159c6460ab42f06e30d4e677c67f64e3ea8e;hp=da60af18745737dbc5ed5ecaf7d3a9a08730f430;hpb=0895a25ffa531ec5786d8f0b7e0d585d95d8e81e;p=fanfix.git diff --git a/src/jexer/TList.java b/src/jexer/TList.java index da60af1..0ed7a07 100644 --- a/src/jexer/TList.java +++ b/src/jexer/TList.java @@ -406,6 +406,16 @@ public class TList extends TScrollableWidget { 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. *