Class ToastItemAction


  • public final class ToastItemAction
    extends Object
    Is a wrapper of ActionItem which represents an immutable action, after the toast closure.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • getId

        public Key getId()
        Returns the action unique id.
        Returns:
        the action unique id
      • getContent

        public String getContent()
        Returns the content to show in the toast.
        Returns:
        the content to show in the toast
      • getClickEventHandler

        public ActionClickEventHandler getClickEventHandler()
        Returns the action click event handler instance.
        Returns:
        the action click event handler instance
      • getBackgroundColorAsString

        public String getBackgroundColorAsString()
        Returns the background color.
        Returns:
        the background color.
      • getBackgroundColor

        public IsColor getBackgroundColor()
        Returns the background color.
        Returns:
        the background color.
      • getBorderWidth

        public int getBorderWidth()
        Returns the border width.
        Returns:
        the border width.
      • getBorderColorAsString

        public String getBorderColorAsString()
        Returns the border color.
        Returns:
        the border color.
      • getBorderColor

        public IsColor getBorderColor()
        Returns the border color.
        Returns:
        the border color.
      • getBorderRadius

        public int getBorderRadius()
        Returns the border radius (in pixels).
        Returns:
        the border radius (in pixels).
      • getColorAsString

        public String getColorAsString()
        Returns the font color as string.
        Returns:
        font color as string
      • getColor

        public IsColor getColor()
        Returns the font color.
        Returns:
        font color
      • getFont

        public IsDefaultFont getFont()
        Returns the font element.
        Returns:
        the font