Status#LOADING. Once the status changes back to Status#OK the node will be
shown again. If anything goes wrong while loading new data or refreshing the content a third state called
Status#ERROR can be applied resulting in an error icon and error text being shown. The pane also supports
a progressProperty() for detailed progress feedback.
| Modifier and Type | Class and Description |
|---|---|
| private class | LoadingPane.
A thread runnable used to delay the actual status change. |
| public static enum | LoadingPane.
The possible sizes for the pane. |
| public static enum | LoadingPane.
The possible states that the loading pane can be in. |
| Modifier and Type | Field and Description |
|---|---|
| private final LongProperty | |
| private LoadingPane. | |
| private final ReadOnlyObjectWrapper | |
| private final ObjectProperty | |
| private final StringProperty | |
| private final ObjectProperty | |
| private final StackPane | |
| private final DoubleProperty | |
| private final ObjectProperty | |
| private final ObjectProperty | |
| private final ObjectProperty |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final LongProperty | Returns: the delay duration in millisecondsThe commit delay duration that will be applied before the control does change to a new state. |
| public final ReadOnlyObjectProperty | Returns: the read-only property storing the committed statusA read-only property that contains the "committed" status value. |
| public final ObjectProperty | Returns: the node / the view wrapped by the loading pane, e.g. a list or a table viewThe wrapped content node. |
| public final void | |
| public final void | |
| public final void | |
| public final ObjectProperty | Returns: the error nodeThe node that will be shown when the loading pane is in status |
| public final StringProperty | Returns: the error messageThe error text that will be shown if the pane is in status |
| public final long | |
| public final LoadingPane. | |
| public final Node | |
| public final String | |
| public final Node | |
| public final double | |
| public final ProgressIndicator | |
| public final LoadingPane. | |
| public final LoadingPane. | |
| 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 void | |
| public final void | |
| public final ObjectProperty | Returns: the progress indicatorThe progress indicator that will be used to display percentage progress or the indeterminate state of the loading progress. |
| public final DoubleProperty | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final ObjectProperty | |
| public final ObjectProperty | |
| private void | |
| private void | |
| private void | |
| private Node |
| commitDelay | back to summary |
|---|---|
| private final LongProperty commitDelay | |
| commitStatusThread | back to summary |
|---|---|
| private LoadingPane. | |
| committedStatus | back to summary |
|---|---|
| private final ReadOnlyObjectWrapper<LoadingPane. | |
| content | back to summary |
|---|---|
| private final ObjectProperty<Node> content | |
| error | back to summary |
|---|---|
| private final StringProperty error | |
| errorNode | back to summary |
|---|---|
| private final ObjectProperty<Node> errorNode | |
| indicatorWrapper | back to summary |
|---|---|
| private final StackPane indicatorWrapper | |
| progress | back to summary |
|---|---|
| private final DoubleProperty progress | |
| progressIndicator | back to summary |
|---|---|
| private final ObjectProperty<ProgressIndicator> progressIndicator | |
| size | back to summary |
|---|---|
| private final ObjectProperty<LoadingPane. | |
| status | back to summary |
|---|---|
| private final ObjectProperty<LoadingPane. | |
| LoadingPane | back to summary |
|---|---|
| public LoadingPane() Constructs a new loading pane. | |
| LoadingPane | back to summary |
|---|---|
| public LoadingPane(Node node) Constructs a new loading pane.
| |
| commitDelayProperty | back to summary |
|---|---|
| public final LongProperty commitDelayProperty() The commit delay duration that will be applied before the control does change to a new state. The default is 200 milliseconds.
| |
| committedStatusProperty | back to summary |
|---|---|
| public final ReadOnlyObjectProperty A read-only property that contains the "committed" status value. Applications request a status property
change via the
| |
| contentProperty | back to summary |
|---|---|
| public final ObjectProperty The wrapped content node.
| |
| error | back to summary |
|---|---|
| public final void error(String message) Convenience method to change the status of the pane to | |
| error | back to summary |
|---|---|
| public final void error(Throwable ex) Convenience method to change the status of the pane to | |
| error | back to summary |
|---|---|
| public final void error() Convenience method to change the status of the pane to | |
| errorNodeProperty | back to summary |
|---|---|
| public final ObjectProperty The node that will be shown when the loading pane is in status
| |
| errorProperty | back to summary |
|---|---|
| public final StringProperty errorProperty() The error text that will be shown if the pane is in status
| |
| getCommitDelay | back to summary |
|---|---|
| public final long getCommitDelay() | |
| getCommittedStatus | back to summary |
|---|---|
| public final LoadingPane. | |
| getContent | back to summary |
|---|---|
| public final Node getContent() | |
| getError | back to summary |
|---|---|
| public final String getError() | |
| getErrorNode | back to summary |
|---|---|
| public final Node getErrorNode() | |
| getProgress | back to summary |
|---|---|
| public final double getProgress() | |
| getProgressIndicator | back to summary |
|---|---|
| public final ProgressIndicator getProgressIndicator() | |
| getSize | back to summary |
|---|---|
| public final LoadingPane. | |
| getStatus | back to summary |
|---|---|
| public final LoadingPane. | |
| 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.
| |
| load | back to summary |
|---|---|
| public final void load() Convenience method to change the status of the pane to | |
| ok | back to summary |
|---|---|
| public final void ok() Convenience method to change the status of the pane to | |
| progressIndicatorProperty | back to summary |
|---|---|
| public final ObjectProperty The progress indicator that will be used to display percentage progress or the indeterminate state of the loading progress.
| |
| progressProperty | back to summary |
|---|---|
| public final DoubleProperty progressProperty() The progress (value between 0 and 1).
| |
| setCommitDelay | back to summary |
|---|---|
| public final void setCommitDelay(long commitDelay) | |
| setContent | back to summary |
|---|---|
| public final void setContent(Node content) | |
| setError | back to summary |
|---|---|
| public final void setError(String error) | |
| setErrorNode | back to summary |
|---|---|
| public final void setErrorNode(Node errorNode) | |
| setProgress | back to summary |
|---|---|
| public final void setProgress(double progress) | |
| setProgressIndicator | back to summary |
|---|---|
| public final void setProgressIndicator(ProgressIndicator progressIndicator) | |
| setSize | back to summary |
|---|---|
| public final void setSize(LoadingPane. | |
| setStatus | back to summary |
|---|---|
| public final void setStatus(LoadingPane. | |
| sizeProperty | back to summary |
|---|---|
| public final ObjectProperty The size of the progress indicator. The size should match the size of the wrapped node.
| |
| statusProperty | back to summary |
|---|---|
| public final ObjectProperty The current status of the loading pane.
| |
| toggleIndicator | back to summary |
|---|---|
| private void toggleIndicator() | |
| updatePseudoClass | back to summary |
|---|---|
| private void updatePseudoClass(Enum<?> oldValue, Enum<?> newValue) | |
| updateView | back to summary |
|---|---|
| private void updateView() | |
| wrapErrorNode | back to summary |
|---|---|
| private Node wrapErrorNode(Node errorNode) | |
| Modifier and Type | Field and Description |
|---|---|
| private final LoadingPane. | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void |
| status | back to summary |
|---|---|
| private final LoadingPane. | |
| stopped | back to summary |
|---|---|
| private boolean stopped | |
| CommitStatusThread | back to summary |
|---|---|
| pack-priv CommitStatusThread(LoadingPane. | |
| abort | back to summary |
|---|---|
| public void abort() | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
sizeProperty()
| Modifier and Type | Field and Description |
|---|---|
| public static final LoadingPane. | |
| public static final LoadingPane. | |
| public static final LoadingPane. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static LoadingPane. | |
| public static LoadingPane. |
| LARGE | back to summary |
|---|---|
| public static final LoadingPane. | |
| MEDIUM | back to summary |
|---|---|
| public static final LoadingPane. | |
| SMALL | back to summary |
|---|---|
| public static final LoadingPane. | |
| Size | back to summary |
|---|---|
| private Size() | |
| valueOf | back to summary |
|---|---|
| public static LoadingPane. | |
| values | back to summary |
|---|---|
| public static LoadingPane. | |
statusProperty()
| Modifier and Type | Field and Description |
|---|---|
| public static final LoadingPane. | ERROR
The pane will show the error message. |
| public static final LoadingPane. | LOADING
The pane will show the progress indicator. |
| public static final LoadingPane. | OK
The pane will show the wrapped node. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static LoadingPane. | |
| public static LoadingPane. |
| ERROR | back to summary |
|---|---|
| public static final LoadingPane. The pane will show the error message. | |
| LOADING | back to summary |
|---|---|
| public static final LoadingPane. The pane will show the progress indicator. | |
| OK | back to summary |
|---|---|
| public static final LoadingPane. The pane will show the wrapped node. | |
| Status | back to summary |
|---|---|
| private Status() | |
| valueOf | back to summary |
|---|---|
| public static LoadingPane. | |
| values | back to summary |
|---|---|
| public static LoadingPane. | |