Class FindDialogManager<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<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.Object
    Creates 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
      boolean findNext​(@NotNull MapView<G,​A,​R> mapView, boolean performAction)
      Executes the "find next" action.
      boolean findPrev​(@NotNull MapView<G,​A,​R> mapView, boolean performAction)
      Executes the "find next" action.
      void showDialog​(@NotNull MapView<G,​A,​R> mapView)
      Displays the replace dialog.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 dialogs
        mapViewManager - 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 on
        performAction - whether the action should be performed
        Returns:
        whether the action was or can be performed
      • findPrev

        public boolean findPrev​(@NotNull
                                @NotNull MapView<G,​A,​R> mapView,
                                boolean performAction)
        Executes the "find next" action.
        Parameters:
        mapView - the map view to operate on
        performAction - whether the action should be performed
        Returns:
        whether the action was or can be performed