Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.lang.String area, javafx.scene.Node node)
      Add a Node to a previously registered area.
      void registerArea​(java.lang.String area, javafx.scene.layout.StackPane stackPane)
      Register a new area associated to a StackPane.
      void setShownNode​(javafx.scene.Node node)
      Sets the given Node as the shown one in the area where it is contained.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StackPaneSelector

        public StackPaneSelector()
    • Method Detail

      • registerArea

        public void registerArea​(@Nonnull
                                 java.lang.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
                        java.lang.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