Class ProgressIndicator

  • All Implemented Interfaces:
    Styleable, EventTarget, Skinnable

    public class ProgressIndicator
    extends ProgressIndicator
    A circular control which is used for indicating progress, either infinite (aka indeterminate) or finite. Generally used while your app loads content. Often used with the Task API for representing progress of background Tasks. If ProgressIndicator.setProgress(double) is not used, then by default the ProgressIndicator is indeterminate.

    ProgressIndicator sets focusTraversable to false.

    This first example creates a ProgressIndicator with an indeterminate value :

    
     import com.gluonhq.charm.glisten.control.ProgressIndicator;
     ProgressIndicator p1 = new ProgressIndicator();
     

    This next example creates a ProgressIndicator which is 25% complete :

    
     import com.gluonhq.charm.glisten.control.ProgressIndicator;
     ProgressIndicator p2 = new ProgressIndicator();
     p2.setProgress(0.25F);
     
    Since:
    2.2.0
    • Constructor Detail

      • ProgressIndicator

        public ProgressIndicator()
        Creates a new indeterminate ProgressIndicator.
    • Method Detail

      • setRadius

        public final void setRadius​(double value)
        Sets the value of the property radius.
        Property description:
        The radius of the ProgressIndicator's spinner.

        Default value is 12.

      • getRadius

        public final double getRadius()
        Gets the value of the property radius.
        Property description:
        The radius of the ProgressIndicator's spinner.

        Default value is 12.

      • getClassCssMetaData

        public static List<CssMetaData<? extends Styleable,​?>> getClassCssMetaData()
        Returns:
        The CssMetaData associated with this class, which may include the CssMetaData of its super classes.
        Since:
        JavaFX 8.0