Class 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.Dialog getDialog​(ch.sahits.game.openpatrician.javafx.model.EDialogType dialogType, ch.sahits.game.openpatrician.clientserverinterface.client.ICityPlayerProxyJFX cityProxy)  
      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)  
      ch.sahits.game.openpatrician.javafx.dialog.Dialog getDialog​(ch.sahits.game.openpatrician.model.ui.DialogTemplate template)  
      CloseButtonDialog getDialog​(ch.sahits.game.openpatrician.model.ui.IDialogState state)
      Factory method for dialogs that are created with their own specific state.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DialogFactory

        public DialogFactory()
    • 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)