Interface IStep

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

public interface IStep extends IXulElement<IStep>, IAnyGroup<IStep>
Immutable Step component

A step is used for displaying user navigation, it should be placed inside a IStepbar.

Author:
katherine
See Also:
  • Step
  • Field Details

    • DEFAULT

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

    • getWidgetClass

      default String getWidgetClass()
      Returns the client widget class.

      Default: "zkmax.wgt.Step"

      Specified by:
      getWidgetClass in interface IComponent<IStep>
    • getTitle

      @Nullable String getTitle()
      Returns the title.

      Default: null.

    • withTitle

      IStep withTitle(@Nullable String title)
      Returns a copy of this immutable component with the specified title.

      Sets the title of the step.

      Parameters:
      title - The title of the step.

      Default: null.

      Returns:
      A modified copy of the this object
    • getIconSclass

      @Nullable String getIconSclass()
      Returns the icon font

      Default: null.

    • withIconSclass

      IStep withIconSclass(@Nullable String iconSclass)
      Returns a copy of this immutable component with the specified iconSclass.

      Sets the icon font

      Parameters:
      iconSclass - The icon font

      Default: null.

      Returns:
      A modified copy of the this object
    • isComplete

      default boolean isComplete()
      Returns whether this step is complete.

      Default: false.

    • withComplete

      IStep withComplete(boolean complete)
      Returns a copy of this immutable component with the specified complete.

      Sets whether this step is complete.

      Parameters:
      complete - Whether this step is complete.

      Default: false.

      Returns:
      A modified copy of the this object
    • isError

      default boolean isError()
      Returns whether this step is in error.

      Default: false.

    • withError

      IStep withError(boolean error)
      Returns a copy of this immutable component with the specified error.

      Sets whether this step is in error.

      Parameters:
      error - Whether this step is in error.

      Default: false.

      Returns:
      A modified copy of the this object
    • ofTitle

      static IStep ofTitle(String title)
      Returns the instance with the given title.
      Parameters:
      title - The title of this component
    • ofId

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