Class NotifyAction

All Implemented Interfaces:
HasHandlers

public class NotifyAction extends DataClass
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).
See Also:
  • Constructor Details

    • NotifyAction

      public NotifyAction()
    • NotifyAction

      public NotifyAction(JavaScriptObject jsObj)
  • Method Details

    • getOrCreateRef

      public static NotifyAction getOrCreateRef(JavaScriptObject jsObj)
    • setDismissMessage

      public NotifyAction setDismissMessage(Boolean dismissMessage)
      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

      public Boolean getDismissMessage()
      Should a click on this action automatically dismiss the associated message?
      Returns:
      Current dismissMessage value. Default value is null
    • setSeparator

      public NotifyAction setSeparator(String separator)
      Overrides NotifySettings.actionSeparator for this action.
      Parameters:
      separator - New separator value. Default value is null
      Returns:
      NotifyAction instance, for chaining setter calls
      See Also:
    • getSeparator

      public String getSeparator()
      Overrides NotifySettings.actionSeparator for this action.
      Returns:
      Current separator value. Default value is null
      See Also:
    • setTitle

      public NotifyAction setTitle(String title)
      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

      public String getTitle()
      The title of the action to render into the message.
      Returns:
      Current title value. Default value is null
      See Also:
    • setWholeMessage

      public NotifyAction setWholeMessage(Boolean wholeMessage)
      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

      public Boolean 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

      public void setActionCallback(NotifyActionCallback callback)
      The callback to fire when the action is executed.
      Parameters:
      callback -
    • getActionCallback

      public NotifyActionCallback getActionCallback()
      The callback to fire when the action is executed.
      Returns:
      callback