All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hubspot.chrome.devtools.client.core.page.JavascriptDialogOpeningEvent Maven / Gradle / Ivy

package com.hubspot.chrome.devtools.client.core.page;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hubspot.chrome.devtools.client.core.Event;

/**
 * Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to
 * open.
 */
public final class JavascriptDialogOpeningEvent extends Event {
  private String url;

  private String message;

  private DialogType type;

  private String defaultPrompt;

  @JsonCreator
  public JavascriptDialogOpeningEvent(@JsonProperty("url") String url,
      @JsonProperty("message") String message, @JsonProperty("type") DialogType type,
      @JsonProperty("defaultPrompt") String defaultPrompt) {
    this.url = url;
    this.message = message;
    this.type = type;
    this.defaultPrompt = defaultPrompt;
  }

  public String getUrl() {
    return url;
  }

  public String getMessage() {
    return message;
  }

  public DialogType getType() {
    return type;
  }

  public String getDefaultPrompt() {
    return defaultPrompt;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy