Class ShowNotificationTask
java.lang.Object
com.smartgwt.client.core.BaseClass
com.smartgwt.client.util.workflow.ProcessElement
com.smartgwt.client.util.workflow.ShowNotificationTask
- All Implemented Interfaces:
HasHandlers
Show a message which fades out automatically using
Notify
.-
Field Summary
Fields inherited from class com.smartgwt.client.core.BaseClass
config, configOnly, factoryCreated, factoryProperties, id, scClassName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
Auto-dismiss message after a short duration.Message to display.NotifyType for message.static ShowNotificationTask
getOrCreateRef
(JavaScriptObject jsObj) Where to show the message, specified as an edge ("T", "B", "R", "L") similar toCanvas.snapTo
, or "C" for center.Formula to be used to calculate the message contents.setAutoDismiss
(Boolean autoDismiss) Auto-dismiss message after a short duration.setMessage
(String message) Message to display.setNotifyType
(String notifyType) NotifyType for message.setPosition
(String position) Where to show the message, specified as an edge ("T", "B", "R", "L") similar toCanvas.snapTo
, or "C" for center.setTextFormula
(UserSummary textFormula) Formula to be used to calculate the message contents.Methods inherited from class com.smartgwt.client.util.workflow.ProcessElement
completeElement, convertToJavaScriptArray, executeElement, getBindOutput, getClassDescription, getComponentReferences, getDescription, getDynamicValue, getEditorType, getElementDescription, getForceSingle, getID, getInvalidTaskMessage, getJsObj, getMockMode, getNextElement, getOrCreateJsObj, getPassThruOutput, getProcessElements, getSupportsMultipleInputRecords, getTextFormulaValue, getTypeTitle, getUndefinedComponentMessage, getUnresolvedComponentMessage, getWaitDuration, getWaitFor, getWaitLocator, isCreated, isValid, objectReferencesLastTaskOutput, onInit, reset, setAttribute, setBindOutput, setClassDescription, setDescription, setEditorType, setForceSingle, setID, setJavaScriptObject, setMockMode, setNextElement, setPassThruOutput, setSupportsMultipleInputRecords, setTypeTitle, setUndefinedComponentMessage, setUnresolvedComponentMessage, setWaitDuration, setWaitFor, setWaitLocator, updateGlobalIDInCriteria, updateGlobalIDInTextFormula, updateGlobalIDInValueProperty, updateGlobalIDInValues, updateGlobalIDReferences, updateLastElementBindingReferences, updateLastElementInCriteria, updateLastElementInValueProperty, updateLastElementInValues
Methods inherited from class com.smartgwt.client.core.BaseClass
addDynamicProperty, addDynamicProperty, addDynamicProperty, addDynamicProperty, applyFactoryProperties, asSGWTComponent, clearDynamicProperty, createJsObj, destroy, doAddHandler, doInit, error, error, errorIfNotCreated, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsString, getAttributeAsStringArray, getClassName, getConfig, getHandlerCount, getRef, getRuleScope, getScClassName, getTestInstance, hasAutoAssignedID, hasDynamicProperty, internalSetID, internalSetID, isConfigOnly, isFactoryCreated, onBind, registerID, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setConfigOnly, setFactoryCreated, setProperty, setProperty, setProperty, setProperty, setRuleScope, setScClassName
-
Constructor Details
-
ShowNotificationTask
public ShowNotificationTask() -
ShowNotificationTask
-
-
Method Details
-
getOrCreateRef
-
create
- Overrides:
create
in classProcessElement
-
setAutoDismiss
Auto-dismiss message after a short duration.- Parameters:
autoDismiss
- New autoDismiss value. Default value is true- Returns:
ShowNotificationTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getAutoDismiss
Auto-dismiss message after a short duration.- Returns:
- Current autoDismiss value. Default value is true
-
setMessage
Message to display. To display a dynamic message seetextFormula
.- Parameters:
message
- New message value. Default value is null- Returns:
ShowNotificationTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getMessage
Message to display. To display a dynamic message seetextFormula
.- Returns:
- Current message value. Default value is null
-
setNotifyType
NotifyType for message.- Parameters:
notifyType
- New notifyType value. Default value is "message"- Returns:
ShowNotificationTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created- See Also:
-
getNotifyType
NotifyType for message.- Returns:
- Current notifyType value. Default value is "message"
- See Also:
-
setPosition
Where to show the message, specified as an edge ("T", "B", "R", "L") similar toCanvas.snapTo
, or "C" for center. The message will be shown at the center of the edge specified (or the very center for "C").- Parameters:
position
- New position value. Default value is "T"- Returns:
ShowNotificationTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getPosition
Where to show the message, specified as an edge ("T", "B", "R", "L") similar toCanvas.snapTo
, or "C" for center. The message will be shown at the center of the edge specified (or the very center for "C").- Returns:
- Current position value. Default value is "T"
-
setTextFormula
Formula to be used to calculate the message contents. Usemessage
property to assign a static message instead.Available fields for use in the formula are the current
rule context
.- Parameters:
textFormula
- New textFormula value. Default value is null- Returns:
ShowNotificationTask
instance, for chaining setter calls- Throws:
IllegalStateException
- this property cannot be changed after the underlying component has been created
-
getTextFormula
Formula to be used to calculate the message contents. Usemessage
property to assign a static message instead.Available fields for use in the formula are the current
rule context
.- Returns:
- Current textFormula value. Default value is null
-