|
Gridarta 9263 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.gridarta.gui.dialog.bookmarks.BookmarkActions<G,A,R>
public class BookmarkActions<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
Implements actions for managing bookmarks.
Field Summary | |
---|---|
private Action |
aAddBookmark
The Action for "add bookmark". |
private static net.sf.japi.swing.action.ActionBuilder |
ACTION_BUILDER
The ActionBuilder instance. |
private AbstractMapMenuPreferences |
bookmarksMapMenuPreferences
The AbstractMapMenuPreferences for adding new bookmarks. |
private ManageBookmarksDialog<G,A,R> |
manageBookmarksDialog
The ManageBookmarksDialog instance. |
private MapImageCache<G,A,R> |
mapImageCache
The MapImageCache for creating map previews. |
private MapMenu |
mapMenu
The MapMenu defining the bookmarks menu entries. |
private MapViewManager<G,A,R> |
mapViewManager
The MapViewManager instance. |
private Component |
parentComponent
The parent component for dialogs. |
Constructor Summary | |
---|---|
BookmarkActions(AbstractMapMenuPreferences bookmarksMapMenuPreferences,
MapMenu mapMenu,
MapViewManager<G,A,R> mapViewManager,
Component parentComponent,
MapImageCache<G,A,R> mapImageCache)
Creates a new instance. |
Method Summary | |
---|---|
void |
addBookmark()
Action method for "addBookmark". |
private boolean |
doAddBookmark(boolean performAction)
Preforms the action "add bookmark". |
void |
manageBookmarks()
Action method for "manage bookmarks". |
private void |
updateActions()
Updates the enabled state of all actions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@NotNull private static final net.sf.japi.swing.action.ActionBuilder ACTION_BUILDER
ActionBuilder
instance.
@NotNull private final AbstractMapMenuPreferences bookmarksMapMenuPreferences
AbstractMapMenuPreferences
for adding new bookmarks.
@NotNull private final MapMenu mapMenu
MapMenu
defining the bookmarks menu entries.
@NotNull private final MapImageCache<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> mapImageCache
MapImageCache
for creating map previews.
@NotNull private final MapViewManager<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> mapViewManager
MapViewManager
instance.
@NotNull private final Component parentComponent
@NotNull private final Action aAddBookmark
Action
for "add bookmark".
@Nullable private ManageBookmarksDialog<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> manageBookmarksDialog
ManageBookmarksDialog
instance. Set to null
if
not yet created.
Constructor Detail |
---|
public BookmarkActions(@NotNull AbstractMapMenuPreferences bookmarksMapMenuPreferences, @NotNull MapMenu mapMenu, @NotNull MapViewManager<G,A,R> mapViewManager, @NotNull Component parentComponent, @NotNull MapImageCache<G,A,R> mapImageCache)
bookmarksMapMenuPreferences
- the map menu preferences defining the
bookmarks menu entriesmapMenu
- the map menu definition the bookmarks menu entriesmapViewManager
- the map view manager instanceparentComponent
- the parent component for dialogsmapImageCache
- the map image cache for creating map previewsMethod Detail |
---|
@ActionMethod public void addBookmark()
@ActionMethod public void manageBookmarks()
private void updateActions()
private boolean doAddBookmark(boolean performAction)
performAction
- whether the action should be performed
|
Gridarta 9263 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
© 2003-2010 The Gridarta Developers. All rights reserved.