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(MapViewManager<G,A,R> mapViewManager)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
activate(GoLocationDialog<G,A,R> dialog)
Activates an existing instance.
|
protected GoLocationDialog<G,A,R> |
allocate(MapView<G,A,R> mapView)
Creates a new instance.
|
protected void |
dispose(GoLocationDialog<G,A,R> dialog)
Destroys an instance.
|
disposeDialog, showDialog
public GoLocationDialogManager(@NotNull MapViewManager<G,A,R> mapViewManager)
mapViewManager
- the view map manager@NotNull protected GoLocationDialog<G,A,R> allocate(@NotNull MapView<G,A,R> mapView)
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 GoLocationDialog<G,A,R> dialog)
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 GoLocationDialog<G,A,R> dialog)
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