Class AbstractHidingBehavior

    • Constructor Detail

      • AbstractHidingBehavior

        public AbstractHidingBehavior()
    • Method Detail

      • determineHiddenStatus

        protected abstract boolean determineHiddenStatus()
        Returns true if the host is currently hidden. Otherwise, returns false.
        Returns:
        true if the host is currently hidden, otherwise false.
      • hide

        protected void hide()
        Hides the host. By default, the host's visual's visibility will be set to false and its mouse-transparency will be set to true.
      • isHidden

        protected boolean isHidden()
        Returns true if the host is currently considered to be hidden. Otherwise, returns false.
        Returns:
        true if the host is currently considered to be hidden, otherwise false.
      • onHidingModelChange

        protected void onHidingModelChange​(javafx.collections.SetChangeListener.Change<? extends Node> change)
        Called upon HidingModel changes. Determines if the host is now hidden using determineHiddenStatus() and compares the result with the previous hidden status. If the host was previously hidden and is not hidden anymore, show() is called. Otherwise, hide() is called.
        Parameters:
        change - The change event of the HidingModel.
      • show

        protected void show()
        Shows the host. By default, the host's visual's visibility will be set to true and its mouse-transparency will be set to false.