misc cleanup
[fanfix.git] / src / jexer / TList.java
index da60af18745737dbc5ed5ecaf7d3a9a08730f430..3aed01ed21c25131d2e70e96efdf4d4bd9039ed3 100644 (file)
@@ -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.
      *