Class DialogImpl

    • Constructor Detail

      • DialogImpl

        DialogImpl​(ChannelOwner parent,
                   java.lang.String type,
                   java.lang.String guid,
                   com.google.gson.JsonObject initializer)
    • Method Detail

      • accept

        public void accept​(java.lang.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 java.lang.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 java.lang.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 java.lang.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