public class DefaultMapPropertiesDialogFactory extends java.lang.Object implements MapPropertiesDialogFactory<GameObject,MapArchObject,Archetype>
MapPropertiesDialogFactory
creating Crossfire map properties
dialogs.Constructor and Description |
---|
DefaultMapPropertiesDialogFactory(MapManager<GameObject,MapArchObject,Archetype> mapManager,
ProjectSettings projectSettings)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
showDialog(java.awt.Component parent,
java.awt.Frame helpParent,
MapModel<GameObject,MapArchObject,Archetype> mapModel,
javax.swing.filechooser.FileFilter mapFileFilter)
Show a dialog querying the user for map properties.
|
public DefaultMapPropertiesDialogFactory(@NotNull MapManager<GameObject,MapArchObject,Archetype> mapManager, @NotNull ProjectSettings projectSettings)
mapManager
- the map manager to useprojectSettings
- the project settings instancepublic void showDialog(@NotNull java.awt.Component parent, @NotNull java.awt.Frame helpParent, @NotNull MapModel<GameObject,MapArchObject,Archetype> mapModel, @NotNull javax.swing.filechooser.FileFilter mapFileFilter)
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