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 java.lang.Object implements IDownloadSourceType
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.swing.JCheckBoxcbDownloadOsmData(package private) static BooleanPropertyIS_ENABLED
-
Constructor Summary
Constructors Modifier Constructor Description privateOsmDataDownloadType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanPropertygetBooleanProperty()Returns the boolean property for this particular download type.javax.swing.JCheckBoxgetCheckBox(javax.swing.event.ChangeListener checkboxChangeListener)Returns the checkbox to be added to the UI.java.lang.Class<? extends AbstractDownloadTask<DataSet>>getDownloadClass()Returns the download task class which will be getting the data.javax.swing.IcongetIcon()Returns the icon to be added to the UI.booleanisDownloadAreaTooLarge(Bounds bound)Check if the area is too large for the current IDownloadSourceType-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openstreetmap.josm.gui.download.IDownloadSourceType
getCheckBox, isEnabled
-
-
-
-
Field Detail
-
IS_ENABLED
static final BooleanProperty IS_ENABLED
-
cbDownloadOsmData
javax.swing.JCheckBox cbDownloadOsmData
-
-
Constructor Detail
-
OsmDataDownloadType
private OsmDataDownloadType()
-
-
Method Detail
-
getCheckBox
public javax.swing.JCheckBox getCheckBox(javax.swing.event.ChangeListener checkboxChangeListener)
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
public javax.swing.Icon 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
public java.lang.Class<? extends AbstractDownloadTask<DataSet>> 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
public BooleanProperty 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
public boolean isDownloadAreaTooLarge(Bounds bound)
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;
-
-