public class GoLocationDialogManager<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractPerMapDialogManager<G,A,R,GoLocationDialog<G,A,R>>
GoLocationDialog
instances. This class makes sure that
for each map view no more than one go location dialog exists.Constructor and Description |
---|
GoLocationDialogManager(@NotNull MapViewManager<G,A,R> mapViewManager)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
activate(@NotNull GoLocationDialog<G,A,R> dialog)
Activates an existing instance.
|
protected @NotNull GoLocationDialog<G,A,R> |
allocate(@NotNull MapView<G,A,R> mapView)
Creates a new instance.
|
protected void |
dispose(@NotNull GoLocationDialog<G,A,R> dialog)
Destroys an instance.
|
disposeDialog, showDialog
public GoLocationDialogManager(@NotNull @NotNull MapViewManager<G,A,R> mapViewManager)
mapViewManager
- the view map manager@NotNull protected @NotNull GoLocationDialog<G,A,R> allocate(@NotNull @NotNull MapView<G,A,R> mapView)
AbstractPerMapDialogManager
allocate
in class AbstractPerMapDialogManager<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>,GoLocationDialog<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>>
mapView
- the map view for the new instanceprotected void activate(@NotNull @NotNull GoLocationDialog<G,A,R> dialog)
AbstractPerMapDialogManager
activate
in class AbstractPerMapDialogManager<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>,GoLocationDialog<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>>
dialog
- the instanceprotected void dispose(@NotNull @NotNull GoLocationDialog<G,A,R> dialog)
AbstractPerMapDialogManager
dispose
in class AbstractPerMapDialogManager<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>,GoLocationDialog<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>>
dialog
- the instance