Package it.tidalwave.ui.javafx
Class StackPaneSelector
java.lang.Object
it.tidalwave.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd aNodeto a previously registered area.voidregisterArea(String area, javafx.scene.layout.StackPane stackPane) Register a new area associated to aStackPane.voidsetShownNode(javafx.scene.Node node) Sets the givenNodeas 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 aNodeto a previously registered area.- Parameters:
area- the area namenode- theNode
-
setShownNode
public void setShownNode(@Nonnull javafx.scene.Node node) Sets the givenNodeas the shown one in the area where it is contained.- Parameters:
node- theNode
-