us.zuercher.gpx2map.gui
Class MapSourceComboBoxModel.MapSourceChoice

java.lang.Object
  extended by us.zuercher.gpx2map.gui.MapSourceComboBoxModel.MapSourceChoice
Enclosing class:
MapSourceComboBoxModel

public static class MapSourceComboBoxModel.MapSourceChoice
extends Object

MapSourceChoice describes the choice a particular MapSource.

Author:
Stephan Zuercher

Field Summary
private  String mapSourceDisplayName
          Map source display name.
private  String mapSourceName
          Map source name.
 
Constructor Summary
private MapSourceComboBoxModel.MapSourceChoice(String name, String displayName)
          Constructs a new MapSourceChoice.
 
Method Summary
 String getMapSourceName()
          Returns the map source name for this choice.
 MapSource newMapSource()
          Instantiates a new MapSource of the given type.
 String toString()
          Returns the display name for this choice.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mapSourceName

private final String mapSourceName
Map source name.


mapSourceDisplayName

private final String mapSourceDisplayName
Map source display name.

Constructor Detail

MapSourceComboBoxModel.MapSourceChoice

private MapSourceComboBoxModel.MapSourceChoice(String name,
                                               String displayName)
Constructs a new MapSourceChoice.

Parameters:
name - map source name
displayName - map source display name
Method Detail

newMapSource

public MapSource newMapSource()
Instantiates a new MapSource of the given type.

Returns:
a MapSource

getMapSourceName

public String getMapSourceName()
Returns the map source name for this choice.

Returns:
the map source name for this choice.

toString

public String toString()
Returns the display name for this choice.

Overrides:
toString in class Object
Returns:
the display name for this choice.