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.Stringauthorauthor name used for displayjava.lang.Stringdescriptionshort description used for displayImageResourceiconicon used for displayjava.lang.Stringlinkwebpage link used for displayjava.lang.IntegerminJosmVersionminimum JOSM version required to enable this source entryjava.lang.StringsimpleFileNamefile name used for displayjava.lang.StringstyleTypeStyle type: can only have one value: "xml".java.lang.Stringversionversion 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 voidappendRow(java.lang.StringBuilder s, java.lang.String th, java.lang.String td)intcompareTo(ExtendedSourceEntry o)java.lang.StringgetDisplayName()Returns string representation for GUI list or menu entry.java.lang.StringgetTooltip()Returns a tooltip containing available metadata.java.lang.StringtoString()-
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 thatCachedFileunderstands- 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:
toStringin classSourceEntry
-
compareTo
public int compareTo(ExtendedSourceEntry o)
- Specified by:
compareToin interfacejava.lang.Comparable<ExtendedSourceEntry>
-
-