ProgressBar sets focusTraversable to false.
This first example creates a ProgressBar with an indeterminate value:
ProgressBar p1 = new ProgressBar();
This next example creates a ProgressBar which is 25% complete:
ProgressBar p2 = new ProgressBar();
p2.setProgress(0.25F);
| Modifier and Type | Field and Description |
|---|---|
| private static final String | DEFAULT_STYLE_CLASS
Hides javafx. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ProgressBar(double
the progress, represented as a value between 0 and 1 progress)Creates a new ProgressBar with the given progress value. |
| Modifier and Type | Method and Description |
|---|---|
| protected Skin | createDefaultSkin()
Overrides javafx. Create a new instance of the default skin for this control. |
| protected Boolean | getInitialFocusTraversable()
Overrides javafx. Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value. |
| public Object | queryAccessibleAttribute(AccessibleAttribute
the requested attribute attribute, Object... optional list of parameters parameters)Overrides javafx. This method is called by the assistive technology to request the value for an attribute. |
| DEFAULT_STYLE_CLASS | back to summary |
|---|---|
| private static final String DEFAULT_STYLE_CLASS Hides javafx. Initialize the style class to 'progress-bar'. This is the selector class from which CSS can be used to style this control. | |
| ProgressBar | back to summary |
|---|---|
| public ProgressBar() Creates a new indeterminate ProgressBar. | |
| ProgressBar | back to summary |
|---|---|
| public ProgressBar(double progress) Creates a new ProgressBar with the given progress value.
| |
| 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
| |
| getInitialFocusTraversable | back to summary |
|---|---|
| protected Boolean getInitialFocusTraversable() Overrides javafx. Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value. This method is overridden as by default UI controls have focus traversable set to true, but that is not appropriate for this control.
| |
| queryAccessibleAttribute | back to summary |
|---|---|
| public Object queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters) Overrides javafx. Doc from javafx. This method is called by the assistive technology to request the value for an attribute.
This method is commonly overridden by subclasses to implement
attributes that are required for a specific role.
| |