Class ToastItemAction
- java.lang.Object
-
- org.pepstock.charba.client.utils.toast.ToastItemAction
-
public final class ToastItemAction extends Object
Is a wrapper ofActionItem
which represents an immutable action, after the toast closure.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IsColor
getBackgroundColor()
Returns the background color.String
getBackgroundColorAsString()
Returns the background color.IsColor
getBorderColor()
Returns the border color.String
getBorderColorAsString()
Returns the border color.int
getBorderRadius()
Returns the border radius (in pixels).int
getBorderWidth()
Returns the border width.ActionClickEventHandler
getClickEventHandler()
Returns the action click event handler instance.IsColor
getColor()
Returns the font color.String
getColorAsString()
Returns the font color as string.String
getContent()
Returns the content to show in the toast.IsDefaultFont
getFont()
Returns the font element.Key
getId()
Returns the action unique id.
-
-
-
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
-
-