Class DialogFactory
- java.lang.Object
-
- ch.sahits.game.openpatrician.display.dialog.service.DialogFactory
-
@Service @Lazy @DependentInitialisation(ch.sahits.game.openpatrician.model.initialisation.StartNewGameBean.class) public class DialogFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DialogFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ch.sahits.game.openpatrician.javafx.dialog.DialoggetDialog(ch.sahits.game.openpatrician.javafx.model.EDialogType dialogType, ch.sahits.game.openpatrician.clientserverinterface.client.ICityPlayerProxyJFX cityProxy)ch.sahits.game.openpatrician.javafx.dialog.DialoggetDialog(ch.sahits.game.openpatrician.javafx.model.EDialogType dialogType, ch.sahits.game.openpatrician.clientserverinterface.client.ICityPlayerProxyJFX cityProxy, ch.sahits.game.openpatrician.model.ship.IConvoy convoy, ch.sahits.game.openpatrician.model.ship.IShip ship)ch.sahits.game.openpatrician.javafx.dialog.DialoggetDialog(ch.sahits.game.openpatrician.model.ui.DialogTemplate template)CloseButtonDialoggetDialog(ch.sahits.game.openpatrician.model.ui.IDialogState state)Factory method for dialogs that are created with their own specific state.
-
-
-
Method Detail
-
getDialog
public ch.sahits.game.openpatrician.javafx.dialog.Dialog getDialog(ch.sahits.game.openpatrician.model.ui.DialogTemplate template)
-
getDialog
public ch.sahits.game.openpatrician.javafx.dialog.Dialog getDialog(ch.sahits.game.openpatrician.javafx.model.EDialogType dialogType, ch.sahits.game.openpatrician.clientserverinterface.client.ICityPlayerProxyJFX cityProxy)
-
getDialog
public CloseButtonDialog getDialog(ch.sahits.game.openpatrician.model.ui.IDialogState state)
Factory method for dialogs that are created with their own specific state.- Parameters:
state- dialog state for which to create the dialog- Returns:
- dialog with a close button
-
getDialog
public ch.sahits.game.openpatrician.javafx.dialog.Dialog getDialog(ch.sahits.game.openpatrician.javafx.model.EDialogType dialogType, ch.sahits.game.openpatrician.clientserverinterface.client.ICityPlayerProxyJFX cityProxy, ch.sahits.game.openpatrician.model.ship.IConvoy convoy, ch.sahits.game.openpatrician.model.ship.IShip ship)
-
-