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, wait
getModifierKey, getText
public ClickEventHandler getClickEventHandler()
null
.null
.public OpenHandler getOpenHandler()
null
.null
.public CloseHandler getCloseHandler()
null
.null
.public IsDefaultContentElement getTitle()
getTitle
in interface IsDefaultToastOptions
public IsDefaultContentElement getLabel()
getLabel
in interface IsDefaultToastOptions
public IsDefaultAction getAction()
getAction
in interface IsDefaultToastOptions
public List<ToastItemAction> getActions()
public IsToastType getType()
getType
in interface IsDefaultToastOptions
public IsProgressBarType getProgressBarType()
getProgressBarType
in interface IsDefaultToastOptions
public int getProgressBarHeight()
getProgressBarHeight
in interface IsDefaultToastOptions
public boolean isHideProgressBar()
true
whether to hide the progress bar.isHideProgressBar
in interface IsDefaultToastOptions
true
whether to hide the progress barpublic boolean isHideShadow()
true
whether to hide the shadow of toast.isHideShadow
in interface IsDefaultToastOptions
true
whether to hide the shadow of toastpublic boolean isAutoHide()
isAutoHide
in interface IsDefaultToastOptions
public int getTimeout()
getTimeout
in interface IsDefaultToastOptions
public Img getIcon()
getIcon
in interface IsDefaultToastOptions
public int getBorderRadius()
getBorderRadius
in interface IsDefaultToastOptions
public Align getAlign()
getAlign
in interface IsDefaultToastOptions