public final class DefaultToastOptions extends AbstractNode
| Modifier and Type | Method and Description |
|---|---|
Action |
getAction()
Returns the actions element.
|
Align |
getAlign()
Returns the alignment of the toast action.
|
int |
getBorderRadius()
Returns the border radius (in pixels).
|
Img |
getIcon()
Returns the icon image set for toast.
|
Label |
getLabel()
Returns the label element.
|
ModifierKey |
getModifierKey()
Returns the modifier key to close the toast by clicking on it.
|
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.
|
Title |
getTitle()
Returns the title element.
|
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. |
void |
setAlign(Align align)
Sets the alignment of the toast action.
|
void |
setAutoHide(boolean hide)
Sets whether to make the toast notification sticky, which means that the toast notification will never auto dismiss until clicked.
|
void |
setBorderRadius(int borderRadius)
Sets the border radius (in pixels) of toast container.
|
void |
setHideProgressBar(boolean hide)
Sets
true whether to hide the progress bar. |
void |
setHideShadow(boolean hide)
Sets
true whether to hide the shadow of toast. |
void |
setIcon(Img icon)
Sets the icon image set for toast.
|
void |
setModifierKey(ModifierKey modifierKey)
Sets the modifier key to close the toast by clicking on it.
|
void |
setProgressBarHeight(int height)
Sets the height (in pixels) of the toast progress bar.
|
void |
setProgressBarType(IsProgressBarType type)
Sets the type of the toast progress bar.
|
void |
setTimeout(int timeout)
Sets how long the toast notification should last.
|
void |
setType(IsToastType type)
Sets the type of the toast.
|
checkAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParentcheckDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTextpublic final Title getTitle()
getTitle in interface IsDefaultToastOptionspublic final Label getLabel()
getLabel in interface IsDefaultToastOptionspublic final Action getAction()
getAction in interface IsDefaultToastOptionspublic final void setType(IsToastType type)
type - the type of the toastpublic final void setProgressBarType(IsProgressBarType type)
type - the type of the toast progress barpublic final void setProgressBarHeight(int height)
height - the height (in pixels) of the toast progress barpublic final void setHideProgressBar(boolean hide)
true whether to hide the progress bar.hide - true whether to hide the progress barpublic final void setHideShadow(boolean hide)
true whether to hide the shadow of toast.hide - true whether the shadow of toastpublic final void setAutoHide(boolean hide)
hide - whether to make the toast notification sticky, which means that the toast notification will never auto dismiss until clickedpublic final void setTimeout(int timeout)
timeout - how long the toast notification should lastpublic final void setIcon(Img icon)
icon - the icon image set for toastpublic final void setBorderRadius(int borderRadius)
borderRadius - the border radius (in pixels) of toast containerpublic final void setModifierKey(ModifierKey modifierKey)
modifierKey - the modifier key to close the toast by clicking on itpublic final void setAlign(Align align)
align - the alignment of the toast actionpublic final IsToastType getType()
getType in interface IsDefaultToastOptionspublic final IsProgressBarType getProgressBarType()
getProgressBarType in interface IsDefaultToastOptionspublic final int getProgressBarHeight()
getProgressBarHeight in interface IsDefaultToastOptionspublic final boolean isHideProgressBar()
true whether to hide the progress bar.isHideProgressBar in interface IsDefaultToastOptionstrue whether to hide the progress barpublic final boolean isHideShadow()
true whether to hide the shadow of toast.isHideShadow in interface IsDefaultToastOptionstrue whether to hide the shadow of toastpublic final boolean isAutoHide()
isAutoHide in interface IsDefaultToastOptionspublic final int getTimeout()
getTimeout in interface IsDefaultToastOptionspublic final Img getIcon()
getIcon in interface IsDefaultToastOptionspublic int getBorderRadius()
getBorderRadius in interface IsDefaultToastOptionspublic ModifierKey getModifierKey()
getModifierKey in interface IsDefaultToastOptionspublic final Align getAlign()
getAlign in interface IsDefaultToastOptions