Class HTMLDialogElement

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.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:
    Serialized Form
    • Constructor Detail

      • HTMLDialogElement

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

      • isOpen

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

        public void setOpen​(java.lang.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​(java.lang.Object returnValue)
        Closes the dialog.
        Parameters:
        returnValue - the return value
      • showModal

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

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

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