com.dlsc.flexgantt.model.bookmarks

## Class BookmarkEvent

- java.lang.Object
- - java.util.EventObject
  - - com.dlsc.flexgantt.model.bookmarks.BookmarkEvent

- All Implemented Interfaces:
    Serializable

      public class BookmarkEvent
      extends 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
  Version:
    $Revision: 1.8 $
  Author:
    Dirk Lemmermann
  See Also:
    Serialized Form

- - ### Nested Class Summary

    Nested Classes
    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.

  - ### Field Summary

    - ### Fields inherited from class java.util.EventObject

      `source`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `BookmarkEvent(IBookmarkModel model, BookmarkEvent.ID id, Bookmark bookmark)` Constructs a new event.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    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.

    - ### 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

Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.