Class ToastItemAction
- java.lang.Object
-
- org.pepstock.charba.client.utils.toast.ToastItemAction
-
public final class ToastItemAction extends Object
Is a wrapper ofActionItemwhich 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 IsColorgetBackgroundColor()Returns the background color.StringgetBackgroundColorAsString()Returns the background color.IsColorgetBorderColor()Returns the border color.StringgetBorderColorAsString()Returns the border color.intgetBorderRadius()Returns the border radius (in pixels).intgetBorderWidth()Returns the border width.ActionClickEventHandlergetClickEventHandler()Returns the action click event handler instance.IsColorgetColor()Returns the font color.StringgetColorAsString()Returns the font color as string.StringgetContent()Returns the content to show in the toast.IsDefaultFontgetFont()Returns the font element.KeygetId()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
-
-