Package | Description |
---|---|
org.pepstock.charba.client.utils.toast |
Contains all classes to use
Toaster utility. |
Modifier and Type | Method and Description |
---|---|
static ToastOptionsBuilder |
ToastOptionsBuilder.create()
Returns new builder instance.
|
static ToastOptionsBuilder |
ToastOptionsBuilder.create(IsToastType type)
Returns new builder instance, setting the toast type.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setActionBackgroundColor(IsColor backgroundColor)
Sets the background color of action.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setActionBackgroundColor(String backgroundColor)
Sets the background color of action.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setActionBorderColor(IsColor borderColor)
Sets the border color of action.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setActionBorderColor(String borderColor)
Sets the border color of action.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setActionBorderRadius(int borderRadius)
Sets the border radius (in pixels) of toast action.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setActionBorderStyle(BorderStyle style)
Sets the border style set for the action element.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setActionBorderWidth(int borderWidth)
Sets the border width of action.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setActionColor(IsColor color)
Sets the font color of action.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setActionColor(String color)
Sets the font color of action.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setActionFontFamily(String family)
Sets the font family, follows CSS font-family options of action.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setActionFontLineHeight(double lineHeight)
Sets the line height of action.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setActionFontLineHeight(String lineHeight)
Sets the line height of action.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setActionFontSize(int size)
Sets the font size of action.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setActionFontStyle(FontStyle style)
Sets the font style, follows CSS font-style options (i.e.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setActionFontWeight(Weight weight)
Sets the font weight, follows CSS font-style-weight options of action.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setActions(ActionItem... actions)
Sets the actions to the toast.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setActions(List<ActionItem> actions)
Sets the actions to the toast.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setAlign(Align align)
Sets the alignment of the toast action.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setAutoHide(boolean hide)
Sets whether to make the toast notification sticky, which means that the toast notification will never auto dismiss until clicked.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setBorderRadius(int borderRadius)
Sets the border radius (in pixels) of toast container.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setClickEventHandler(ClickEventHandler clickEventHandler)
Sets the CLICK event hander.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setCloseHandler(CloseHandler closeHandler)
Sets the CLOSE hander.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setHideProgressBar(boolean hide)
Sets
true whether to hide the progress bar. |
ToastOptionsBuilder |
ToastOptionsBuilder.setHideShadow(boolean hide)
Sets
true whether to hide the shadow of toast. |
ToastOptionsBuilder |
ToastOptionsBuilder.setIcon(Img icon)
Sets the icon image set for toast.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setLabelColor(IsColor color)
Sets the font color of label.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setLabelColor(String color)
Sets the font color of label.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setLabelFontFamily(String family)
Sets the font family, follows CSS font-family options of label.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setLabelFontLineHeight(double lineHeight)
Sets the line height of label.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setLabelFontLineHeight(String lineHeight)
Sets the line height of label.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setLabelFontSize(int size)
Sets the font size of label.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setLabelFontStyle(FontStyle style)
Sets the font style, follows CSS font-style options (i.e.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setLabelFontWeight(Weight weight)
Sets the font weight, follows CSS font-style-weight options of label.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setModifierKey(ModifierKey modifierKey)
Sets the modifier key to close the toast by clicking on it.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setOpenHandler(OpenHandler openHandler)
Sets the OPEN hander.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setProgressBarHeight(int height)
Sets the height (in pixels) of the toast progress bar.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setProgressBarType(IsProgressBarType type)
Sets the type of the toast progress bar.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setTimeout(int timeout)
Sets how long the toast notification should last.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setTitleColor(IsColor color)
Sets the font color of title.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setTitleColor(String color)
Sets the font color of title.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setTitleFontFamily(String family)
Sets the font family, follows CSS font-family options of title.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setTitleFontLineHeight(double lineHeight)
Sets the line height of title.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setTitleFontLineHeight(String lineHeight)
Sets the line height of title.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setTitleFontSize(int size)
Sets the font size of title.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setTitleFontStyle(FontStyle style)
Sets the font style, follows CSS font-style options (i.e.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setTitleFontWeight(Weight weight)
Sets the font weight, follows CSS font-style-weight options of title.
|
ToastOptionsBuilder |
ToastOptionsBuilder.setType(IsToastType type)
Sets the type of the toast.
|