20 package net.sf.gridarta.gui.dialog.find;
22 import java.awt.Component;
29 import org.jetbrains.annotations.NotNull;
30 import org.jetbrains.annotations.Nullable;
76 mapViewManager.addMapViewManagerListener(mapViewManagerListener);
85 if (instance != null) {
95 if (instance == null) {
108 return instance != null && instance.
findAgain(mapView,
true, performAction);
118 return instance != null && instance.
findAgain(mapView,
false, performAction);
Graphical User Interface of Gridarta.
Creates and displays the find dialog.
FindDialogManager(@NotNull final Component parent, @NotNull final MapViewManager< G, A, R > mapViewManager)
Creates a new instance.
void disposeDialog(@NotNull final MapView< G, A, R > mapView)
Dispose the replace dialog.
boolean findNext(@NotNull final MapView< G, A, R > mapView, final boolean performAction)
Executes the "find next" action.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
GameObjects are the objects based on Archetypes found on maps.
Interface for listeners interested in events related to MapViewManager instances. ...
void display(@NotNull final MapView< G, A, R > mapView)
Replace objects on the map.
FindDialog< G, A, R > instance
Singleton Instance.
Base classes for rendering maps.
boolean findAgain(@NotNull final MapView< G, A, R > mapView, final boolean forward, final boolean performAction)
Re-executes the previous find operation.
void showDialog(@NotNull final MapView< G, A, R > mapView)
Displays the replace dialog.
A map view consists of a map grid and a map cursor, and is attached to a map control.
void dispose(@NotNull final MapView< G, A, R > mapView)
Disposes the find dialog.
Interface for MapArchObjects.
final Component parent
The parent component for dialogs.
boolean findPrev(@NotNull final MapView< G, A, R > mapView, final boolean performAction)
Executes the "find next" action.