Fix set value
[fanfix.git] / src / jexer / TList.java
index da60af18745737dbc5ed5ecaf7d3a9a08730f430..0ed7a070c5839da8147ba829bd5ff0a0dc7772fd 100644 (file)
@@ -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.
      *