X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTList.java;h=0ed7a070c5839da8147ba829bd5ff0a0dc7772fd;hb=9696a8f6da9a0d204740420d6d8571176ab81944;hp=da60af18745737dbc5ed5ecaf7d3a9a08730f430;hpb=a69ed767c9c07cf35cf1c5f7821fc009cfe79cd2;p=nikiroo-utils.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. *