Class ProgressBarTypeBuilder
- java.lang.Object
-
- org.pepstock.charba.client.utils.toast.ProgressBarTypeBuilder
-
public final class ProgressBarTypeBuilder extends Object
Comfortable object to create customIsProgressBarType
by a builder.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IsProgressBarType
build()
Returns new toast type.static ProgressBarTypeBuilder
create(String name, String backgroundColor)
Returns new builder instance, to build a custom toast type.static ProgressBarTypeBuilder
create(String name, Gradient gradient)
Returns new builder instance, to build a custom toast type.static ProgressBarTypeBuilder
create(String name, IsColor backgroundColor)
Returns new builder instance, to build a custom toast type.static ProgressBarTypeBuilder
create(Key name, String backgroundColor)
Returns new builder instance, to build a custom toast type.static ProgressBarTypeBuilder
create(Key name, Gradient gradient)
Returns new builder instance, to build a custom toast type.static ProgressBarTypeBuilder
create(Key name, IsColor backgroundColor)
Returns new builder instance, to build a custom toast type.
-
-
-
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 propertybackgroundColor
- 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 propertybackgroundColor
- 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 propertybackgroundColor
- 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 propertybackgroundColor
- 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 propertygradient
- 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 propertygradient
- background gradient of toast- Returns:
- new builder instance
-
build
public IsProgressBarType build()
Returns new toast type.- Returns:
- new toast type.
-
-