Class YesCancel
java.lang.Object
net.adoptopenjdk.icedteaweb.ui.swing.dialogresults.Yes
net.adoptopenjdk.icedteaweb.ui.swing.dialogresults.YesCancel
- All Implemented Interfaces:
DialogResult
- Direct Known Subclasses:
YesCancelSkip
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic YesCancelcancel()booleancompareValue(net.adoptopenjdk.icedteaweb.ui.swing.dialogresults.BasicDialogValue.PrimitivesSubset with) booleancompareValue(Primitive with) booleanintthe index of the button.getValue()inthashCode()static YesCancelbooleanSimplified decision model whether dialog was approved or not.static YesCancelyes()
-
Field Details
-
value
-
-
Constructor Details
-
YesCancel
-
-
Method Details
-
yes
-
cancel
-
readValue
-
getButtonIndex
public int getButtonIndex()Description copied from interface:DialogResultthe index of the button. By convention 0 = Yes. 1 = No, 2 = Cancel/sandbox- Specified by:
getButtonIndexin interfaceDialogResult- Overrides:
getButtonIndexin classYes- Returns:
- button to be preselected in dialogue
-
getAllowedValues
- Overrides:
getAllowedValuesin classYes
-
writeValue
- Specified by:
writeValuein interfaceDialogResult
-
toBoolean
public boolean toBoolean()Description copied from interface:DialogResultSimplified decision model whether dialog was approved or not.- Specified by:
toBooleanin interfaceDialogResult- Returns:
- true only and only if dialog was approved
-
getValue
-
compareValue
-
compareValue
public boolean compareValue(net.adoptopenjdk.icedteaweb.ui.swing.dialogresults.BasicDialogValue.PrimitivesSubset with) -
equals
-
hashCode
public int hashCode()
-