ProgressBar) for long
running tasks. Additional controls / nodes can be placed on the left and
right sides (see getLeftItems() and getRightItems()).



StatusBar statusBar = new StatusBar();
statusBar.getLeftItems().add(new Button("Info"));
statusBar.setProgress(.5);
| Modifier and Type | Field and Description |
|---|---|
| private final ObjectProperty | |
| private final ObservableList | |
| private final DoubleProperty | |
| private final ObservableList | |
| private final StringProperty | |
| 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 Node | Returns: the graphic node shown by the label inside the status barReturns the value of the |
| public final ObservableList | Returns: the items on the left-hand side of the status barReturns the list of items / nodes that will be shown to the left of the status label. |
| public final double | |
| public final ObservableList | Returns: the items on the left-hand side of the status barReturns the list of items / nodes that will be shown to the right of the status label. |
| public String | Returns: the style applied on the text.A string representation of the CSS style associated with this Text. |
| public final String | Returns: the text currently shown by the status barReturns the value of the |
| 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 | Returns: the property used for storing a graphic nodeThe property used to store a graphic node that can be displayed by the status label inside the status bar control. |
| public final DoubleProperty | Returns: the property used to store the progress of a taskThe property used to store the progress, a value between 0 and 1. |
| public final void | setGraphic(Node
the graphic node shown by the label inside the status bar node)Sets the value of |
| public final void | |
| public void | |
| public final void | setText(String
the text shown by the label control inside the status bar text)Sets the value of the |
| public final StringProperty | Returns: the BooleanProperty associated with the style applied to the text.Return the BooleanProperty associated with the style applied to the text. |
| public final StringProperty | Returns: the text message propertyThe property used for storing the text message shown by the status bar. |
| graphic | back to summary |
|---|---|
| private final ObjectProperty<Node> graphic | |
| leftItems | back to summary |
|---|---|
| private final ObservableList<Node> leftItems | |
| progress | back to summary |
|---|---|
| private final DoubleProperty progress | |
| rightItems | back to summary |
|---|---|
| private final ObservableList<Node> rightItems | |
| styleTextProperty | back to summary |
|---|---|
| private final StringProperty styleTextProperty | |
| text | back to summary |
|---|---|
| private final StringProperty text | |
| StatusBar | back to summary |
|---|---|
| public StatusBar() Constructs a new status bar control. | |
| 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
| |
| getGraphic | back to summary |
|---|---|
| public final Node getGraphic() Returns the value of the
| |
| getLeftItems | back to summary |
|---|---|
| public final ObservableList Returns the list of items / nodes that will be shown to the left of the status label.
| |
| getProgress | back to summary |
|---|---|
| public final double getProgress() Returns the value of
| |
| getRightItems | back to summary |
|---|---|
| public final ObservableList Returns the list of items / nodes that will be shown to the right of the status label.
| |
| getStyleText | back to summary |
|---|---|
| public String getStyleText() A string representation of the CSS style associated with this Text.
| |
| getText | back to summary |
|---|---|
| public final String getText() Returns the value of the
| |
| 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.
| |
| graphicProperty | back to summary |
|---|---|
| public final ObjectProperty The property used to store a graphic node that can be displayed by the status label inside the status bar control.
| |
| progressProperty | back to summary |
|---|---|
| public final DoubleProperty progressProperty() The property used to store the progress, a value between 0 and 1. A negative value causes the progress bar to show an indeterminate state.
| |
| setGraphic | back to summary |
|---|---|
| public final void setGraphic(Node node) Sets the value of
| |
| setProgress | back to summary |
|---|---|
| public final void setProgress(double progress) Sets the value of the
| |
| setStyleText | back to summary |
|---|---|
| public void setStyleText(String style) A string representation of the CSS style associated with this Text. | |
| setText | back to summary |
|---|---|
| public final void setText(String text) Sets the value of the
| |
| styleTextProperty | back to summary |
|---|---|
| public final StringProperty styleTextProperty() Return the BooleanProperty associated with the style applied to the text.
| |
| textProperty | back to summary |
|---|---|
| public final StringProperty textProperty() The property used for storing the text message shown by the status bar.
| |