public class BookmarkEvent extends EventObject
IBookmarkModelListener
whenever a change has occured in the
IBookmarkModel
instance that they observe.Modifier and Type | Class and Description |
---|---|
static class |
BookmarkEvent.ID
An enumerator with event IDs that can be used by model listeners to
distinguish between different types of events that have occured inside a
bookmark model.
|
source
Constructor and Description |
---|
BookmarkEvent(IBookmarkModel model,
BookmarkEvent.ID id,
Bookmark bookmark)
Constructs a new event.
|
Modifier and Type | Method and Description |
---|---|
Bookmark |
getBookmark()
Returns the bookmark that was added or removed.
|
BookmarkEvent.ID |
getId()
Returns the ID of the event that can be used to distinguish different
types of events that can take place inside a bookmark model.
|
IBookmarkModel |
getModel()
Returns the bookmark model that was the source of the change being
described by the event.
|
getSource, toString
public BookmarkEvent(IBookmarkModel model, BookmarkEvent.ID id, Bookmark bookmark)
model
- the source of the event, the model that was changedid
- the event ID used for distinguishing different types of eventsbookmark
- the bookmark that was added, removed, or changedpublic IBookmarkModel getModel()
public BookmarkEvent.ID getId()
public Bookmark getBookmark()
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.