Class BoundingBoxSelection
- java.lang.Object
-
- org.openstreetmap.josm.gui.download.BoundingBoxSelection
-
- All Implemented Interfaces:
DownloadSelection
public class BoundingBoxSelection extends java.lang.Object implements DownloadSelection
Bounding box selector. Provides max/min lat/lon input fields as well as the "URL from www.openstreetmap.org" text field.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
BoundingBoxSelection.BoundingBoxBuilder
(package private) class
BoundingBoxSelection.LatValueChecker
(package private) class
BoundingBoxSelection.LonValueChecker
(package private) class
BoundingBoxSelection.OsmUrlRefresher
(package private) static class
BoundingBoxSelection.SelectAllOnFocusHandler
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.border.Border
errorBorder
private JosmTextField[]
latlon
private DownloadDialog
parent
private JosmTextArea
showUrl
private JosmTextArea
tfOsmUrl
-
Constructor Summary
Constructors Constructor Description BoundingBoxSelection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addGui(DownloadDialog gui)
Add the GUI elements to the dialog.protected void
buildDownloadAreaInputFields()
Bounds
getDownloadArea()
Replies the download area.private boolean
parseURL(DownloadDialog gui)
protected void
registerBoundingBoxBuilder()
protected void
resetErrorMessage(JosmTextField tf)
void
setDownloadArea(Bounds area)
Sets the current download area.protected void
setErrorMessage(JosmTextField tf, java.lang.String msg)
private void
updateBboxFields(Bounds area)
private void
updateUrl(Bounds area)
-
-
-
Field Detail
-
latlon
private JosmTextField[] latlon
-
tfOsmUrl
private final JosmTextArea tfOsmUrl
-
showUrl
private final JosmTextArea showUrl
-
parent
private DownloadDialog parent
-
errorBorder
private final javax.swing.border.Border errorBorder
-
-
Constructor Detail
-
BoundingBoxSelection
public BoundingBoxSelection()
-
-
Method Detail
-
registerBoundingBoxBuilder
protected void registerBoundingBoxBuilder()
-
buildDownloadAreaInputFields
protected void buildDownloadAreaInputFields()
-
addGui
public void addGui(DownloadDialog gui)
Description copied from interface:DownloadSelection
Add the GUI elements to the dialog.- Specified by:
addGui
in interfaceDownloadSelection
- Parameters:
gui
- download dialog
-
setDownloadArea
public void setDownloadArea(Bounds area)
Description copied from interface:DownloadSelection
Sets the current download area. The area may be null to clear the current download area.- Specified by:
setDownloadArea
in interfaceDownloadSelection
- Parameters:
area
- the current download area
-
getDownloadArea
public Bounds getDownloadArea()
Replies the download area.- Returns:
- The download area
-
parseURL
private boolean parseURL(DownloadDialog gui)
-
updateBboxFields
private void updateBboxFields(Bounds area)
-
setErrorMessage
protected void setErrorMessage(JosmTextField tf, java.lang.String msg)
-
resetErrorMessage
protected void resetErrorMessage(JosmTextField tf)
-
-