Package net.sf.gridarta.gui.dialog.find
Class FindDialogManager<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.gui.dialog.find.FindDialogManager<G,A,R>
-
public class FindDialogManager<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.ObjectCreates and displays the find dialog.
-
-
Constructor Summary
Constructors Constructor Description FindDialogManager(@NotNull java.awt.Component parent, @NotNull MapViewManager<G,A,R> mapViewManager)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfindNext(@NotNull MapView<G,A,R> mapView, boolean performAction)Executes the "find next" action.booleanfindPrev(@NotNull MapView<G,A,R> mapView, boolean performAction)Executes the "find next" action.voidshowDialog(@NotNull MapView<G,A,R> mapView)Displays the replace dialog.
-
-
-
Constructor Detail
-
FindDialogManager
public FindDialogManager(@NotNull @NotNull java.awt.Component parent, @NotNull @NotNull MapViewManager<G,A,R> mapViewManager)Creates a new instance.- Parameters:
parent- the parent component for dialogsmapViewManager- the map view manager to use
-
-
Method Detail
-
showDialog
public void showDialog(@NotNull @NotNull MapView<G,A,R> mapView)Displays the replace dialog.- Parameters:
mapView- the map view to operate on
-
findNext
public boolean findNext(@NotNull @NotNull MapView<G,A,R> mapView, boolean performAction)Executes the "find next" action.- Parameters:
mapView- the map view to operate onperformAction- whether the action should be performed- Returns:
- whether the action was or can be performed
-
-