Class NotifyAction
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.widgets.notify.NotifyAction
- All Implemented Interfaces:
HasHandlers
Represents an action that's associated with a message. Similar to the object form of
Callback
, except a title must also be specified, which is rendered as a clickable link in the
message (unless wholeMessage
is set).-
Field Summary
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe callback to fire when the action is executed.Should a click on this action automatically dismiss the associated message?static NotifyAction
getOrCreateRef
(JavaScriptObject jsObj) OverridesNotifySettings.actionSeparator
for this action.getTitle()
The title of the action to render into the message.Allows a click anywhere on the notification to execute the action.void
setActionCallback
(NotifyActionCallback callback) The callback to fire when the action is executed.setDismissMessage
(Boolean dismissMessage) Should a click on this action automatically dismiss the associated message?setSeparator
(String separator) OverridesNotifySettings.actionSeparator
for this action.The title of the action to render into the message.setWholeMessage
(Boolean wholeMessage) Allows a click anywhere on the notification to execute the action.Methods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
-
Constructor Details
-
NotifyAction
public NotifyAction() -
NotifyAction
-
-
Method Details
-
getOrCreateRef
-
setDismissMessage
Should a click on this action automatically dismiss the associated message?- Parameters:
dismissMessage
- New dismissMessage value. Default value is null- Returns:
NotifyAction
instance, for chaining setter calls
-
getDismissMessage
Should a click on this action automatically dismiss the associated message?- Returns:
- Current dismissMessage value. Default value is null
-
setSeparator
OverridesNotifySettings.actionSeparator
for this action.- Parameters:
separator
- New separator value. Default value is null- Returns:
NotifyAction
instance, for chaining setter calls- See Also:
-
getSeparator
OverridesNotifySettings.actionSeparator
for this action.- Returns:
- Current separator value. Default value is null
- See Also:
-
setTitle
The title of the action to render into the message.- Parameters:
title
- New title value. Default value is null- Returns:
NotifyAction
instance, for chaining setter calls- See Also:
-
getTitle
The title of the action to render into the message.- Returns:
- Current title value. Default value is null
- See Also:
-
setWholeMessage
Allows a click anywhere on the notification to execute the action. If true, the action won't be rendered as a link.- Parameters:
wholeMessage
- New wholeMessage value. Default value is null- Returns:
NotifyAction
instance, for chaining setter calls
-
getWholeMessage
Allows a click anywhere on the notification to execute the action. If true, the action won't be rendered as a link.- Returns:
- Current wholeMessage value. Default value is null
-
setActionCallback
The callback to fire when the action is executed.- Parameters:
callback
-
-
getActionCallback
The callback to fire when the action is executed.- Returns:
- callback
-