Class AutoProgressBarCell

  • All Implemented Interfaces:
    com.google.gwt.cell.client.Cell<Double>, com.google.gwt.event.shared.HasHandlers, ResizableCell

    public class AutoProgressBarCell
    extends ProgressBarCell
    • Method Detail

      • auto

        public void auto​(com.google.gwt.cell.client.Cell.Context context,
                         XElement parent)
        Initiates an auto-updating progress bar using the current duration, increment, and interval.
        Parameters:
        context - the cell context
        parent - the parent element
      • getDuration

        public int getDuration()
        Returns the duration.
        Returns:
        the duration
      • getInterval

        public int getInterval()
        Returns the bar's interval value.
        Returns:
        the interval in milliseconds
      • reset

        public void reset​(com.google.gwt.cell.client.Cell.Context context,
                          XElement parent)
        Description copied from class: ProgressBarCell
        Resets the progress bar value to 0 and text to empty string.
        Overrides:
        reset in class ProgressBarCell
        Parameters:
        context - the cell context
        parent - the parent element
      • setDuration

        public void setDuration​(int duration)
        The length of time in milliseconds that the progress bar should run before resetting itself (defaults to DEFAULT, in which case it will run indefinitely until reset is called)
        Parameters:
        duration - the duration in milliseconds
      • setInterval

        public void setInterval​(int interval)
        Sets the length of time in milliseconds between each progress update (defaults to 300 ms).
        Parameters:
        interval - the interval to set