Class ProgressBarTypeBuilder


  • public final class ProgressBarTypeBuilder
    extends Object
    Comfortable object to create custom IsProgressBarType by a builder.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • create

        public static ProgressBarTypeBuilder create​(String name,
                                                    String backgroundColor)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        backgroundColor - background color of toast
        Returns:
        new builder instance
      • create

        public static ProgressBarTypeBuilder create​(Key name,
                                                    String backgroundColor)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        backgroundColor - background color of toast
        Returns:
        new builder instance
      • create

        public static ProgressBarTypeBuilder create​(String name,
                                                    IsColor backgroundColor)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        backgroundColor - background color of toast
        Returns:
        new builder instance
      • create

        public static ProgressBarTypeBuilder create​(Key name,
                                                    IsColor backgroundColor)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        backgroundColor - background color of toast
        Returns:
        new builder instance
      • create

        public static ProgressBarTypeBuilder create​(String name,
                                                    Gradient gradient)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        gradient - background gradient of toast
        Returns:
        new builder instance
      • create

        public static ProgressBarTypeBuilder create​(Key name,
                                                    Gradient gradient)
        Returns new builder instance, to build a custom toast type.
        Parameters:
        name - name to use inside the native object as name of property
        gradient - background gradient of toast
        Returns:
        new builder instance
      • build

        public IsProgressBarType build()
        Returns new toast type.
        Returns:
        new toast type.