public class DefaultMapPropertiesDialogFactory extends java.lang.Object implements MapPropertiesDialogFactory<GameObject,MapArchObject,Archetype>
MapPropertiesDialogFactory
creating Crossfire map properties
dialogs.Constructor and Description |
---|
DefaultMapPropertiesDialogFactory(@NotNull MapManager<GameObject,MapArchObject,Archetype> mapManager,
@NotNull ProjectSettings projectSettings)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
showDialog(@NotNull java.awt.Component parent,
@NotNull java.awt.Frame helpParent,
@NotNull MapModel<GameObject,MapArchObject,Archetype> mapModel,
@NotNull javax.swing.filechooser.FileFilter mapFileFilter)
Show a dialog querying the user for map properties.
|
public DefaultMapPropertiesDialogFactory(@NotNull @NotNull MapManager<GameObject,MapArchObject,Archetype> mapManager, @NotNull @NotNull ProjectSettings projectSettings)
mapManager
- the map manager to useprojectSettings
- the project settings instancepublic void showDialog(@NotNull @NotNull java.awt.Component parent, @NotNull @NotNull java.awt.Frame helpParent, @NotNull @NotNull MapModel<GameObject,MapArchObject,Archetype> mapModel, @NotNull @NotNull javax.swing.filechooser.FileFilter mapFileFilter)
MapPropertiesDialogFactory
showDialog
in interface MapPropertiesDialogFactory<GameObject,MapArchObject,Archetype>
parent
- the parent component to show dialog onhelpParent
- the parent frame for help windowsmapModel
- the map to show dialog aboutmapFileFilter
- the Swing file filter to use