com.dlsc.flexgantt.model.bookmarks
Class BookmarkEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.dlsc.flexgantt.model.bookmarks.BookmarkEvent
All Implemented Interfaces:
java.io.Serializable

public class BookmarkEvent
extends java.util.EventObject

An event object that is being sent to instances of IBookmarkModelListener whenever a change has occured in the IBookmarkModel instance that they observe.

Since:
1.0
Author:
Dirk Lemmermann
See Also:
Serialized Form

Nested Class Summary
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.
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BookmarkEvent(IBookmarkModel model, BookmarkEvent.ID id, Bookmark bookmark)
          Constructs a new event.
 
Method Summary
 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.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BookmarkEvent

public BookmarkEvent(IBookmarkModel model,
                     BookmarkEvent.ID id,
                     Bookmark bookmark)
Constructs a new event.

Parameters:
model - the source of the event, the model that was changed
id - the event ID used for distinguishing different types of events
bookmark - the bookmark that was added, removed, or changed
Since:
1.0
Method Detail

getModel

public IBookmarkModel getModel()
Returns the bookmark model that was the source of the change being described by the event.

Returns:
the source paging model
Since:
1.0

getId

public 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.

Returns:
the event ID
Since:
1.0

getBookmark

public Bookmark getBookmark()
Returns the bookmark that was added or removed.

Returns:
the modified bookmark
Since:
1.0