X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTList.java;h=3aed01ed21c25131d2e70e96efdf4d4bd9039ed3;hb=c88c4ced6e9392a53030a1c680fe114931a1a928;hp=da60af18745737dbc5ed5ecaf7d3a9a08730f430;hpb=a69ed767c9c07cf35cf1c5f7821fc009cfe79cd2;p=fanfix.git diff --git a/src/jexer/TList.java b/src/jexer/TList.java index da60af1..3aed01e 100644 --- a/src/jexer/TList.java +++ b/src/jexer/TList.java @@ -29,7 +29,6 @@ package jexer; import java.util.ArrayList; -import java.util.Collections; import java.util.List; import jexer.bits.CellAttributes; @@ -406,6 +405,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. *