|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.gui.preferences.SourceEntry
public class SourceEntry
A source entry primarily used to save the user's selection of mappaint styles, but also for preset sources.
Field Summary | |
---|---|
boolean |
active
active is a boolean flag that can be used to turn the style on or off at runtime. |
java.lang.String |
name
Name is used as a namespace for color preferences and (currently) only one file with a name can be loaded at a time. |
java.lang.String |
title
A title that can be used as menu entry. |
java.lang.String |
url
A URL can be anything that MirroredInputStream understands, i.e. |
Constructor Summary | |
---|---|
SourceEntry(SourceEntry e)
|
|
SourceEntry(java.lang.String url,
java.lang.String name,
java.lang.String title,
java.lang.Boolean active)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getDisplayString()
String to show in menus and error messages. |
java.lang.String |
getFileNamePart()
extract file part from url, e.g.: http://www.test.com/file.xml?format=text --> file.xml |
java.lang.String |
getLocalSourceDir()
|
java.lang.String |
getPrefName()
the name / identifier that should be used to save custom color values and similar stuff to the preference file |
int |
hashCode()
|
boolean |
isLocal()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String url
public java.lang.String name
public java.lang.String title
public boolean active
Constructor Detail |
---|
public SourceEntry(java.lang.String url, java.lang.String name, java.lang.String title, java.lang.Boolean active)
public SourceEntry(SourceEntry e)
Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getDisplayString()
public java.lang.String getFileNamePart()
public java.lang.String getPrefName()
public boolean isLocal()
public java.lang.String getLocalSourceDir()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |