Class ProgressBar

    • Constructor Detail

      • ProgressBar

        public ProgressBar()
        Deprecated.
        Creates a new progress bar initially set to 0% progress.
      • ProgressBar

        public ProgressBar​(float progress)
        Deprecated.
        Creates a new progress bar with the given initial value.
        Parameters:
        progress - the initial progress value
      • ProgressBar

        public ProgressBar​(Property<?> dataSource)
        Deprecated.
        Creates a new progress bar bound to the given data source.
        Parameters:
        dataSource - the property to bind this progress bar to
    • Method Detail

      • getValue

        public Float getValue()
        Deprecated.
        Gets the value of this progress bar. The value is a float between 0 and 1 where 0 represents no progress at all and 1 represents fully completed.
        Specified by:
        getValue in interface Property<Float>
        Overrides:
        getValue in class AbstractField<Float>
        Returns:
        the current progress value
      • setValue

        public void setValue​(Float newValue)
        Deprecated.
        Sets the value of this progress bar. The value is a float between 0 and 1 where 0 represents no progress at all and 1 represents fully completed.
        Specified by:
        setValue in interface Property<Float>
        Overrides:
        setValue in class AbstractField<Float>
        Parameters:
        newValue - the current progress value
      • getType

        public Class<Float> getType()
        Deprecated.
        Description copied from class: AbstractField
        Returns the type of the Field. The methods getValue and setValue must be compatible with this type: one must be able to safely cast the value returned from getValue to the given type and pass any variable assignable to this type as an argument to setValue.
        Specified by:
        getType in interface Property<Float>
        Specified by:
        getType in class AbstractField<Float>
        Returns:
        the type of the Field
      • setIndeterminate

        public void setIndeterminate​(boolean indeterminate)
        Deprecated.
        Sets whether or not this progress indicator is indeterminate. In indeterminate mode there is an animation indicating that the task is running but without providing any information about the current progress.
        Parameters:
        indeterminate - true to set to indeterminate mode; otherwise false
      • isIndeterminate

        public boolean isIndeterminate()
        Deprecated.
        Gets whether or not this progress indicator is indeterminate. In indeterminate mode there is an animation indicating that the task is running but without providing any information about the current progress.
        Returns:
        true if set to indeterminate mode; otherwise false
      • setInternalValue

        protected void setInternalValue​(Float newValue)
        Deprecated.
        Description copied from class: AbstractField
        Sets the internal field value. This is purely used by AbstractField to change the internal Field value. It does not trigger valuechange events. It can be overridden by the inheriting classes to update all dependent variables. Subclasses can also override AbstractField.getInternalValue() if necessary.
        Overrides:
        setInternalValue in class AbstractField<Float>
        Parameters:
        newValue - the new value to be set.
      • clear

        public void clear()
        Deprecated.
        Description copied from interface: Field
        Clears the value of the field.

        The field value is typically reset to the initial value of the field. Calling Field.isEmpty() on a cleared field must always returns true.

        Specified by:
        clear in interface Field<Float>
        Overrides:
        clear in class AbstractField<Float>
      • isEmpty

        public boolean isEmpty()
        Deprecated.
        Description copied from interface: Field
        Is the field empty? In general, "empty" state is same as null. As an exception, TextField also treats empty string as "empty".
        Specified by:
        isEmpty in interface Field<Float>
        Overrides:
        isEmpty in class AbstractField<Float>
        Returns:
        true if the field is empty, false otherwise