Class DisplayNotification

All Implemented Interfaces:
Future<Void>, Associator, Eligible

public class DisplayNotification extends ConsoleCommand
Causes a notification to be display on the top of the web console page.

The event triggers the creation of a notification widget in the web console page.

  • Constructor Details

    • DisplayNotification

      public DisplayNotification(String content, Map<String,Object> options)
      Creates a new event.

      The content must be valid HTML, i.e. it must start with a tag (usually a “<span>”). See the console’s notification method and the JavaScript documentation of the notification options for details.

      Parameters:
      content - the content (valid HTML)
      options - the options (must be serializable as JSON)
    • DisplayNotification

      public DisplayNotification(String content)
      Creates a new event without any options.

      The content must be valid HTML, i.e. it must start with a tag (usually a “<span>”).

      Parameters:
      content - the content (valid HTML)
  • Method Details