Interface DialogResult
-
- All Known Implementing Classes:
AccessWarningPaneComplexReturn,BasicDialogValue.PrimitivesSubset,NamePassword,Yes,YesCancel,YesCancelSkip,YesNo,YesNoCancel,YesNoSandbox,YesNoSandboxLimited
public interface DialogResultNote - 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetButtonIndex()the index of the button.booleantoBoolean()Simplified decision model whether dialog was approved or not.java.lang.StringwriteValue()
-
-
-
Method Detail
-
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
java.lang.String writeValue()
-
-