Class BookmarkListFactory

java.lang.Object
com.levigo.jadice.web.client.bookmark.BookmarkListFactory

public class BookmarkListFactory extends Object
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 Details

    • BookmarkListFactory

      public BookmarkListFactory()
  • Method Details

    • getBookmarkList

      public static BookmarkList getBookmarkList(Document document)
      Retrieves the BookmarkList 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 new BookmarkList will be created and added to the document properties.

      Parameters:
      document - the document
      Returns:
      the found/created BookmarkList