public abstract class AbstractPerMapDialogManager<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>,D>
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
AbstractPerMapDialogManager(@NotNull MapViewManager<G,A,R> mapViewManager)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
activate(D dialog)
Activates an existing instance.
|
protected abstract D |
allocate(@NotNull MapView<G,A,R> mapView)
Creates a new instance.
|
protected abstract void |
dispose(D dialog)
Destroys an instance.
|
void |
disposeDialog(MapView<G,A,R> mapView)
Dispose a dialog.
|
void |
showDialog(MapView<G,A,R> mapView)
Show a dialog for positioning the cursor of a map.
|
protected AbstractPerMapDialogManager(@NotNull @NotNull MapViewManager<G,A,R> mapViewManager)
mapViewManager
- the view map managerpublic void showDialog(MapView<G,A,R> mapView)
mapView
- the view map for cursor positioningpublic void disposeDialog(MapView<G,A,R> mapView)
mapView
- the map view to dispose the dialog of; do nothing if no
dialog exists@NotNull protected abstract D allocate(@NotNull @NotNull MapView<G,A,R> mapView)
mapView
- the map view for the new instanceprotected abstract void activate(@NotNull D dialog)
dialog
- the instanceprotected abstract void dispose(@NotNull D dialog)
dialog
- the instance