Interface IsDefaultToastOptions
-
- All Known Implementing Classes:
DefaultToastOptions
,ToastItemOptions
,ToastOptions
public interface IsDefaultToastOptions
Defines the toast options container, and the static defaults.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IsDefaultAction
getAction()
Returns the actions of the toast.default Align
getAlign()
Returns the alignment of the toast actions.default int
getBorderRadius()
Returns the border radius (in pixels) of toast container.default Img
getIcon()
Returns the icon image set for toast.IsDefaultContentElement
getLabel()
Returns the label of the toast.default ModifierKey
getModifierKey()
Returns the modifier key to close the toast by clicking on it.default int
getProgressBarHeight()
Returns the height (in pixels) of the toast progress bar.default IsProgressBarType
getProgressBarType()
Returns the type of the toast progress bar.default String
getText()
Returns the text of the toast.default int
getTimeout()
Returns how long the toast notification should last.IsDefaultContentElement
getTitle()
Returns the title of the toast.default IsToastType
getType()
Returns the type of the toast.default boolean
isAutoHide()
Returns whether to make the toast notification sticky, which means that the toast notification will never auto dismiss until clicked.default boolean
isHideProgressBar()
Returnstrue
whether to hide the progress bar.default boolean
isHideShadow()
Returnstrue
whether to hide the shadow of toast.
-
-
-
Method Detail
-
getTitle
IsDefaultContentElement getTitle()
Returns the title of the toast.- Returns:
- the title of the toast
-
getLabel
IsDefaultContentElement getLabel()
Returns the label of the toast.- Returns:
- the label of the toast
-
getAction
IsDefaultAction getAction()
Returns the actions of the toast.- Returns:
- the actions of the toast
-
getAlign
default Align getAlign()
Returns the alignment of the toast actions.- Returns:
- the alignment of the toast actions
-
getText
default String getText()
Returns the text of the toast.- Returns:
- the text of the toast
-
getType
default IsToastType getType()
Returns the type of the toast.- Returns:
- the type of the toast
-
getProgressBarType
default IsProgressBarType getProgressBarType()
Returns the type of the toast progress bar.- Returns:
- the type of the toast progress bar
-
getProgressBarHeight
default int getProgressBarHeight()
Returns the height (in pixels) of the toast progress bar.- Returns:
- the height (in pixels) of the toast progress bar
-
isHideProgressBar
default boolean isHideProgressBar()
Returnstrue
whether to hide the progress bar.- Returns:
true
whether to hide the progress bar
-
isHideShadow
default boolean isHideShadow()
Returnstrue
whether to hide the shadow of toast.- Returns:
true
whether to hide the shadow of toast
-
isAutoHide
default boolean isAutoHide()
Returns whether to make the toast notification sticky, which means that the toast notification will never auto dismiss until clicked.- Returns:
- whether to make the toast notification sticky, which means that the toast notification will never auto dismiss until clicked
-
getTimeout
default int getTimeout()
Returns how long the toast notification should last.- Returns:
- how long the toast notification should last
-
getBorderRadius
default int getBorderRadius()
Returns the border radius (in pixels) of toast container.- Returns:
- the border radius (in pixels) of toast container
-
getIcon
default Img getIcon()
Returns the icon image set for toast.- Returns:
- the icon image set for toast
-
getModifierKey
default ModifierKey getModifierKey()
Returns the modifier key to close the toast by clicking on it.- Returns:
- the modifier key to close the toast by clicking on it
-
-