]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/function/MapSourceListModel.java
Version 16, February 2014
[GpsPrune.git] / tim / prune / function / MapSourceListModel.java
index 4548cc4eec351c2bc77037742284aa69ec1fe96d..489f95d06610c52b3930e64fdc3b954c39b75595 100644 (file)
@@ -8,7 +8,7 @@ import tim.prune.gui.map.MapSourceLibrary;
 /**
  * Class to act as list model for the map source list
  */
-public class MapSourceListModel extends AbstractListModel
+public class MapSourceListModel extends AbstractListModel<String>
 {
        /**
         * @see javax.swing.ListModel#getSize()
@@ -21,7 +21,7 @@ public class MapSourceListModel extends AbstractListModel
        /**
         * @see javax.swing.ListModel#getElementAt(int)
         */
-       public Object getElementAt(int inIndex)
+       public String getElementAt(int inIndex)
        {
                if (inIndex < 0 || inIndex >= getSize()) return "";
                return MapSourceLibrary.getSource(inIndex).getName();