public class BoundingBoxSelection extends java.lang.Object implements DownloadSelection
Modifier and Type | Class and 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 |
Modifier and Type | Field and Description |
---|---|
private javax.swing.border.Border |
errorBorder |
private JosmTextField[] |
latlon |
private DownloadDialog |
parent |
private JosmTextArea |
showUrl |
private JosmTextArea |
tfOsmUrl |
Constructor and Description |
---|
BoundingBoxSelection() |
Modifier and Type | Method and 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) |
private JosmTextField[] latlon
private final JosmTextArea tfOsmUrl
private final JosmTextArea showUrl
private DownloadDialog parent
private javax.swing.border.Border errorBorder
public BoundingBoxSelection()
protected void registerBoundingBoxBuilder()
protected void buildDownloadAreaInputFields()
public void addGui(DownloadDialog gui)
DownloadSelection
addGui
in interface DownloadSelection
public void setDownloadArea(Bounds area)
DownloadSelection
setDownloadArea
in interface DownloadSelection
area
- the current download areapublic Bounds getDownloadArea()
private boolean parseURL(DownloadDialog gui)
private void updateBboxFields(Bounds area)
protected void setErrorMessage(JosmTextField tf, java.lang.String msg)
protected void resetErrorMessage(JosmTextField tf)