Class BookmarkListFactory
java.lang.Object
com.levigo.jadice.web.client.bookmark.BookmarkListFactory
Factory to create client side
BookmarkLists for documents.
May only be used on the client side. Use
SerializableBookmarkList() to create a bookmark list on the
server side.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BookmarkListgetBookmarkList(Document document) Retrieves theBookmarkListfor the given document.static voidsetLogger(com.jadice.web.util.log.client.Logger logger) Deprecated.only to be used by tests
-
Constructor Details
-
BookmarkListFactory
public BookmarkListFactory()
-
-
Method Details
-
getBookmarkList
Retrieves theBookmarkListfor the given document.First, an attempt is made to read an existing list from the document properties. If there is a list, that list will be returned.
If no list is present in the properties, a newBookmarkListwill be created and added to the document properties.- Parameters:
document- the document- Returns:
- the found/created
BookmarkList
-
setLogger
Deprecated.only to be used by tests
-