com.smartgwt.client.util.workflow

## 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:
    com.google.gwt.event.shared.HasHandlers

      public class ShowNotificationTask
      extends ProcessElement

  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

    Constructors
    Constructor and Description
    `ShowNotificationTask()`
    `ShowNotificationTask(com.google.gwt.core.client.JavaScriptObject jsObj)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `com.google.gwt.core.client.JavaScriptObject` | `create()`
    `java.lang.Boolean` | `getAutoDismiss()` Auto-dismiss message after a short duration.
    `java.lang.String` | `getMessage()` Message to display.
    `java.lang.String` | `getNotifyType()` NotifyType for message.
    `static ShowNotificationTask` | `getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)`
    `java.lang.String` | `getPosition()` Where to show the message, specified as an edge ("T", "B", "R", "L") similar to `Canvas.snapTo`, or "C" for center.
    `UserSummary` | `getTextFormula()` Formula to be used to calculate the message contents.
    `ShowNotificationTask` | `setAutoDismiss(java.lang.Boolean autoDismiss)` Auto-dismiss message after a short duration.
    `ShowNotificationTask` | `setMessage(java.lang.String message)` Message to display.
    `ShowNotificationTask` | `setNotifyType(java.lang.String notifyType)` NotifyType for message.
    `ShowNotificationTask` | `setPosition(java.lang.String position)` Where to show the message, specified as an edge ("T", "B", "R", "L") similar to `Canvas.snapTo`, or "C" for center.
    `ShowNotificationTask` | `setTextFormula(UserSummary textFormula)` Formula to be used to calculate the message contents.

    - ### Methods inherited from class com.smartgwt.client.util.workflow.ProcessElement

      `convertToJavaScriptArray, getClassDescription, getDescription, getEditorType, getElementDescription, getID, getJsObj, getNextElement, getOrCreateJsObj, getPassThruOutput, getProcessElements, getTitle, isCreated, onInit, setAttribute, setClassDescription, setDescription, setEditorType, setID, setJavaScriptObject, setNextElement, setPassThruOutput, setTitle`

    - ### Methods inherited from class com.smartgwt.client.core.BaseClass

      `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`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ShowNotificationTask

          public ShowNotificationTask()

    - #### ShowNotificationTask

          public ShowNotificationTask(com.google.gwt.core.client.JavaScriptObject jsObj)

  - ### Method Detail

    - #### getOrCreateRef

          public static ShowNotificationTask getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)

    - #### create

          public com.google.gwt.core.client.JavaScriptObject create()

      Overrides:
        `create` in class `ProcessElement`

    - #### setAutoDismiss

          public ShowNotificationTask setAutoDismiss(java.lang.Boolean autoDismiss)
                                              throws java.lang.IllegalStateException

      Auto-dismiss message after a short duration.
      Parameters:
        `autoDismiss` - New autoDismiss value. Default value is true
      Returns:
        `ShowNotificationTask` instance, for chaining setter calls
      Throws:
        `java.lang.IllegalStateException` - this property cannot be changed after the underlying component has been created

    - #### getAutoDismiss

          public java.lang.Boolean getAutoDismiss()

      Auto-dismiss message after a short duration.
      Returns:
        Current autoDismiss value. Default value is true

    - #### setMessage

          public ShowNotificationTask setMessage(java.lang.String message)
                                          throws java.lang.IllegalStateException

      Message to display. To display a dynamic message see `textFormula`.
      Parameters:
        `message` - New message value. Default value is null
      Returns:
        `ShowNotificationTask` instance, for chaining setter calls
      Throws:
        `java.lang.IllegalStateException` - this property cannot be changed after the underlying component has been created

    - #### getMessage

          public java.lang.String getMessage()

      Message to display. To display a dynamic message see `textFormula`.
      Returns:
        Current message value. Default value is null

    - #### setNotifyType

          public ShowNotificationTask setNotifyType(java.lang.String notifyType)
                                             throws java.lang.IllegalStateException

      NotifyType for message.
      Parameters:
        `notifyType` - New notifyType value. Default value is "message"
      Returns:
        `ShowNotificationTask` instance, for chaining setter calls
      Throws:
        `java.lang.IllegalStateException` - this property cannot be changed after the underlying component has been created
      See Also:
        `NotifyType`

    - #### getNotifyType

          public java.lang.String getNotifyType()

      NotifyType for message.
      Returns:
        Current notifyType value. Default value is "message"
      See Also:
        `NotifyType`

    - #### setPosition

          public ShowNotificationTask setPosition(java.lang.String position)
                                           throws java.lang.IllegalStateException

      Where to show the message, specified as an edge ("T", "B", "R", "L") similar to `Canvas.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:
        `java.lang.IllegalStateException` - this property cannot be changed after the underlying component has been created

    - #### getPosition

          public java.lang.String getPosition()

      Where to show the message, specified as an edge ("T", "B", "R", "L") similar to `Canvas.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

          public ShowNotificationTask setTextFormula(UserSummary textFormula)
                                              throws java.lang.IllegalStateException

      Formula to be used to calculate the message contents. Use `message` 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:
        `java.lang.IllegalStateException` - this property cannot be changed after the underlying component has been created

    - #### getTextFormula

          public UserSummary getTextFormula()

      Formula to be used to calculate the message contents. Use `message` 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