Class ToastItemOptions

    • Method Detail

      • getClickEventHandler

        public ClickEventHandler getClickEventHandler()
        Returns the CLICK event hander, if set, otherwise null.
        Returns:
        the CLICK event hander, if set, otherwise null.
      • getOpenHandler

        public OpenHandler getOpenHandler()
        Returns the OPEN hander, if set, otherwise null.
        Returns:
        the OPEN hander, if set, otherwise null.
      • getCloseHandler

        public CloseHandler getCloseHandler()
        Returns the CLOSE hander, if set, otherwise null.
        Returns:
        the CLOSE hander, if set, otherwise null.
      • getActions

        public List<ToastItemAction> getActions()
        Returns the actions to the toast.
        Returns:
        the actions to the toast.
      • getProgressBarHeight

        public int getProgressBarHeight()
        Returns the height (in pixels) of the toast progress bar.
        Specified by:
        getProgressBarHeight in interface IsDefaultToastOptions
        Returns:
        the height (in pixels) of the toast progress bar
      • isHideProgressBar

        public boolean isHideProgressBar()
        Returns true whether to hide the progress bar.
        Specified by:
        isHideProgressBar in interface IsDefaultToastOptions
        Returns:
        true whether to hide the progress bar
      • isHideShadow

        public boolean isHideShadow()
        Returns true whether to hide the shadow of toast.
        Specified by:
        isHideShadow in interface IsDefaultToastOptions
        Returns:
        true whether to hide the shadow of toast
      • isAutoHide

        public boolean isAutoHide()
        Returns whether to make the toast notification sticky, which means that the toast notification will never auto dismiss until clicked.
        Specified by:
        isAutoHide in interface IsDefaultToastOptions
        Returns:
        whether to make the toast notification sticky, which means that the toast notification will never auto dismiss until clicked
      • getTimeout

        public int getTimeout()
        Returns how long the toast notification should last.
        Specified by:
        getTimeout in interface IsDefaultToastOptions
        Returns:
        how long the toast notification should last
      • getIcon

        public Img getIcon()
        Returns the icon image set for toast.
        Specified by:
        getIcon in interface IsDefaultToastOptions
        Returns:
        the icon image set for toast
      • getBorderRadius

        public int getBorderRadius()
        Returns the border radius (in pixels).
        Specified by:
        getBorderRadius in interface IsDefaultToastOptions
        Returns:
        the border radius (in pixels).
      • getAlign

        public Align getAlign()
        Returns the alignment of the toast actions.
        Specified by:
        getAlign in interface IsDefaultToastOptions
        Returns:
        the alignment of the toast actions