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

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( String surl, org.autoplot.bookmarks.Bookmark selectedBookmark ) → void

getList

getList( ) → 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( ) → 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

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]