Class StackPaneSelector

java.lang.Object
it.tidalwave.ui.javafx.StackPaneSelector

public class StackPaneSelector extends 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 Details

    • StackPaneSelector

      public StackPaneSelector()
  • Method Details

    • registerArea

      public void registerArea(@Nonnull String area, @Nonnull javafx.scene.layout.StackPane stackPane)
      Register a new area associated to a StackPane.
      Parameters:
      area - the area name
      stackPane - the StackPane
    • add

      public void add(@Nonnull String area, @Nonnull javafx.scene.Node node)
      Add a Node to a previously registered area.
      Parameters:
      area - the area name
      node - the Node
    • setShownNode

      public void setShownNode(@Nonnull javafx.scene.Node node)
      Sets the given Node as the shown one in the area where it is contained.
      Parameters:
      node - the Node