Class PlaceSelection
- java.lang.Object
-
- org.openstreetmap.josm.gui.download.PlaceSelection
-
- All Implemented Interfaces:
DownloadSelection
public class PlaceSelection extends java.lang.Object implements DownloadSelection
Place selector.- Since:
- 1329
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classPlaceSelection.ListSelectionHandler(package private) static classPlaceSelection.NamedResultCellRenderer(package private) static classPlaceSelection.NamedResultTableColumnModel(package private) static classPlaceSelection.NamedResultTableModel(package private) static classPlaceSelection.NameQueryTask(package private) classPlaceSelection.SearchActionAction to perform initial search, and (if query is unchanged) load more results.private static classPlaceSelection.Server
-
Field Summary
Fields Modifier and Type Field Description private HistoryComboBoxcbSearchExpressionprivate PlaceSelection.NamedResultTableColumnModelcolumnmodelprivate static java.lang.StringHISTORY_KEYprivate PlaceSelection.NamedResultTableModelmodelprivate DownloadDialogparentprivate JosmComboBox<PlaceSelection.Server>serverComboBoxprivate static PlaceSelection.Server[]SERVERSprivate javax.swing.JTabletblSearchResults
-
Constructor Summary
Constructors Constructor Description PlaceSelection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGui(DownloadDialog gui)Adds a new tab to the download dialog in JOSM.protected javax.swing.JPanelbuildSearchPanel()voidsetDownloadArea(Bounds area)Sets the current download area.
-
-
-
Field Detail
-
HISTORY_KEY
private static final java.lang.String HISTORY_KEY
- See Also:
- Constant Field Values
-
cbSearchExpression
private HistoryComboBox cbSearchExpression
-
model
private PlaceSelection.NamedResultTableModel model
-
columnmodel
private PlaceSelection.NamedResultTableColumnModel columnmodel
-
tblSearchResults
private javax.swing.JTable tblSearchResults
-
parent
private DownloadDialog parent
-
SERVERS
private static final PlaceSelection.Server[] SERVERS
-
serverComboBox
private final JosmComboBox<PlaceSelection.Server> serverComboBox
-
-
Constructor Detail
-
PlaceSelection
public PlaceSelection()
-
-
Method Detail
-
buildSearchPanel
protected javax.swing.JPanel buildSearchPanel()
-
addGui
public void addGui(DownloadDialog gui)
Adds a new tab to the download dialog in JOSM.This method is, for all intents and purposes, the constructor for this class.
- 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
-
-