ProgressIndicator sets focusTraversable to false.
This first example creates a ProgressIndicator with an indeterminate value:
ProgressIndicator p1 = new ProgressIndicator();
This next example creates a ProgressIndicator which is 25% complete:
ProgressIndicator p2 = new ProgressIndicator();
p2.setProgress(0.25F);
| Modifier and Type | Field and Description |
|---|---|
| private static final String | DEFAULT_STYLE_CLASS
Initialize the style class to 'progress-indicator'. |
| private ReadOnlyBooleanWrapper | indeterminate
A flag indicating whether it is possible to determine the progress of the ProgressIndicator. |
| public static final double | INDETERMINATE_PROGRESS
Value for progress indicating that the progress is indeterminate. |
| private DoubleProperty | progress
The actual progress of the ProgressIndicator. |
| private static final PseudoClass | PSEUDO_CLASS_DETERMINATE
Pseudoclass indicating this is a determinate (i.e., progress can be determined) progress indicator. |
| private static final PseudoClass | PSEUDO_CLASS_INDETERMINATE
Pseudoclass indicating this is an indeterminate (i.e., progress cannot be determined) progress indicator. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ProgressIndicator(double
the progress, represented as a value between 0 and 1 progress)Creates a new ProgressIndicator 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 final double | |
| public final ReadOnlyBooleanProperty | |
| private ReadOnlyBooleanWrapper | |
| public final boolean | |
| public final DoubleProperty | |
| 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. |
| private void | |
| public final void |
| DEFAULT_STYLE_CLASS | back to summary |
|---|---|
| private static final String DEFAULT_STYLE_CLASS Initialize the style class to 'progress-indicator'. This is the selector class from which CSS can be used to style this control. | |
| indeterminate | back to summary |
|---|---|
| private ReadOnlyBooleanWrapper indeterminate A flag indicating whether it is possible to determine the progress of the ProgressIndicator. Typically indeterminate progress bars are rendered with some form of animation indicating potentially "infinite" progress. | |
| INDETERMINATE_PROGRESS | back to summary |
|---|---|
| public static final double INDETERMINATE_PROGRESS Value for progress indicating that the progress is indeterminate.
| |
| progress | back to summary |
|---|---|
| private DoubleProperty progress The actual progress of the ProgressIndicator. A negative value for progress indicates that the progress is indeterminate. A positive value between 0 and 1 indicates the percentage of progress where 0 is 0% and 1 is 100%. Any value greater than 1 is interpreted as 100%. | |
| PSEUDO_CLASS_DETERMINATE | back to summary |
|---|---|
| private static final PseudoClass PSEUDO_CLASS_DETERMINATE Pseudoclass indicating this is a determinate (i.e., progress can be determined) progress indicator. | |
| PSEUDO_CLASS_INDETERMINATE | back to summary |
|---|---|
| private static final PseudoClass PSEUDO_CLASS_INDETERMINATE Pseudoclass indicating this is an indeterminate (i.e., progress cannot be determined) progress indicator. | |
| ProgressIndicator | back to summary |
|---|---|
| public ProgressIndicator() Creates a new indeterminate ProgressIndicator. | |
| ProgressIndicator | back to summary |
|---|---|
| public ProgressIndicator(double progress) Creates a new ProgressIndicator 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.
| |
| getProgress | back to summary |
|---|---|
| public final double getProgress() | |
| indeterminateProperty | back to summary |
|---|---|
| public final ReadOnlyBooleanProperty indeterminateProperty() | |
| indeterminatePropertyImpl | back to summary |
|---|---|
| private ReadOnlyBooleanWrapper indeterminatePropertyImpl() | |
| isIndeterminate | back to summary |
|---|---|
| public final boolean isIndeterminate() | |
| progressProperty | back to summary |
|---|---|
| public final DoubleProperty progressProperty() | |
| 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.
| |
| setIndeterminate | back to summary |
|---|---|
| private void setIndeterminate(boolean value) | |
| setProgress | back to summary |
|---|---|
| public final void setProgress(double value) | |