Gridarta Editor
ManageBookmarksDialog.java
Go to the documentation of this file.
1 /*
2  * Gridarta MMORPG map editor for Crossfire, Daimonin and similar games.
3  * Copyright (C) 2000-2023 The Gridarta Developers.
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 package net.sf.gridarta.gui.dialog.bookmarks;
21 
22 import java.awt.Component;
23 import java.awt.Dimension;
24 import java.awt.GridBagConstraints;
25 import java.awt.GridBagLayout;
26 import java.awt.dnd.DnDConstants;
27 import javax.swing.Action;
28 import javax.swing.Icon;
29 import javax.swing.JButton;
30 import javax.swing.JDialog;
31 import javax.swing.JLabel;
32 import javax.swing.JOptionPane;
33 import javax.swing.JPanel;
34 import javax.swing.JScrollPane;
35 import javax.swing.JTree;
36 import javax.swing.JViewport;
37 import javax.swing.ScrollPaneConstants;
38 import javax.swing.SwingConstants;
39 import javax.swing.WindowConstants;
40 import javax.swing.event.TreeSelectionListener;
41 import javax.swing.tree.DefaultMutableTreeNode;
42 import javax.swing.tree.TreePath;
43 import javax.swing.tree.TreeSelectionModel;
59 import net.sf.japi.swing.action.ActionBuilder;
60 import net.sf.japi.swing.action.ActionBuilderFactory;
61 import net.sf.japi.swing.action.ActionMethod;
62 import org.jetbrains.annotations.NotNull;
63 import org.jetbrains.annotations.Nullable;
64 
69 public class ManageBookmarksDialog<G extends GameObject<G, A, R>, A extends MapArchObject<A>, R extends Archetype<G, A, R>> extends JOptionPane {
70 
74  private static final long serialVersionUID = 1L;
75 
79  @NotNull
80  private static final ActionBuilder ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta");
81 
85  @NotNull
87 
91  @NotNull
92  private final MapMenu mapMenu;
93 
97  @NotNull
99 
104  @NotNull
105  private final JTree bookmarksTree;
106 
111  @NotNull
112  private final JLabel preview = new JLabel();
113 
118  @NotNull
119  private final JDialog dialog;
120 
125  @NotNull
126  private final Action editAction = ACTION_BUILDER.createAction(false, "manageBookmarksEdit", this);
127 
132  @NotNull
133  private final Action removeAction = ACTION_BUILDER.createAction(false, "manageBookmarksRemove", this);
134 
139  @NotNull
140  private final Action unDeleteAction = ACTION_BUILDER.createAction(false, "manageBookmarksUnDelete", this);
141 
146  @NotNull
147  private final Action newDirectoryAction = ACTION_BUILDER.createAction(false, "manageBookmarksNewDirectory", this);
148 
153  @NotNull
154  private final JButton closeButton = new JButton(ACTION_BUILDER.createAction(false, "manageBookmarksClose", this));
155 
160  @Nullable
161  private TreePath selectedTreePath;
162 
169  public ManageBookmarksDialog(@NotNull final Component parentComponent, @NotNull final MapImageCache<G, A, R> mapImageCache, @NotNull final MapMenu mapMenu) {
170  this.mapImageCache = mapImageCache;
171  this.mapMenu = mapMenu;
174  //noinspection ResultOfObjectAllocationIgnored
175  new TreeDragSource(bookmarksTree, DnDConstants.ACTION_COPY_OR_MOVE);
176  //noinspection ResultOfObjectAllocationIgnored
178  final JButton editButton = new JButton(editAction);
179  final JButton removeButton = new JButton(removeAction);
180  final JButton unDeleteButton = new JButton(unDeleteAction);
181  final JButton newDirectoryButton = new JButton(newDirectoryAction);
182  setOptions(new Object[] { editButton, removeButton, unDeleteButton, newDirectoryButton, closeButton });
183 
184  setMessage(createPanel());
185 
186  dialog = createDialog(parentComponent, ActionBuilderUtils.getString(ACTION_BUILDER, "manageBookmarks.title"));
187  dialog.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
188  dialog.setModal(false);
189  dialog.setResizable(true);
190  dialog.pack();
191  }
192 
197  public void showDialog(@NotNull final Component parentComponent) {
198  setInitialValue(bookmarksTree);
199  bookmarksTree.setRootVisible(false);
200  bookmarksTree.setSelectionRow(0);
201  dialog.setLocationRelativeTo(parentComponent);
202  dialog.setMinimumSize(new Dimension(600, 300));
203  dialog.setPreferredSize(new Dimension(800, 600));
204  dialog.setVisible(true);
205  dialog.toFront();
206  }
207 
212  @NotNull
213  private JPanel createPanel() {
214  preview.setHorizontalAlignment(SwingConstants.CENTER);
215  preview.setPreferredSize(new Dimension(200, 200));
216 
217  final JPanel mainPanel = new JPanel(new GridBagLayout());
218 
219  mainPanel.setBorder(GUIConstants.DIALOG_BORDER);
220 
221  final JScrollPane bookmarksScrollPane = new JScrollPane();
222  bookmarksScrollPane.setViewportView(bookmarksTree);
223  bookmarksScrollPane.setBackground(bookmarksTree.getBackground());
224  bookmarksScrollPane.getViewport().add(bookmarksTree);
225  bookmarksScrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
226  bookmarksScrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);
227  bookmarksScrollPane.getViewport().setScrollMode(JViewport.SIMPLE_SCROLL_MODE);
228 
229  final GridBagConstraints gbc = new GridBagConstraints();
230  gbc.fill = GridBagConstraints.BOTH;
231  gbc.weightx = 1.0;
232  gbc.weighty = 1.0;
233  gbc.gridx = 0;
234  gbc.gridy = 0;
235  mainPanel.add(bookmarksScrollPane, gbc);
236 
237  gbc.weightx = 0.0;
238  gbc.gridx = 1;
239  mainPanel.add(preview, gbc);
240 
241  bookmarksTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
243 
244  final TreeSelectionListener treeSelectionListener = e -> updateSelectedBookmark();
245  bookmarksTree.addTreeSelectionListener(treeSelectionListener);
247 
248  return mainPanel;
249  }
250 
254  private void updateSelectedBookmark() {
255  selectedTreePath = bookmarksTree.getSelectionPath();
256  updateActions();
257  }
258 
262  @ActionMethod
263  public void manageBookmarksEdit() {
264  doEditBookmark(true);
265  }
266 
270  @ActionMethod
271  public void manageBookmarksRemove() {
272  doRemoveBookmark(true);
273  }
274 
278  @ActionMethod
279  public void manageBookmarksUnDelete() {
280  doUnDeleteBookmark(true);
281  }
282 
286  @ActionMethod
288  doNewDirectory(true);
289  }
290 
294  @ActionMethod
295  public void manageBookmarksClose() {
297  }
298 
299  @Override
300  public void setValue(@Nullable final Object newValue) {
301  super.setValue(newValue);
302  if (newValue != UNINITIALIZED_VALUE) {
303  mapMenu.save();
304  }
305  }
306 
312  private boolean doEditBookmark(final boolean performAction) {
313  final TreePath tmpSelectedTreePath = selectedTreePath;
314  if (tmpSelectedTreePath == null) {
315  return false;
316  }
317 
318  final DefaultMutableTreeNode selectedTreeNode = (DefaultMutableTreeNode) tmpSelectedTreePath.getLastPathComponent();
319  if (selectedTreeNode == mapMenu.getRoot()) {
320  return false;
321  }
322 
323  if (performAction) {
324  final DefaultMutableTreeNode tmpSelectedTreeNode = (DefaultMutableTreeNode) tmpSelectedTreePath.getLastPathComponent();
325  final MapMenuEntryVisitor mapMenuEntryVisitor = new MapMenuEntryVisitor() {
326 
327  @Override
328  public void visit(@NotNull final MapMenuEntryDir mapMenuEntry) {
329  final BookmarkDirectoryDialog bookmarkDirectoryDialog = new BookmarkDirectoryDialog(ManageBookmarksDialog.this, mapMenuEntry.getTitle());
330  if (bookmarkDirectoryDialog.showDialog()) {
331  mapMenuEntry.setTitle(bookmarkDirectoryDialog.getDirectory());
332  bookmarksTree.getModel().valueForPathChanged(tmpSelectedTreePath, mapMenuEntry);
333  }
334  }
335 
336  @Override
337  public void visit(@NotNull final MapMenuEntryMap mapMenuEntry) {
338  final EditBookmarkDialog editBookmarkDialog = new EditBookmarkDialog(ManageBookmarksDialog.this, mapMenuEntry.getTitle());
339  if (editBookmarkDialog.showDialog()) {
340  mapMenuEntry.setTitle(editBookmarkDialog.getDescription());
341  bookmarksTree.getModel().valueForPathChanged(tmpSelectedTreePath, mapMenuEntry);
342  }
343  }
344 
345  };
346  ((MapMenuEntry) tmpSelectedTreeNode.getUserObject()).visit(mapMenuEntryVisitor);
347  }
348 
349  return true;
350  }
351 
357  private boolean doRemoveBookmark(final boolean performAction) {
358  final TreePath tmpSelectedTreePath = selectedTreePath;
359  if (tmpSelectedTreePath == null) {
360  return false;
361  }
362 
363  final DefaultMutableTreeNode selectedTreeNode = (DefaultMutableTreeNode) tmpSelectedTreePath.getLastPathComponent();
364  if (selectedTreeNode == mapMenu.getRoot()) {
365  return false;
366  }
367 
368  if (performAction) {
369  final int[] selectionRows = bookmarksTree.getSelectionRows();
370  mapMenu.removeNode(selectedTreeNode);
371  final int index = selectionRows == null ? 0 : selectionRows[0];
372  if (index > 0) {
373  bookmarksTree.setSelectionRow(index - 1);
374  }
375  }
376 
377  return true;
378  }
379 
385  private boolean doUnDeleteBookmark(final boolean performAction) {
386  final DeletedNode deletedNode = mapMenu.getDeletedNode(performAction);
387  if (deletedNode == null) {
388  return false;
389  }
390 
391  if (performAction) {
392  final TreePath treePath = mapMenu.addMapMenuEntry(deletedNode.getDirectory(), deletedNode.getTreeNode());
393  bookmarksTree.setSelectionPath(treePath);
394  }
395 
396  return true;
397  }
398 
404  private boolean doNewDirectory(final boolean performAction) {
405  final TreePath tmpSelectedTreePath = selectedTreePath;
406  if (tmpSelectedTreePath == null) {
407  return false;
408  }
409 
410  if (performAction) {
411  final DefaultMutableTreeNode selectedTreeNode = (DefaultMutableTreeNode) tmpSelectedTreePath.getLastPathComponent();
412  final BookmarkDirectoryDialog bookmarkDirectoryDialog = new BookmarkDirectoryDialog(this, "");
413  if (bookmarkDirectoryDialog.showDialog()) {
414  final String directory = bookmarkDirectoryDialog.getDirectory();
415  final MapMenuEntry mapEntry = new MapMenuEntryDir(directory);
416  final DefaultMutableTreeNode parent;
417  final int index;
418  if (selectedTreeNode == mapMenu.getRoot()) {
419  parent = selectedTreeNode;
420  index = 0;
421  } else {
422  parent = (DefaultMutableTreeNode) selectedTreeNode.getParent();
423  assert parent != null;
424  index = parent.getIndex(selectedTreeNode) + 1;
425  assert index != 0;
426  }
427  final TreePath treePath = mapMenu.insertNodeInto(mapEntry, parent, index);
428  bookmarksTree.setSelectionPath(treePath);
429 
430  }
431  }
432 
433  return true;
434  }
435 
439  private void updateActions() {
440  editAction.setEnabled(doEditBookmark(false));
441  removeAction.setEnabled(doRemoveBookmark(false));
442  unDeleteAction.setEnabled(doUnDeleteBookmark(false));
443  newDirectoryAction.setEnabled(doNewDirectory(false));
444  @Nullable final Icon previewIcon;
445  if (selectedTreePath == null) {
446  previewIcon = null;
447  } else {
448  final DefaultMutableTreeNode tmpSelectedTreeNode = (DefaultMutableTreeNode) selectedTreePath.getLastPathComponent();
449  final MapMenuEntry mapMenuEntry = (MapMenuEntry) tmpSelectedTreeNode.getUserObject();
450  previewIcon = mapMenuEntryIcons.getIcon(mapMenuEntry);
451  }
452  preview.setIcon(previewIcon);
453  }
454 
455 }
net.sf.gridarta.gui.mapimagecache
Definition: ImageType.java:20
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.preview
final JLabel preview
Definition: ManageBookmarksDialog.java:112
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.manageBookmarksClose
void manageBookmarksClose()
Definition: ManageBookmarksDialog.java:295
net.sf.gridarta.gui.mapmenu.MapMenuEntry
Definition: MapMenuEntry.java:29
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.manageBookmarksEdit
void manageBookmarksEdit()
Definition: ManageBookmarksDialog.java:263
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.doRemoveBookmark
boolean doRemoveBookmark(final boolean performAction)
Definition: ManageBookmarksDialog.java:357
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.closeButton
final JButton closeButton
Definition: ManageBookmarksDialog.java:154
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.showDialog
void showDialog(@NotNull final Component parentComponent)
Definition: ManageBookmarksDialog.java:197
net.sf.gridarta
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.ManageBookmarksDialog
ManageBookmarksDialog(@NotNull final Component parentComponent, @NotNull final MapImageCache< G, A, R > mapImageCache, @NotNull final MapMenu mapMenu)
Definition: ManageBookmarksDialog.java:169
net.sf.gridarta.model.maparchobject.MapArchObject
Definition: MapArchObject.java:40
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.mapMenu
final MapMenu mapMenu
Definition: ManageBookmarksDialog.java:92
net.sf.gridarta.gui.dialog.bookmarks.EditBookmarkDialog.getDescription
String getDescription()
Definition: EditBookmarkDialog.java:181
net.sf.gridarta.gui.mapmenu.MapMenuEntryMap
Definition: MapMenuEntryMap.java:29
net.sf
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.mapImageCache
final MapImageCache< G, A, R > mapImageCache
Definition: ManageBookmarksDialog.java:86
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.serialVersionUID
static final long serialVersionUID
Definition: ManageBookmarksDialog.java:74
net.sf.gridarta.gui.mapmenu.MapMenu.DeletedNode
Definition: MapMenu.java:398
net.sf.gridarta.model.archetype
Definition: AbstractArchetype.java:20
net.sf.gridarta.gui.mapmenu.MapMenu.getDeletedNode
DeletedNode getDeletedNode(final boolean delete)
Definition: MapMenu.java:342
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.doNewDirectory
boolean doNewDirectory(final boolean performAction)
Definition: ManageBookmarksDialog.java:404
net.sf.gridarta.gui.dialog.bookmarks.BookmarkDirectoryDialog.getDirectory
String getDirectory()
Definition: BookmarkDirectoryDialog.java:182
net.sf.gridarta.gui
net.sf.gridarta.model.gameobject.GameObject
Definition: GameObject.java:36
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.doEditBookmark
boolean doEditBookmark(final boolean performAction)
Definition: ManageBookmarksDialog.java:312
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.removeAction
final Action removeAction
Definition: ManageBookmarksDialog.java:133
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.setValue
void setValue(@Nullable final Object newValue)
Definition: ManageBookmarksDialog.java:300
net.sf.gridarta.gui.mapmenu.TreeDropTarget
Definition: TreeDropTarget.java:46
net.sf.gridarta.gui.dialog.bookmarks.BookmarkDirectoryDialog
Definition: BookmarkDirectoryDialog.java:47
net.sf.gridarta.model.gameobject
Definition: AbstractGameObject.java:20
net
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.updateActions
void updateActions()
Definition: ManageBookmarksDialog.java:439
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.dialog
final JDialog dialog
Definition: ManageBookmarksDialog.java:119
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.manageBookmarksNewDirectory
void manageBookmarksNewDirectory()
Definition: ManageBookmarksDialog.java:287
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.selectedTreePath
TreePath selectedTreePath
Definition: ManageBookmarksDialog.java:161
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.ACTION_BUILDER
static final ActionBuilder ACTION_BUILDER
Definition: ManageBookmarksDialog.java:80
net.sf.gridarta.gui.dialog.bookmarks.EditBookmarkDialog
Definition: EditBookmarkDialog.java:46
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.manageBookmarksRemove
void manageBookmarksRemove()
Definition: ManageBookmarksDialog.java:271
net.sf.gridarta.gui.mapmenu.TreeDragSource
Definition: TreeDragSource.java:41
net.sf.gridarta.gui.utils.GUIConstants.DIALOG_BORDER
Border DIALOG_BORDER
Definition: GUIConstants.java:38
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.doUnDeleteBookmark
boolean doUnDeleteBookmark(final boolean performAction)
Definition: ManageBookmarksDialog.java:385
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.manageBookmarksUnDelete
void manageBookmarksUnDelete()
Definition: ManageBookmarksDialog.java:279
directory
This document describes some hints and requirements for general development on the CrossfireEditor If you plan to make changes to the editor code or setup please read the following and keep it in derived from a basic editor application called Gridder by Pasi Ker�nen so please communicate with best through the cf devel mailing before considering any fundamental changes About code DO NOT USE TABS No matter what Java development platform you are please configure insert indent Tabs are displayed totally different in every editor and there are millions of different editors out there The insertion of tabs in the source code is messing up the syntax formatting in a way that is UNREPAIRABLE Apart from please keep code indentation accurate This is not just good it helps to keep code readable and in that way dramatically decreases the chance for overlooked bugs Everyone is welcomed to correct indentation errors wherever they are spotted Before you start to do this please double check that your editor is really configured to insert spaces Line feeds may be checked in either in windows or in unix linux style All reasonable text and java editors can deal with both linefeed formats Converting line feeds is but in this case please make sure that only linefeed characters are changed and nothing else is affected Due to the platform independent nature of the editor has the potential to run on almost any given operating system the build process differs greatly between systems as well as java environments In the several people have attempted to add build scripts along with structural changes to optimize the setup on one particular system environment which has led to conflict Please do *not *attempt to change the structure or any directories for the mere purpose of improving a build process or performance in a java environment Build scripts may be placed in the root directory
Definition: Developer_README.txt:45
net.sf.gridarta.gui.mapmenu
Definition: AbstractMapMenuPreferences.java:20
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.newDirectoryAction
final Action newDirectoryAction
Definition: ManageBookmarksDialog.java:147
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.bookmarksTree
final JTree bookmarksTree
Definition: ManageBookmarksDialog.java:105
net.sf.gridarta.gui.mapmenu.MapMenuEntryVisitor
Definition: MapMenuEntryVisitor.java:28
net.sf.gridarta.gui.mapmenu.MapMenu
Definition: MapMenu.java:46
net.sf.gridarta.gui.dialog.bookmarks.MapMenuEntryIcons.getIcon
Icon getIcon(@NotNull final MapMenuEntry mapMenuEntry)
Definition: MapMenuEntryIcons.java:64
net.sf.gridarta.gui.dialog.bookmarks.EditBookmarkDialog.showDialog
boolean showDialog()
Definition: EditBookmarkDialog.java:133
net.sf.gridarta.utils.ActionBuilderUtils.getString
static String getString(@NotNull final ActionBuilder actionBuilder, @NotNull final String key, @NotNull final String defaultValue)
Definition: ActionBuilderUtils.java:71
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.unDeleteAction
final Action unDeleteAction
Definition: ManageBookmarksDialog.java:140
net.sf.gridarta.model
net.sf.gridarta.gui.mapmenu.MapMenuEntryTreeCellRenderer
Definition: MapMenuEntryTreeCellRenderer.java:37
net.sf.gridarta.gui.dialog.bookmarks.MapMenuEntryIcons
Definition: MapMenuEntryIcons.java:36
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog
Definition: ManageBookmarksDialog.java:69
net.sf.gridarta.gui.mapmenu.MapMenu.removeNode
void removeNode(@NotNull final DefaultMutableTreeNode treeNode)
Definition: MapMenu.java:294
net.sf.gridarta.model.maparchobject
Definition: AbstractMapArchObject.java:20
net.sf.gridarta.gui.mapmenu.MapMenu.getRoot
DefaultMutableTreeNode getRoot()
Definition: MapMenu.java:389
net.sf.gridarta.gui.utils
Definition: AnimationComponent.java:20
net.sf.gridarta.gui.mapmenu.MapMenu.DeletedNode.getTreeNode
DefaultMutableTreeNode getTreeNode()
Definition: MapMenu.java:436
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.mapMenuEntryIcons
final MapMenuEntryIcons mapMenuEntryIcons
Definition: ManageBookmarksDialog.java:98
net.sf.gridarta.gui.mapmenu.MapMenu.insertNodeInto
TreePath insertNodeInto(@NotNull final MapMenuEntry mapEntry, @NotNull final DefaultMutableTreeNode parent, final int index)
Definition: MapMenu.java:280
net.sf.gridarta.utils.ActionBuilderUtils
Definition: ActionBuilderUtils.java:31
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.editAction
final Action editAction
Definition: ManageBookmarksDialog.java:126
net.sf.gridarta.model.archetype.Archetype
Definition: Archetype.java:41
net.sf.gridarta.utils
Definition: ActionBuilderUtils.java:20
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.createPanel
JPanel createPanel()
Definition: ManageBookmarksDialog.java:213
net.sf.gridarta.gui.mapimagecache.MapImageCache
Definition: MapImageCache.java:53
net.sf.gridarta.gui.dialog.bookmarks.ManageBookmarksDialog.updateSelectedBookmark
void updateSelectedBookmark()
Definition: ManageBookmarksDialog.java:254
net.sf.gridarta.gui.dialog.bookmarks.BookmarkDirectoryDialog.showDialog
boolean showDialog()
Definition: BookmarkDirectoryDialog.java:134
net.sf.gridarta.gui.mapmenu.MapMenu.DeletedNode.getDirectory
String getDirectory()
Definition: MapMenu.java:427
net.sf.gridarta.gui.mapmenu.MapMenu.addMapMenuEntry
void addMapMenuEntry(@NotNull final String directory, @NotNull final MapMenuEntry mapMenuEntry)
Definition: MapMenu.java:210
net.sf.gridarta.gui.utils.GUIConstants
Definition: GUIConstants.java:33
net.sf.gridarta.gui.mapmenu.MapMenu.newTree
JTree newTree()
Definition: MapMenu.java:380
net.sf.gridarta.gui.mapmenu.MapMenuEntryDir
Definition: MapMenuEntryDir.java:28
net.sf.gridarta.gui.mapmenu.MapMenu.save
void save()
Definition: MapMenu.java:151