Class SerializableBookmarkList
java.lang.Object
com.levigo.jadice.web.shared.model.bookmark.SerializableBookmarkList
A serializable representation of a
BookmarkList
intended to be used on the server side.
Serves as a container for SerializableBookmark
s.
When invoking the operation to send the bookmarks from the client to the server, all bookmarks are contained in a
SerializableBookmarkList
. The SerializableBookmarkList
can be retrieved from the
corresponding document as a document property with a key of
"SerializableBookmarkList". Use it in your server
operation implementation to e.g. persist bookmarks in a third party system.
Use it in your DocumentDataProvider
to attach persisted bookmarks while loading a
document. The bookmarks will be added automatically on the client side.
For further details and code examples take a look at https://webtoolkit.jadice.com/showcase.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(SerializableBookmark serializableBookmark) Adds the givenSerializableBookmark
to the listgetAll()
Returns a list containing all the bookmarks in the list.void
remove
(SerializableBookmark serializableBookmark) Removes the given bookmark from the list
-
Field Details
-
PROPERTY_KEY_SERIALIZABLE_BOOKMARK_LIST
- See Also:
-
-
Constructor Details
-
SerializableBookmarkList
public SerializableBookmarkList()Constructs a new empty list.May only be called on the server side in
DocumentDataProvider
s.
-
-
Method Details
-
getAll
Returns a list containing all the bookmarks in the list. The returned list should only be used for read operations. Modifications can be made with theadd(SerializableBookmark)
andremove(SerializableBookmark)
methods.