Interface IProgressmeter

All Superinterfaces:
IAnyGroup<IProgressmeter>, IComponent<IProgressmeter>, IHtmlBasedComponent<IProgressmeter>, IXulElement<IProgressmeter>

public interface IProgressmeter extends IXulElement<IProgressmeter>, IAnyGroup<IProgressmeter>
Immutable Progressmeter component

A progress meter is a bar that indicates how much of a task has been completed.

Author:
katherine
See Also:
  • Progressmeter
  • Field Details

    • DEFAULT

      static final IProgressmeter DEFAULT
      Constant for default attributes of this immutable component.
  • Method Details

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: zul.wgt.Progressmeter"

      Specified by:
      getWidgetClass in interface IComponent<IProgressmeter>
    • getValue

      default int getValue()
      Returns the current value of the progress meter.
    • withValue

      IProgressmeter withValue(int value)
      Returns a copy of this immutable component with the specified value.

      Sets the current value of the progress meter.

      Parameters:
      value - The current value of the progress meter.

      Default: 0.

      Returns:
      A modified copy of the this object
    • isIndeterminate

      default boolean isIndeterminate()
      Returns the indeterminate state of the progress meter.(default false)
    • withIndeterminate

      IProgressmeter withIndeterminate(boolean indeterminate)
      Returns a copy of this immutable component with the specified indeterminate.

      Sets the indeterminate state of the progress meter.

      Parameters:
      indeterminate - The indeterminate state of the progress meter.

      Default: false.

      Returns:
      A modified copy of the this object
    • getWidth

      default String getWidth()
      Returns the width.

      Default: "100px"

      Specified by:
      getWidth in interface IHtmlBasedComponent<IProgressmeter>
    • of

      static IProgressmeter of(int value)
      Returns the instance with the given value.
      Parameters:
      value - The current value of the progress meter.
      Returns:
    • ofWidth

      static IProgressmeter ofWidth(String width)
      Returns the instance with the given width.
      Parameters:
      width - The width of the component.
    • ofId

      static IProgressmeter ofId(String id)
      Returns the instance with the given id.
      Parameters:
      id - The id to identify this component