Class ExtendedSourceEntry
- java.lang.Object
-
- org.openstreetmap.josm.data.preferences.sources.SourceEntry
-
- org.openstreetmap.josm.data.preferences.sources.ExtendedSourceEntry
-
- All Implemented Interfaces:
java.lang.Comparable<ExtendedSourceEntry>
public class ExtendedSourceEntry extends SourceEntry implements java.lang.Comparable<ExtendedSourceEntry>
Source entry with additional metadata.- Since:
- 12649 (extracted from gui.preferences package)
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
author
author name used for displayjava.lang.String
description
short description used for displayImageResource
icon
icon used for displayjava.lang.String
link
webpage link used for displayjava.lang.Integer
minJosmVersion
minimum JOSM version required to enable this source entryjava.lang.String
simpleFileName
file name used for displayjava.lang.String
styleType
Style type: can only have one value: "xml".java.lang.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, java.lang.String simpleFileName, java.lang.String url)
Constructs a newExtendedSourceEntry
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static void
appendRow(java.lang.StringBuilder s, java.lang.String th, java.lang.String td)
int
compareTo(ExtendedSourceEntry o)
java.lang.String
getDisplayName()
Returns string representation for GUI list or menu entry.java.lang.String
getTooltip()
Returns a tooltip containing available metadata.java.lang.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 java.lang.String simpleFileName
file name used for display
-
version
public java.lang.String version
version used for display
-
author
public java.lang.String author
author name used for display
-
icon
public ImageResource icon
icon used for display
-
link
public java.lang.String link
webpage link used for display
-
description
public java.lang.String description
short description used for display
-
styleType
public java.lang.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 java.lang.Integer minJosmVersion
minimum JOSM version required to enable this source entry
-
-
Constructor Detail
-
ExtendedSourceEntry
public ExtendedSourceEntry(SourceType type, java.lang.String simpleFileName, java.lang.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 java.lang.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(java.lang.StringBuilder s, java.lang.String th, java.lang.String td)
-
getTooltip
public java.lang.String getTooltip()
Returns a tooltip containing available metadata.- Returns:
- a tooltip containing available metadata
-
toString
public java.lang.String toString()
- Overrides:
toString
in classSourceEntry
-
compareTo
public int compareTo(ExtendedSourceEntry o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ExtendedSourceEntry>
-
-