Package it.tidalwave.role.ui.javafx
Class StackPaneSelector
- java.lang.Object
-
- it.tidalwave.role.ui.javafx.StackPaneSelector
-
public class StackPaneSelector extends java.lang.Object
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
Constructors Constructor Description StackPaneSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.lang.String area, javafx.scene.Node node)
Add aNode
to a previously registered area.void
registerArea(java.lang.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.
-
-
-
Method Detail
-
registerArea
public void registerArea(@Nonnull java.lang.String area, @Nonnull javafx.scene.layout.StackPane stackPane)
Register a new area associated to aStackPane
.- Parameters:
area
- the area namestackPane
- theStackPane
-
add
public void add(@Nonnull java.lang.String area, @Nonnull javafx.scene.Node node)
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
-
-