Class ToastTypeBuilder
- java.lang.Object
-
- org.pepstock.charba.client.utils.toast.ToastTypeBuilder
-
public final class ToastTypeBuilder extends Object
Comfortable object to create customIsToastType
by a builder.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IsToastType
build()
Returns new toast type.static ToastTypeBuilder
create(String name, String backgroundColor)
Returns new builder instance, to build a custom toast type.static ToastTypeBuilder
create(String name, String color, String backgroundColor)
Returns new builder instance, to build a custom toast type.static ToastTypeBuilder
create(String name, String color, Gradient gradient)
Returns new builder instance, to build a custom toast type.static ToastTypeBuilder
create(String name, String color, Pattern pattern)
Returns new builder instance, to build a custom toast type.static ToastTypeBuilder
create(String name, Gradient gradient)
Returns new builder instance, to build a custom toast type.static ToastTypeBuilder
create(String name, IsColor backgroundColor)
Returns new builder instance, to build a custom toast type.static ToastTypeBuilder
create(String name, IsColor color, Gradient gradient)
Returns new builder instance, to build a custom toast type.static ToastTypeBuilder
create(String name, IsColor color, IsColor backgroundColor)
Returns new builder instance, to build a custom toast type.static ToastTypeBuilder
create(String name, IsColor color, Pattern pattern)
Returns new builder instance, to build a custom toast type.static ToastTypeBuilder
create(String name, Pattern pattern)
Returns new builder instance, to build a custom toast type.static ToastTypeBuilder
create(Key name, String backgroundColor)
Returns new builder instance, to build a custom toast type.static ToastTypeBuilder
create(Key name, String color, String backgroundColor)
Returns new builder instance, to build a custom toast type.static ToastTypeBuilder
create(Key name, String color, Gradient gradient)
Returns new builder instance, to build a custom toast type.static ToastTypeBuilder
create(Key name, String color, Pattern pattern)
Returns new builder instance, to build a custom toast type.static ToastTypeBuilder
create(Key name, Gradient gradient)
Returns new builder instance, to build a custom toast type.static ToastTypeBuilder
create(Key name, IsColor backgroundColor)
Returns new builder instance, to build a custom toast type.static ToastTypeBuilder
create(Key name, IsColor color, Gradient gradient)
Returns new builder instance, to build a custom toast type.static ToastTypeBuilder
create(Key name, IsColor color, IsColor backgroundColor)
Returns new builder instance, to build a custom toast type.static ToastTypeBuilder
create(Key name, IsColor color, Pattern pattern)
Returns new builder instance, to build a custom toast type.static ToastTypeBuilder
create(Key name, Pattern pattern)
Returns new builder instance, to build a custom toast type.
-
-
-
Method Detail
-
create
public static ToastTypeBuilder 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 ToastTypeBuilder 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 ToastTypeBuilder 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 ToastTypeBuilder 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 ToastTypeBuilder create(String name, String color, String backgroundColor)
Returns new builder instance, to build a custom toast type.- Parameters:
name
- name to use inside the native object as name of propertycolor
- color of the toast type for textbackgroundColor
- background color of toast- Returns:
- new builder instance
-
create
public static ToastTypeBuilder create(Key name, String color, String backgroundColor)
Returns new builder instance, to build a custom toast type.- Parameters:
name
- name to use inside the native object as name of propertycolor
- color of the toast type for textbackgroundColor
- background color of toast- Returns:
- new builder instance
-
create
public static ToastTypeBuilder create(String name, IsColor color, IsColor backgroundColor)
Returns new builder instance, to build a custom toast type.- Parameters:
name
- name to use inside the native object as name of propertycolor
- color of the toast type for textbackgroundColor
- background color of toast- Returns:
- new builder instance
-
create
public static ToastTypeBuilder create(Key name, IsColor color, IsColor backgroundColor)
Returns new builder instance, to build a custom toast type.- Parameters:
name
- name to use inside the native object as name of propertycolor
- color of the toast type for textbackgroundColor
- background color of toast- Returns:
- new builder instance
-
create
public static ToastTypeBuilder create(String name, Pattern pattern)
Returns new builder instance, to build a custom toast type.- Parameters:
name
- name to use inside the native object as name of propertypattern
- background pattern of toast- Returns:
- new builder instance
-
create
public static ToastTypeBuilder create(Key name, Pattern pattern)
Returns new builder instance, to build a custom toast type.- Parameters:
name
- name to use inside the native object as name of propertypattern
- background pattern of toast- Returns:
- new builder instance
-
create
public static ToastTypeBuilder create(String name, String color, Pattern pattern)
Returns new builder instance, to build a custom toast type.- Parameters:
name
- name to use inside the native object as name of propertycolor
- color of the toast type for textpattern
- background pattern of toast- Returns:
- new builder instance
-
create
public static ToastTypeBuilder create(Key name, String color, Pattern pattern)
Returns new builder instance, to build a custom toast type.- Parameters:
name
- name to use inside the native object as name of propertycolor
- color of the toast type for textpattern
- background pattern of toast- Returns:
- new builder instance
-
create
public static ToastTypeBuilder create(String name, IsColor color, Pattern pattern)
Returns new builder instance, to build a custom toast type.- Parameters:
name
- name to use inside the native object as name of propertycolor
- color of the toast type for textpattern
- background pattern of toast- Returns:
- new builder instance
-
create
public static ToastTypeBuilder create(Key name, IsColor color, Pattern pattern)
Returns new builder instance, to build a custom toast type.- Parameters:
name
- name to use inside the native object as name of propertycolor
- color of the toast type for textpattern
- background pattern of toast- Returns:
- new builder instance
-
create
public static ToastTypeBuilder 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 ToastTypeBuilder 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
-
create
public static ToastTypeBuilder create(String name, String color, Gradient gradient)
Returns new builder instance, to build a custom toast type.- Parameters:
name
- name to use inside the native object as name of propertycolor
- color of the toast type for textgradient
- background gradient of toast- Returns:
- new builder instance
-
create
public static ToastTypeBuilder create(Key name, String color, Gradient gradient)
Returns new builder instance, to build a custom toast type.- Parameters:
name
- name to use inside the native object as name of propertycolor
- color of the toast type for textgradient
- background gradient of toast- Returns:
- new builder instance
-
create
public static ToastTypeBuilder create(String name, IsColor color, Gradient gradient)
Returns new builder instance, to build a custom toast type.- Parameters:
name
- name to use inside the native object as name of propertycolor
- color of the toast type for textgradient
- background gradient of toast- Returns:
- new builder instance
-
create
public static ToastTypeBuilder create(Key name, IsColor color, Gradient gradient)
Returns new builder instance, to build a custom toast type.- Parameters:
name
- name to use inside the native object as name of propertycolor
- color of the toast type for textgradient
- background gradient of toast- Returns:
- new builder instance
-
build
public IsToastType build()
Returns new toast type.- Returns:
- new toast type.
-
-