Class ExtendedSourceEntry
java.lang.Object
org.openstreetmap.josm.data.preferences.sources.SourceEntry
org.openstreetmap.josm.data.preferences.sources.ExtendedSourceEntry
- All Implemented Interfaces:
Comparable<ExtendedSourceEntry>
Source entry with additional metadata.
- Since:
- 12649 (extracted from gui.preferences package)
-
Field Summary
FieldsModifier and TypeFieldDescriptionauthor name used for displayshort description used for displayicon used for displaywebpage link used for displayminimum JOSM version required to enable this source entryfile name used for displayStyle type: can only have one value: "xml".version used for displayFields inherited from class org.openstreetmap.josm.data.preferences.sources.SourceEntry
active, isZip, name, title, type, url, zipEntryPath -
Constructor Summary
ConstructorsConstructorDescriptionExtendedSourceEntry(SourceType type, String simpleFileName, String url) Constructs a newExtendedSourceEntry. -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidappendRow(StringBuilder s, String th, String td) intReturns string representation for GUI list or menu entry.Returns a tooltip containing available metadata.toString()Methods inherited from class org.openstreetmap.josm.data.preferences.sources.SourceEntry
equals, getDisplayString, getFileNamePart, getLocalSourceDir, getPrefName, getZipEntryDirName, hashCode, isLocal
-
Field Details
-
simpleFileName
file name used for display -
version
version used for display -
author
author name used for display -
icon
icon used for display -
link
webpage link used for display -
description
short description used for display -
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
minimum JOSM version required to enable this source entry
-
-
Constructor Details
-
ExtendedSourceEntry
Constructs a newExtendedSourceEntry.- Parameters:
type- type of source entrysimpleFileName- file name used for displayurl- URL thatCachedFileunderstands- Since:
- 12825
-
-
Method Details
-
getDisplayName
Returns string representation for GUI list or menu entry.- Returns:
- string representation for GUI list or menu entry
-
appendRow
-
getTooltip
Returns a tooltip containing available metadata.- Returns:
- a tooltip containing available metadata
-
toString
- Overrides:
toStringin classSourceEntry
-
compareTo
- Specified by:
compareToin interfaceComparable<ExtendedSourceEntry>
-