Class HTMLDialogElement

All Implemented Interfaces:
Serializable, Cloneable, org.htmlunit.corejs.javascript.ConstProperties, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

public class HTMLDialogElement extends HTMLElement
The JavaScript object HTMLDialogElement.
See Also:
  • Constructor Details

    • HTMLDialogElement

      public HTMLDialogElement()
      Creates a new instance.
  • Method Details

    • jsConstructor

      public void jsConstructor()
      JavaScript constructor.
      Overrides:
      jsConstructor in class HTMLElement
    • isOpen

      public boolean isOpen()
      Returns:
      the open property
    • setOpen

      public void setOpen(Object newValue)
      Sets the open attribute.
      Parameters:
      newValue - the new value to set
    • show

      public void show()
      Displays the dialog modelessly.
    • close

      public void close(Object returnValue)
      Closes the dialog.
      Parameters:
      returnValue - the return value
    • showModal

      public void showModal()
      Displays the dialog modal.
    • getReturnValue

      public String getReturnValue()
      Returns:
      the returnValue property
    • setReturnValue

      public void setReturnValue(Object newValue)
      Sets the returnValue attribute.
      Parameters:
      newValue - the new value to set