Class ExtendedSourceEntry
- java.lang.Object
-
- org.openstreetmap.josm.data.preferences.sources.SourceEntry
-
- org.openstreetmap.josm.data.preferences.sources.ExtendedSourceEntry
-
- All Implemented Interfaces:
Comparable<ExtendedSourceEntry>
public class ExtendedSourceEntry extends SourceEntry implements Comparable<ExtendedSourceEntry>
Source entry with additional metadata.- Since:
- 12649 (extracted from gui.preferences package)
-
-
Field Summary
Fields Modifier and Type Field Description String
author
author name used for displayString
description
short description used for displayImageResource
icon
icon used for displayString
link
webpage link used for displayInteger
minJosmVersion
minimum JOSM version required to enable this source entryString
simpleFileName
file name used for displayString
styleType
Style type: can only have one value: "xml".String
version
version used for display-
Fields inherited from class org.openstreetmap.josm.data.preferences.sources.SourceEntry
active, isZip, name, title, type, url, zipEntryPath
-
-
Constructor Summary
Constructors Constructor Description ExtendedSourceEntry(SourceType type, String simpleFileName, String url)
Constructs a newExtendedSourceEntry
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static void
appendRow(StringBuilder s, String th, String td)
int
compareTo(ExtendedSourceEntry o)
String
getDisplayName()
Returns string representation for GUI list or menu entry.String
getTooltip()
Returns a tooltip containing available metadata.String
toString()
-
Methods inherited from class org.openstreetmap.josm.data.preferences.sources.SourceEntry
equals, getDisplayString, getFileNamePart, getLocalSourceDir, getPrefName, getZipEntryDirName, hashCode, isLocal
-
-
-
-
Field Detail
-
simpleFileName
public String simpleFileName
file name used for display
-
icon
public ImageResource icon
icon used for display
-
description
public String description
short description used for display
-
styleType
public String styleType
Style type: can only have one value: "xml". Used to filter out old XML styles. For MapCSS styles, the value is not set.
-
minJosmVersion
public Integer minJosmVersion
minimum JOSM version required to enable this source entry
-
-
Constructor Detail
-
ExtendedSourceEntry
public ExtendedSourceEntry(SourceType type, String simpleFileName, String url)
Constructs a newExtendedSourceEntry
.- Parameters:
type
- type of source entrysimpleFileName
- file name used for displayurl
- URL thatCachedFile
understands- Since:
- 12825
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
Returns string representation for GUI list or menu entry.- Returns:
- string representation for GUI list or menu entry
-
appendRow
private static void appendRow(StringBuilder s, String th, String td)
-
getTooltip
public String getTooltip()
Returns a tooltip containing available metadata.- Returns:
- a tooltip containing available metadata
-
toString
public String toString()
- Overrides:
toString
in classSourceEntry
-
compareTo
public int compareTo(ExtendedSourceEntry o)
- Specified by:
compareTo
in interfaceComparable<ExtendedSourceEntry>
-
-