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
setVisible(boolean) to toggle between visible states.
| Modifier and Type | Field and Description |
|---|---|
| private final DoubleProperty | progress
Properties |
| private final ObjectProperty | |
| private final BooleanProperty | |
| private final StringProperty |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Skin | createDefaultSkin()
Overrides javafx. Create a new instance of the default skin for this control. |
| public final double | |
| public final Node | |
| public final boolean | |
| public final String | |
| public String | getUserAgentStylesheet()
Overrides javafx. An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. |
| public final ObjectProperty | |
| public final DoubleProperty | |
| public final BooleanProperty | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final StringProperty |
| progress | back to summary |
|---|---|
| private final DoubleProperty progress Properties | |
| progressNode | back to summary |
|---|---|
| private final ObjectProperty<Node> progressNode | |
| progressVisible | back to summary |
|---|---|
| private final BooleanProperty progressVisible | |
| text | back to summary |
|---|---|
| private final StringProperty text | |
| MaskerPane | back to summary |
|---|---|
| public MaskerPane() Construct a new | |
| createDefaultSkin | back to summary |
|---|---|
| protected Skin Overrides javafx. Doc from javafx. Create a new instance of the default skin for this control. This is called to create a skin for the control if
no skin is provided via CSS
| |
| getProgress | back to summary |
|---|---|
| public final double getProgress() | |
| getProgressNode | back to summary |
|---|---|
| public final Node getProgressNode() | |
| getProgressVisible | back to summary |
|---|---|
| public final boolean getProgressVisible() | |
| getText | back to summary |
|---|---|
| public final String getText() | |
| getUserAgentStylesheet | back to summary |
|---|---|
| public String getUserAgentStylesheet() Overrides javafx. Doc from javafx. An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. These styles are used in addition to whatever user-agent stylesheets are in use. This provides a mechanism for third parties to introduce styles for custom controls. The URL is a hierarchical URI of the form [scheme:][//authority][path]. If the URL does not have a [scheme:] component, the URL is considered to be the [path] component only. Any leading '/' character of the [path] is ignored and the [path] is treated as a path relative to the root of the application's classpath. Subclasses overriding this method should not assume any particular implementation approach as to the number and frequency with which it is called. For this reason, attempting any kind of dynamic implementation (i.e. returning different user agent stylesheet values) based on some state change is highly discouraged, as there is no guarantee when, or even if, this method will be called. Some JavaFX CSS implementations may choose to cache this response for an indefinite period of time, and therefore there should be no expectation around when this method is called.
For additional information about using CSS with the scene graph,
see the CSS Reference Guide.
| |
| progressNodeProperty | back to summary |
|---|---|
| public final ObjectProperty | |
| progressProperty | back to summary |
|---|---|
| public final DoubleProperty progressProperty() | |
| progressVisibleProperty | back to summary |
|---|---|
| public final BooleanProperty progressVisibleProperty() | |
| setProgress | back to summary |
|---|---|
| public final void setProgress(double progress) | |
| setProgressNode | back to summary |
|---|---|
| public final void setProgressNode(Node progressNode) | |
| setProgressVisible | back to summary |
|---|---|
| public final void setProgressVisible(boolean progressVisible) | |
| setText | back to summary |
|---|---|
| public final void setText(String text) | |
| textProperty | back to summary |
|---|---|
| public final StringProperty textProperty() | |