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) classBoundingBoxSelection.BoundingBoxBuilder(package private) classBoundingBoxSelection.LatValueChecker(package private) classBoundingBoxSelection.LonValueChecker(package private) classBoundingBoxSelection.OsmUrlRefresher(package private) static classBoundingBoxSelection.SelectAllOnFocusHandler
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.border.BordererrorBorderprivate JosmTextField[]latlonprivate DownloadDialogparentprivate JosmTextAreashowUrlprivate JosmTextAreatfOsmUrl
-
Constructor Summary
Constructors Constructor Description BoundingBoxSelection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGui(DownloadDialog gui)Add the GUI elements to the dialog.protected voidbuildDownloadAreaInputFields()BoundsgetDownloadArea()Replies the download area.private booleanparseURL(DownloadDialog gui)protected voidregisterBoundingBoxBuilder()protected voidresetErrorMessage(JosmTextField tf)voidsetDownloadArea(Bounds area)Sets the current download area.protected voidsetErrorMessage(JosmTextField tf, java.lang.String msg)private voidupdateBboxFields(Bounds area)private voidupdateUrl(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:DownloadSelectionAdd the GUI elements to the dialog.- Specified by:
addGuiin interfaceDownloadSelection- Parameters:
gui- download dialog
-
setDownloadArea
public void setDownloadArea(Bounds area)
Description copied from interface:DownloadSelectionSets the current download area. The area may be null to clear the current download area.- Specified by:
setDownloadAreain 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)
-
-