Class MaskerPane

  • All Implemented Interfaces:
    Styleable, EventTarget, Skinnable

    public class MaskerPane
    extends Control

    MaskerPane is designed to be placed alongside other controls in a StackPane, in order to visually mask these controls, preventing them from being accessed for a short period of time. This comes in handy whenever waiting on asynchronous code to finish, and you do not want the user to be able to modify the state of the UI while waiting.

    To use this control, it is necessary to place it as the last child in a StackPane, with the other children being masked by this MaskerPane when visible. Simply use Node.setVisible(boolean) to toggle between visible states.

    • Constructor Detail

      • MaskerPane

        public MaskerPane()
        Construct a new MaskerPane
    • Method Detail

      • getProgress

        public final double getProgress()
        Gets the value of the property progress.
        Property description:
        Properties
      • setProgress

        public final void setProgress​(double progress)
        Sets the value of the property progress.
        Property description:
        Properties
      • getProgressNode

        public final Node getProgressNode()
        Gets the value of the property progressNode.
        Property description:
      • setProgressNode

        public final void setProgressNode​(Node progressNode)
        Sets the value of the property progressNode.
        Property description:
      • getProgressVisible

        public final boolean getProgressVisible()
        Gets the value of the property progressVisible.
        Property description:
      • setProgressVisible

        public final void setProgressVisible​(boolean progressVisible)
        Sets the value of the property progressVisible.
        Property description:
      • getText

        public final String getText()
        Gets the value of the property text.
        Property description:
      • setText

        public final void setText​(String text)
        Sets the value of the property text.
        Property description:
      • getUserAgentStylesheet

        protected final String getUserAgentStylesheet​(Class<?> clazz,
                                                      String fileName)
        A helper method that ensures that the resource based lookup of the user agent stylesheet only happens once. Caches the external form of the resource.
        Parameters:
        clazz - the class used for the resource lookup
        fileName - the name of the user agent stylesheet
        Returns:
        the external form of the user agent stylesheet (the path)