Class HtmlDialog

All Implemented Interfaces:
Serializable, Cloneable, Element, Node

public class HtmlDialog extends HtmlElement
Wrapper for the HTML element "dialog".
See Also:
  • Field Details

  • Method Details

    • getDefaultStyleDisplay

      public HtmlElement.DisplayStyle getDefaultStyleDisplay()
      INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
      Returns the default display style.
      Overrides:
      getDefaultStyleDisplay in class HtmlElement
      Returns:
      the default display style
    • isOpen

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

      public boolean isModal()
      Returns:
      true if the dialog is open and modal.
    • setOpen

      public void setOpen(boolean newValue)
      Sets the open state.
      Parameters:
      newValue - the new value
    • show

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

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

      public void close(String returnValue)
      Displays the dialog modal.
      Parameters:
      returnValue - the return value
    • getReturnValue

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

      public void setReturnValue(String newValue)
      Sets the open state.
      Parameters:
      newValue - the new value