Interface DialogResult

All Known Implementing Classes:
AccessWarningPaneComplexReturn, BasicDialogValue.PrimitivesSubset, NamePassword, Yes, YesCancel, YesCancelSkip, YesNo, YesNoCancel, YesNoSandbox, YesNoSandboxLimited

public interface DialogResult
Note - this interface do not force return type, otherwise we will end with Object again. It is just pointing out, that what is returned, is DialogResult, so it can be traced via code. Also it gathers some most used methods on various implementations. Feel free to enlarge the list!
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    the index of the button.
    boolean
    Simplified decision model whether dialog was approved or not.
     
  • Method Details

    • getButtonIndex

      int getButtonIndex()
      the index of the button. By convention 0 = Yes. 1 = No, 2 = Cancel/sandbox
      Returns:
      button to be preselected in dialogue
    • toBoolean

      boolean toBoolean()
      Simplified decision model whether dialog was approved or not.
      Returns:
      true only and only if dialog was approved
    • writeValue

      String writeValue()