Class BookmarkSelection
- java.lang.Object
-
- org.openstreetmap.josm.gui.download.BookmarkSelection
-
- All Implemented Interfaces:
DownloadSelection
public class BookmarkSelection extends java.lang.Object implements DownloadSelection
DownloadAreaSelector which manages a list of "bookmarks", i.e. a list of name download areas.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
BookmarkSelection.AddAction
The action to add a new bookmark for the current download area.(package private) class
BookmarkSelection.DoubleClickAdapter
(package private) class
BookmarkSelection.RefreshAction
(package private) class
BookmarkSelection.RemoveAction
(package private) class
BookmarkSelection.RenameAction
-
Field Summary
Fields Modifier and Type Field Description private BookmarkSelection.AddAction
actAdd
the add actionprivate JosmTextArea
bboxDisplay
private BookmarkList
bookmarks
the list of bookmarksprivate Bounds
currentArea
the currently selected download area.private JMultilineLabel
lblCurrentDownloadArea
displays information about the current download areaprivate DownloadDialog
parent
the parent download GUI
-
Constructor Summary
Constructors Constructor Description BookmarkSelection()
-
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 javax.swing.JPanel
buildButtonPanel()
Creates the panel with the action buttons on the leftprotected javax.swing.JPanel
buildDownloadAreaAddPanel()
void
setDownloadArea(Bounds area)
Sets the current download areaprotected void
updateDownloadAreaLabel()
-
-
-
Field Detail
-
currentArea
private Bounds currentArea
the currently selected download area. One can add bookmarks for this area, if not null
-
bookmarks
private BookmarkList bookmarks
the list of bookmarks
-
parent
private DownloadDialog parent
the parent download GUI
-
lblCurrentDownloadArea
private final JMultilineLabel lblCurrentDownloadArea
displays information about the current download area
-
bboxDisplay
private final JosmTextArea bboxDisplay
-
actAdd
private final BookmarkSelection.AddAction actAdd
the add action
-
-
Constructor Detail
-
BookmarkSelection
public BookmarkSelection()
-
-
Method Detail
-
buildButtonPanel
protected javax.swing.JPanel buildButtonPanel()
Creates the panel with the action buttons on the left- Returns:
- the panel with the action buttons on the left
-
buildDownloadAreaAddPanel
protected javax.swing.JPanel buildDownloadAreaAddPanel()
-
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
-
updateDownloadAreaLabel
protected void updateDownloadAreaLabel()
-
setDownloadArea
public void setDownloadArea(Bounds area)
Sets the current download area- Specified by:
setDownloadArea
in interfaceDownloadSelection
- Parameters:
area
- the download area.
-
-