Package it.tidalwave.role.ui.javafx
Class StackPaneSelector
java.lang.Object
it.tidalwave.role.ui.javafx.StackPaneSelector
A facility that is used to manage areas in the UI where multiple contents should appear in a mutually exclusive
way.
- Author:
- Fabrizio Giudici
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add aNode
to a previously registered area.void
registerArea
(String area, javafx.scene.layout.StackPane stackPane) Register a new area associated to aStackPane
.void
setShownNode
(javafx.scene.Node node) Sets the givenNode
as the shown one in the area where it is contained.
-
Constructor Details
-
StackPaneSelector
public StackPaneSelector()
-
-
Method Details
-
registerArea
Register a new area associated to aStackPane
.- Parameters:
area
- the area namestackPane
- theStackPane
-
add
Add aNode
to a previously registered area.- Parameters:
area
- the area namenode
- theNode
-
setShownNode
public void setShownNode(@Nonnull javafx.scene.Node node) Sets the givenNode
as the shown one in the area where it is contained.- Parameters:
node
- theNode
-