us.zuercher.gpx2map.gui
Class MapSourceComboBoxModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by javax.swing.DefaultComboBoxModel
          extended by us.zuercher.gpx2map.gui.MapSourceComboBoxModel
All Implemented Interfaces:
Serializable, ComboBoxModel, ListModel, MutableComboBoxModel

public class MapSourceComboBoxModel
extends DefaultComboBoxModel

MapSourceComboBoxModel defines the choices available in the map source combo box of the Gpx2Map GUI.

Author:
Stephan Zuercher
See Also:
Serialized Form

Nested Class Summary
static class MapSourceComboBoxModel.MapSourceChoice
          MapSourceChoice describes the choice a particular MapSource.
 
Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
MapSourceComboBoxModel()
          Constructs a new MapSourceComboBoxModel with the available MapSourceChoices.
 
Method Summary
private static MapSourceComboBoxModel.MapSourceChoice[] getMapSources()
          Creates an array of available MapSourceChoices.
 
Methods inherited from class javax.swing.DefaultComboBoxModel
addElement, getElementAt, getIndexOf, getSelectedItem, getSize, insertElementAt, removeAllElements, removeElement, removeElementAt, setSelectedItem
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
 

Constructor Detail

MapSourceComboBoxModel

public MapSourceComboBoxModel()
Constructs a new MapSourceComboBoxModel with the available MapSourceChoices.

Method Detail

getMapSources

private static MapSourceComboBoxModel.MapSourceChoice[] getMapSources()
Creates an array of available MapSourceChoices.

Returns:
an array of available MapSourceChoices.