Class DialogImpl

All Implemented Interfaces:
Dialog

class DialogImpl extends ChannelOwner implements Dialog
  • Field Details

  • Constructor Details

  • Method Details

    • accept

      public void accept(String promptText)
      Description copied from interface: Dialog
      Returns when the dialog has been accepted.
      Specified by:
      accept in interface Dialog
      Parameters:
      promptText - A text to enter in prompt. Does not cause any effects if the dialog's type is not prompt. Optional.
    • dismiss

      public void dismiss()
      Description copied from interface: Dialog
      Returns when the dialog has been dismissed.
      Specified by:
      dismiss in interface Dialog
    • defaultValue

      public String defaultValue()
      Description copied from interface: Dialog
      If dialog is prompt, returns default prompt value. Otherwise, returns empty string.
      Specified by:
      defaultValue in interface Dialog
    • message

      public String message()
      Description copied from interface: Dialog
      A message displayed in the dialog.
      Specified by:
      message in interface Dialog
    • page

      public PageImpl page()
      Description copied from interface: Dialog
      The page that initiated this dialog, if available.
      Specified by:
      page in interface Dialog
    • type

      public String type()
      Description copied from interface: Dialog
      Returns dialog's type, can be one of alert, beforeunload, confirm or prompt.
      Specified by:
      type in interface Dialog