20 package net.sf.gridarta.gui.dialog.browsearchetypes;
22 import java.awt.Component;
23 import javax.swing.ImageIcon;
31 import org.jetbrains.annotations.NotNull;
32 import org.jetbrains.annotations.Nullable;
44 private final Object
sync =
new Object();
93 public BrowseArchetypesDialogManager(@NotNull
final Component parent, @NotNull
final ArchetypeChooserControl<G, A, R> archetypeChooserControl, @NotNull
final ObjectChooser<G, A, R> objectChooser, @NotNull
final ArchetypeSet<G, A, R> archetypeSet, @NotNull
final ImageIcon closingIcon) {
104 synchronized (
sync) {
106 if (dialog == null) {
108 browseArchetypesDialog = dialog;
BrowseArchetypesDialog< G, A, R > browseArchetypesDialog
The BrowseArchetypesDialog instance or.
A dialog manager for the browse archetypes dialog.
Graphical User Interface of Gridarta.
Reading and writing of Atrinik maps.
final ObjectChooser< G, A, R > objectChooser
The ObjectChooser to use when selecting search results.
BrowseArchetypesDialogManager(@NotNull final Component parent, @NotNull final ArchetypeChooserControl< G, A, R > archetypeChooserControl, @NotNull final ObjectChooser< G, A, R > objectChooser, @NotNull final ArchetypeSet< G, A, R > archetypeSet, @NotNull final ImageIcon closingIcon)
Creates a new instance.
final ArchetypeSet< G, A, R > archetypeSet
The ArchetypeSet for looking up archetypes.
void showDialog()
Opens the dialog.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
Abstract base class for classes managing a single dialog instance.
GameObjects are the objects based on Archetypes found on maps.
final ImageIcon closingIcon
The icon to display in the closing buttons of the archetype browser.
final ArchetypeChooserControl< G, A, R > archetypeChooserControl
The ArchetypeChooserControl to search.
final Object sync
The synchronization object for accessing browseArchetypesDialog.
Interface that captures similarities between different ArchetypeSet implementations.
final Component parent
The parent Component for the dialog.
Common base interface for ObjectChoosers.
That control of the archetype chooser.
Interface for MapArchObjects.