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.

  • Property Details

  • Constructor Details

    • MaskerPane

      public MaskerPane()
      Construct a new MaskerPane
  • Method Details

    • progressProperty

      public final DoubleProperty progressProperty()
      Properties
      See Also:
    • 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
    • progressNodeProperty

      public final ObjectProperty<Node> progressNodeProperty()
      See Also:
    • 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:
    • progressVisibleProperty

      public final BooleanProperty progressVisibleProperty()
      See Also:
    • 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:
    • textProperty

      public final StringProperty textProperty()
      See Also:
    • 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:
    • createDefaultSkin

      protected Skin<?> createDefaultSkin()
      Overrides:
      createDefaultSkin in class Control
    • getUserAgentStylesheet

      public String getUserAgentStylesheet()
      Overrides:
      getUserAgentStylesheet in class Region
    • 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)