Class OSMDownloadSource.OsmDataDownloadType
java.lang.Object
org.openstreetmap.josm.gui.download.OSMDownloadSource.OsmDataDownloadType
- All Implemented Interfaces:
IDownloadSourceType
- Enclosing class:
- OSMDownloadSource
private static final class OSMDownloadSource.OsmDataDownloadType
extends Object
implements IDownloadSourceType
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) JCheckBox(package private) static final BooleanProperty -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the boolean property for this particular download type.getCheckBox(ChangeListener checkboxChangeListener) Returns the checkbox to be added to the UI.Class<? extends AbstractDownloadTask<DataSet>>Returns the download task class which will be getting the data.getIcon()Returns the icon to be added to the UI.booleanisDownloadAreaTooLarge(Bounds bound) Check if the area is too large for the current IDownloadSourceTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openstreetmap.josm.gui.download.IDownloadSourceType
getCheckBox, isEnabled
-
Field Details
-
IS_ENABLED
-
cbDownloadOsmData
-
-
Constructor Details
-
OsmDataDownloadType
private OsmDataDownloadType()
-
-
Method Details
-
getCheckBox
Description copied from interface:IDownloadSourceTypeReturns the checkbox to be added to the UI.- Specified by:
getCheckBoxin interfaceIDownloadSourceType- Parameters:
checkboxChangeListener- The listener for checkboxes (may benull)- Returns:
- The checkbox to be added to the UI
-
getIcon
Description copied from interface:IDownloadSourceTypeReturns the icon to be added to the UI.- Specified by:
getIconin interfaceIDownloadSourceType- Returns:
- The icon to be added to the UI
-
getDownloadClass
Description copied from interface:IDownloadSourceTypeReturns the download task class which will be getting the data.- Specified by:
getDownloadClassin interfaceIDownloadSourceType- Returns:
- The
DownloadTaskclass which will be getting the data
-
getBooleanProperty
Description copied from interface:IDownloadSourceTypeReturns the boolean property for this particular download type.- Specified by:
getBooleanPropertyin interfaceIDownloadSourceType- Returns:
- The boolean property for this particular download type
-
isDownloadAreaTooLarge
Description copied from interface:IDownloadSourceTypeCheck if the area is too large for the current IDownloadSourceType- Specified by:
isDownloadAreaTooLargein interfaceIDownloadSourceType- Parameters:
bound- The bound that will be downloaded- Returns:
trueif we definitely cannot download the area;
-