org.openstreetmap.josm.gui.download
Class BookmarkSelection

java.lang.Object
  extended by 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
(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.RemoveAction
           
(package private)  class BookmarkSelection.RenameAction
           
 
Field Summary
private  BookmarkSelection.AddAction actAdd
          the add action
private  javax.swing.JTextArea bboxDisplay
           
private  BookmarkList bookmarks
          the list of bookmarks
private  Bounds currentArea
          the currently selected download area.
private  JMultilineLabel lblCurrentDownloadArea
          displays information about the current download area
private  DownloadDialog parent
          the parent download GUI
 
Constructor Summary
BookmarkSelection()
           
 
Method Summary
 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 left
protected  javax.swing.JPanel buildDownloadAreaAddPanel()
           
 void setDownloadArea(Bounds area)
          Sets the current download area
protected  void updateDownloadAreaLabel()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 JMultilineLabel lblCurrentDownloadArea
displays information about the current download area


bboxDisplay

private final javax.swing.JTextArea bboxDisplay

actAdd

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

updateDownloadAreaLabel

protected void updateDownloadAreaLabel()

setDownloadArea

public void setDownloadArea(Bounds area)
Sets the current download area

Specified by:
setDownloadArea in interface DownloadSelection
Parameters:
area - the download area.


JOSM