public final class ActionItem extends Action
| Constructor and Description |
|---|
ActionItem(Key id,
ActionClickEventHandler handler)
Creates the action with the id of the toast and the handler to invoke when the user will click on the action.
The content is the value of the id. |
ActionItem(Key id,
String content,
ActionClickEventHandler handler)
Creates the action with the id of the action, the content to show on the toast and the handler to invoke when the user will click on the action.
|
ActionItem(String content,
ActionClickEventHandler handler)
Creates the action with the content to show on the toast and the handler to invoke when the user will click on the action.
The id of the action has been created automatically. |
ActionItem(String id,
String content,
ActionClickEventHandler handler)
Creates the action with the id of the action, the content to show on the toast and the handler to invoke when the user will click on the action.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ActionClickEventHandler |
getClickEventHandler()
Returns the action click event handler instance.
|
String |
getColorAsString()
Returns the font color as string.
|
String |
getContent()
Returns the content to show in the toast.
|
FontContainer |
getFontContainer()
Returns a font container instance to use in the default methods of this interface.
|
Key |
getId()
Returns the action unique id.
|
int |
hashCode() |
getBackgroundColor, getBackgroundColorAsString, getBorderColor, getBorderColorAsString, getBorderRadius, getBorderStyle, getBorderWidth, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setBorderRadius, setBorderStyle, setBorderWidthcheckAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParentcheckDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, typeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetColorAsStringgetFontpublic ActionItem(Key id, ActionClickEventHandler handler)
id - id of the toasthandler - the handler to use when a click was performed on the toastpublic ActionItem(String content, ActionClickEventHandler handler)
content - content to show on the toasthandler - the handler to use when a click was performed on the toastpublic ActionItem(String id, String content, ActionClickEventHandler handler)
id - id of the actioncontent - content to show on the toasthandler - the handler to use when a click was performed on the toastpublic ActionItem(Key id, String content, ActionClickEventHandler handler)
id - id of the actioncontent - content to show on the toasthandler - the handler to use when a click was performed on the toastpublic Key getId()
public String getContent()
public ActionClickEventHandler getClickEventHandler()
public final FontContainer getFontContainer()
HasFontgetFontContainer in interface HasFontpublic String getColorAsString()
IsDefaultFontContainergetColorAsString in interface IsDefaultFontContainergetColorAsString in interface HasFontgetColorAsString in interface IsDefaultContentElement