Class BookmarkListFactory
java.lang.Object
com.levigo.jadice.web.client.bookmark.BookmarkListFactory
Factory to create client side
BookmarkList
s 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 BookmarkList
getBookmarkList
(Document document) Retrieves theBookmarkList
for the given document.static void
setLogger
(com.jadice.web.util.log.client.Logger logger) Deprecated.only to be used by tests
-
Constructor Details
-
BookmarkListFactory
public BookmarkListFactory()
-
-
Method Details
-
getBookmarkList
Retrieves theBookmarkList
for 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 newBookmarkList
will 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
-