Module technology.sola.engine
Class GuiNavigator
java.lang.Object
technology.sola.engine.graphics.gui.navigation.GuiNavigator
GuiNavigator is a class that manages navigation between
GuiNavigationScreen
s.-
Constructor Summary
ConstructorsConstructorDescriptionGuiNavigator
(GuiDocument guiDocument) Creates an instance for aGuiDocument
. -
Method Summary
Modifier and TypeMethodDescription<Element extends GuiElement<?,
Element>, T extends GuiNavigatorScreenWithoutPayload<Element>>
voidNavigates to a registeredGuiNavigatorScreenWithoutPayload
.<Element extends GuiElement<?,
Element>, Payload, T extends GuiNavigationScreen<Element, Payload>>
voidNavigates to a registeredGuiNavigationScreen
passing it a payload.void
register
(GuiNavigationScreen<?, ?> navigationScreen) Registers aGuiNavigationScreen
to be navigated to.
-
Constructor Details
-
GuiNavigator
Creates an instance for aGuiDocument
.- Parameters:
guiDocument
- theGuiDocument
that will update when navigating
-
-
Method Details