Class OSMDownloadSource.GpsDataDownloadType
- java.lang.Object
-
- org.openstreetmap.josm.gui.download.OSMDownloadSource.GpsDataDownloadType
-
- All Implemented Interfaces:
IDownloadSourceType
- Enclosing class:
- OSMDownloadSource
private static final class OSMDownloadSource.GpsDataDownloadType extends java.lang.Object implements IDownloadSourceType
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JCheckBox
cbDownloadGpxData
(package private) static BooleanProperty
IS_ENABLED
-
Constructor Summary
Constructors Modifier Constructor Description private
GpsDataDownloadType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanProperty
getBooleanProperty()
Returns the boolean property for this particular download type.javax.swing.JCheckBox
getCheckBox(javax.swing.event.ChangeListener checkboxChangeListener)
Returns the checkbox to be added to the UI.java.lang.Class<? extends AbstractDownloadTask<GpxData>>
getDownloadClass()
Returns the download task class which will be getting the data.javax.swing.Icon
getIcon()
Returns the icon to be added to the UI.boolean
isDownloadAreaTooLarge(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
-
cbDownloadGpxData
private javax.swing.JCheckBox cbDownloadGpxData
-
-
Constructor Detail
-
GpsDataDownloadType
private GpsDataDownloadType()
-
-
Method Detail
-
getCheckBox
public javax.swing.JCheckBox getCheckBox(javax.swing.event.ChangeListener checkboxChangeListener)
Description copied from interface:IDownloadSourceType
Returns the checkbox to be added to the UI.- Specified by:
getCheckBox
in 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:IDownloadSourceType
Returns the icon to be added to the UI.- Specified by:
getIcon
in interfaceIDownloadSourceType
- Returns:
- The icon to be added to the UI
-
getDownloadClass
public java.lang.Class<? extends AbstractDownloadTask<GpxData>> getDownloadClass()
Description copied from interface:IDownloadSourceType
Returns the download task class which will be getting the data.- Specified by:
getDownloadClass
in interfaceIDownloadSourceType
- Returns:
- The
DownloadTask
class which will be getting the data
-
getBooleanProperty
public BooleanProperty getBooleanProperty()
Description copied from interface:IDownloadSourceType
Returns the boolean property for this particular download type.- Specified by:
getBooleanProperty
in interfaceIDownloadSourceType
- Returns:
- The boolean property for this particular download type
-
isDownloadAreaTooLarge
public boolean isDownloadAreaTooLarge(Bounds bound)
Description copied from interface:IDownloadSourceType
Check if the area is too large for the current IDownloadSourceType- Specified by:
isDownloadAreaTooLarge
in interfaceIDownloadSourceType
- Parameters:
bound
- The bound that will be downloaded- Returns:
true
if we definitely cannot download the area;
-
-