public final class ToastItemOptions extends Object implements IsDefaultToastOptions
ToastOptions, used by ToastItem, which exposes all "get" methods in order to be immutable.| Modifier and Type | Method and Description |
|---|---|
IsDefaultAction |
getAction()
Returns the actions of the toast.
|
List<ToastItemAction> |
getActions()
Returns the actions to the toast.
|
Align |
getAlign()
Returns the alignment of the toast actions.
|
int |
getBorderRadius()
Returns the border radius (in pixels).
|
ClickEventHandler |
getClickEventHandler()
Returns the CLICK event hander, if set, otherwise
null. |
CloseHandler |
getCloseHandler()
Returns the CLOSE hander, if set, otherwise
null. |
Img |
getIcon()
Returns the icon image set for toast.
|
IsDefaultContentElement |
getLabel()
Returns the label of the toast.
|
OpenHandler |
getOpenHandler()
Returns the OPEN hander, if set, otherwise
null. |
int |
getProgressBarHeight()
Returns the height (in pixels) of the toast progress bar.
|
IsProgressBarType |
getProgressBarType()
Returns the type of the toast progress bar.
|
int |
getTimeout()
Returns how long the toast notification should last.
|
IsDefaultContentElement |
getTitle()
Returns the title of the toast.
|
IsToastType |
getType()
Returns the type of the toast.
|
boolean |
isAutoHide()
Returns whether to make the toast notification sticky, which means that the toast notification will never auto dismiss until clicked.
|
boolean |
isHideProgressBar()
Returns
true whether to hide the progress bar. |
boolean |
isHideShadow()
Returns
true whether to hide the shadow of toast. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetModifierKey, getTextpublic ClickEventHandler getClickEventHandler()
null.null.public OpenHandler getOpenHandler()
null.null.public CloseHandler getCloseHandler()
null.null.public IsDefaultContentElement getTitle()
getTitle in interface IsDefaultToastOptionspublic IsDefaultContentElement getLabel()
getLabel in interface IsDefaultToastOptionspublic IsDefaultAction getAction()
getAction in interface IsDefaultToastOptionspublic List<ToastItemAction> getActions()
public IsToastType getType()
getType in interface IsDefaultToastOptionspublic IsProgressBarType getProgressBarType()
getProgressBarType in interface IsDefaultToastOptionspublic int getProgressBarHeight()
getProgressBarHeight in interface IsDefaultToastOptionspublic boolean isHideProgressBar()
true whether to hide the progress bar.isHideProgressBar in interface IsDefaultToastOptionstrue whether to hide the progress barpublic boolean isHideShadow()
true whether to hide the shadow of toast.isHideShadow in interface IsDefaultToastOptionstrue whether to hide the shadow of toastpublic boolean isAutoHide()
isAutoHide in interface IsDefaultToastOptionspublic int getTimeout()
getTimeout in interface IsDefaultToastOptionspublic Img getIcon()
getIcon in interface IsDefaultToastOptionspublic int getBorderRadius()
getBorderRadius in interface IsDefaultToastOptionspublic Align getAlign()
getAlign in interface IsDefaultToastOptions