org.openstreetmap.josm.gui.download
Class BoundingBoxSelection

java.lang.Object
  extended by 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
(package private)  class BoundingBoxSelection.BoundingBoxBuilder
           
(package private)  class BoundingBoxSelection.LatValueChecker
           
(package private)  class BoundingBoxSelection.LonValueChecker
           
(package private)  class BoundingBoxSelection.OsmUrlPopup
           
(package private)  class BoundingBoxSelection.OsmUrlRefresher
           
(package private)  class BoundingBoxSelection.PasteUrlAction
           
(package private) static class BoundingBoxSelection.SelectAllOnFocusHandler
           
 
Field Summary
private  javax.swing.border.Border errorBorder
           
private  javax.swing.JTextField[] latlon
           
private  DownloadDialog parent
           
private  javax.swing.JTextArea showUrl
           
private  javax.swing.JTextArea tfOsmUrl
           
 
Constructor Summary
BoundingBoxSelection()
           
 
Method Summary
 void addGui(DownloadDialog gui)
          Add the GUI elements to the dialog.
protected  void buildDownloadAreaInputFields()
           
 Bounds getDownloadArea()
           
private  boolean parseURL(DownloadDialog gui)
           
protected  void registerBoundingBoxBuilder()
           
protected  void resetErrorMessage(javax.swing.JTextField tf)
           
 void setDownloadArea(Bounds area)
          Sets the current download area.
protected  void setErrorMessage(javax.swing.JTextField tf, java.lang.String msg)
           
private  void updateBboxFields(Bounds area)
           
private  void updateUrl(Bounds area)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

latlon

private javax.swing.JTextField[] latlon

tfOsmUrl

private final javax.swing.JTextArea tfOsmUrl

showUrl

private final javax.swing.JTextArea showUrl

parent

private DownloadDialog parent

errorBorder

private 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 interface DownloadSelection

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 interface DownloadSelection

getDownloadArea

public Bounds getDownloadArea()

parseURL

private boolean parseURL(DownloadDialog gui)

updateBboxFields

private void updateBboxFields(Bounds area)

updateUrl

private void updateUrl(Bounds area)

setErrorMessage

protected void setErrorMessage(javax.swing.JTextField tf,
                               java.lang.String msg)

resetErrorMessage

protected void resetErrorMessage(javax.swing.JTextField tf)


JOSM