org.autoplot.bookmarks.BookmarksManagerModel
Internal model for managing a set of bookmarks.
BookmarksManagerModel( )
PROP_LIST
PROP_BOOKMARK
the contents of a bookmark changed, like the title or URL.
addPropertyChangeListener
addPropertyChangeListener( java.beans.PropertyChangeListener listener ) → void
Parameters
listener - a PropertyChangeListener
Returns:
void (returns nothing)
[search for examples]
 [view on GitHub]
 [view on old javadoc]
addPropertyChangeListener( String propertyName, java.beans.PropertyChangeListener listener ) → void  [view source]
addRemoteBookmarks
addRemoteBookmarks( String surl ) → void
add the bookmarks in the remote URL to the list.
Parameters
surl - a String
Returns:
void (returns nothing)
[search for examples]
 [view on GitHub]
 [view on old javadoc]
addRemoteBookmarks
addRemoteBookmarks( String surl, org.autoplot.bookmarks.Bookmark selectedBookmark ) → void
add the remote bookmarks.  An ordinary bookmarks file downloaded from
 a website can be tacked on to a user's existing bookmarks, and updates
 to the file will be visible on the client's bookmark list.
Parameters
surl - a String
selectedBookmark - location to add the bookmark, can be null.
Returns:
void (returns nothing)
[search for examples]
 [view on GitHub]
 [view on old javadoc]
getList
getList(  ) → java.util.List
get the bookmarks as a list.  This is a mutable copy of the internal list.
Returns:
the list of bookmarks.
[search for examples]
 [view on GitHub]
 [view on old javadoc]
getTreeModel
getTreeModel(  ) → javax.swing.tree.TreeModel
get a TreeModel of the internal model, so GUIs can show the state.
Returns:
a TreeModel.
[search for examples]
 [view on GitHub]
 [view on old javadoc]
importList
importList( java.util.List books ) → void
merge the given list into the list.
Parameters
books - a java.util.List
Returns:
void (returns nothing)
[search for examples]
 [view on GitHub]
 [view on old javadoc]
mergeList
mergeList( java.util.List src, java.util.List dest ) → void
merge in the bookmarks.  Items with the same title are repeated, and
 folders with the same name are merged.  When merging in a remote folder,
 the entire folder is replaced.
Parameters
src - the items to merge in
dest - the list to update.
Returns:
void (returns nothing)
[search for examples]
 [view on GitHub]
 [view on old javadoc]
removePropertyChangeListener
removePropertyChangeListener( String propertyName, java.beans.PropertyChangeListener listener ) → void
Parameters
propertyName - a String
listener - a PropertyChangeListener
Returns:
void (returns nothing)
[search for examples]
 [view on GitHub]
 [view on old javadoc]
removePropertyChangeListener( java.beans.PropertyChangeListener listener ) → void  [view source]
setList
setList( java.util.List list ) → void
set the bookmarks list.  This is used as the internal list, without making a copy.
Parameters
list - list of bookmarks.
Returns:
void (returns nothing)
[search for examples]
 [view on GitHub]
 [view on old javadoc]