public class BookmarkDecorationTool extends DecorationTool implements DecorationRenderer, BookmarkStoreListener
Page
s with a bookmark symbol to indicate whether the
page has Bookmark
s in the referenced BookmarkStore
.Tool.ActivationRequest
DEFAULT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
BookmarkDecorationTool()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
bookmarksChanged(BookmarkStoreEvent event)
Whenever the set of
Bookmark s is modified in a BookmarkStore , registered
BookmarkStoreListener will be informed by a call of this method. |
<T extends BasicRenderParameters> |
decorate(T parameters)
A call of this method request a rendered decoration.
|
BookmarkStore |
getBookmarkStore()
Return the associated
BookmarkStore . |
void |
setBookmarkStore(BookmarkStore bookmarkStore)
Changes the associated
BookmarkStore . |
getRenderer, render, setRenderer
contribute, getActivationFeedback, getActivationRequest, getActivationRequestForKeyPressed, getActivationRequestForMouseDragged, getActivationRequestForMousePressed, getCursor, getDispatchPriority, getManager, getRenderPriority, handleEditEvent, handleKeyPressed, handleKeyReleased, handleKeyTyped, handleMouseClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseMoved, handleMousePressed, handleMouseReleased, handleMouseWheelMoved, propagatePropertyChange, setActive, setCursor, setEnabled, setManager, setStatusFeedback
public void bookmarksChanged(BookmarkStoreEvent event)
BookmarkStoreListener
Bookmark
s is modified in a BookmarkStore
, registered
BookmarkStoreListener
will be informed by a call of this method.bookmarksChanged
in interface BookmarkStoreListener
event
- Describes the happened bookmark changepublic <T extends BasicRenderParameters> void decorate(T parameters)
DecorationRenderer
decorate
in interface DecorationRenderer
parameters
- render parameterspublic BookmarkStore getBookmarkStore()
BookmarkStore
. This store will be asked, whether a Page
has Bookmark
s and should be decorated.BookmarkStore
public void setBookmarkStore(BookmarkStore bookmarkStore)
BookmarkStore
. This store will be asked, whether a Page
has Bookmark
s and should be decorated.bookmarkStore
- the store to be used by this decoration toolCopyright © 2024 levigo holding gmbh. All rights reserved.