Package dev.zemco.codegame.presentation
Class ImmutableStageProvider
java.lang.Object
dev.zemco.codegame.presentation.ImmutableStageProvider
- All Implemented Interfaces:
IStageProvider
Immutable provider for JavaFX
stages used by the application for presentation.- Author:
- Erik Zemčík
-
Constructor Summary
ConstructorsConstructorDescriptionImmutableStageProvider(javafx.stage.Stage primaryStage) Creates an instance ofImmutableStageProviderthat holds the given primary stage. -
Method Summary
Modifier and TypeMethodDescriptionjavafx.stage.StageProvides the primarystageof the application.
-
Constructor Details
-
ImmutableStageProvider
public ImmutableStageProvider(javafx.stage.Stage primaryStage) Creates an instance ofImmutableStageProviderthat holds the given primary stage.- Parameters:
primaryStage- primary stage to provide- Throws:
IllegalArgumentException- ifprimaryStageisnull
-
-
Method Details
-
getPrimaryStage
public javafx.stage.Stage getPrimaryStage()Description copied from interface:IStageProviderProvides the primarystageof the application. Thisstageis typically used for main content presentation.- Specified by:
getPrimaryStagein interfaceIStageProvider- Returns:
- primary stage
-