|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tcat.citd.sim.udig.bookmarks.BookmarkManager
public class BookmarkManager
This class provides a bookmark repository and associated management functions.
Constructor Summary | |
---|---|
BookmarkManager()
|
Method Summary | |
---|---|
void |
addBookmark(Bookmark bookmark)
Add the given bookmark. |
void |
empty()
Empties the list of bookmarks |
java.util.Collection<Bookmark> |
getBookmarks(MapReference map)
Return the list of bookmarks associated with the specified map |
MapReference |
getMapReference(IMap map)
|
java.util.Collection<MapReference> |
getMaps(URI project)
Returns the list of maps which are contained in the specified project |
java.lang.String |
getName()
Get the name of this bookmark manager for display It's just a static string for now |
java.util.Collection<URI> |
getProjects()
Returns the list of projects as an array of objects |
boolean |
isEmpty()
Returns whether the list is empty |
void |
removeBookmark(Bookmark bookmark)
Remove the given bookmark. |
void |
removeBookmarks(java.util.Collection elements)
Remove all of the bookmarks in the given list. |
void |
removeMap(MapReference map)
Remove the map and all it's associated bookmarks |
void |
removeMaps(java.util.Collection elements)
Remove all of the maps in the given list and their associated bookmarks. |
void |
removeProject(URI project)
Remove the project and all it's associated maps and bookmarks |
void |
removeProjects(java.util.Collection elements)
Remove all of the projects in the given list and their associated maps and bookmarks. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BookmarkManager()
Method Detail |
---|
public void addBookmark(Bookmark bookmark)
bookmark
- public void empty()
public boolean isEmpty()
public java.util.Collection<URI> getProjects()
public java.util.Collection<MapReference> getMaps(URI project)
project
- The project for which the maps will be returned
public java.util.Collection<Bookmark> getBookmarks(MapReference map)
map
- The map for which the bookmarks will be returned
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public void removeBookmark(Bookmark bookmark)
bookmark
- public void removeBookmarks(java.util.Collection elements)
elements
- public void removeMap(MapReference map)
map
- public void removeMaps(java.util.Collection elements)
elements
- public void removeProject(URI project)
project
- public void removeProjects(java.util.Collection elements)
elements
- public MapReference getMapReference(IMap map)
map
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |