public final class ToastItem extends NativeObjectContainer
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getContext()
Returns the unmodifiable toast context.
|
Date |
getDateTime(ActionItem action)
Returns the date time when the action invocation was applied to the toast.
|
Date |
getDateTime(Status status)
Returns the date time when the status was applied to the toast.
|
Date |
getDateTime(ToastItemAction action)
Returns the date time when the action invocation was applied to the toast.
|
Div |
getElement()
Returns the
Div element which represents the toast in the DOM. |
int |
getId()
Returns the unique id of toast item.
|
List<String> |
getLabel()
Returns the label of toast.
|
ToastItemOptions |
getOptions()
Returns the toast options.
|
Status |
getStatus()
Returns the status of the toast.
|
String |
getTitle()
Returns the title of the toast.
|
Status |
show()
Shows the toast item.
|
String |
toString() |
checkDefaultValuesArgument, 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, type
public int getId()
public Map<String,Object> getContext()
public Date getDateTime(Status status)
status
- the status to get the date timepublic Date getDateTime(ActionItem action)
action
- the action to get the date timepublic Date getDateTime(ToastItemAction action)
action
- the action to get the date timepublic Status getStatus()
public Div getElement()
Div
element which represents the toast in the DOM.Div
element which represents the toast in the DOMpublic String getTitle()
public ToastItemOptions getOptions()
public Status show()