Class YesCancel
- java.lang.Object
-
- net.adoptopenjdk.icedteaweb.ui.swing.dialogresults.BasicDialogValue.PrimitivesSubset
-
- net.adoptopenjdk.icedteaweb.ui.swing.dialogresults.Yes
-
- net.adoptopenjdk.icedteaweb.ui.swing.dialogresults.YesCancel
-
- All Implemented Interfaces:
DialogResult
- Direct Known Subclasses:
YesCancelSkip
public class YesCancel extends Yes
-
-
Field Summary
-
Fields inherited from class net.adoptopenjdk.icedteaweb.ui.swing.dialogresults.BasicDialogValue.PrimitivesSubset
value
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static YesCancelcancel()java.util.EnumSet<Primitive>getAllowedValues()intgetButtonIndex()the index of the button.static YesCancelreadValue(java.lang.String s)static YesCancelyes()-
Methods inherited from class net.adoptopenjdk.icedteaweb.ui.swing.dialogresults.BasicDialogValue.PrimitivesSubset
checkValue, compareValue, compareValue, equals, getValue, hashCode, toBoolean, writeValue
-
-
-
-
Constructor Detail
-
YesCancel
protected YesCancel(Primitive valueOf)
-
-
Method Detail
-
yes
public static YesCancel yes()
-
cancel
public static YesCancel cancel()
-
readValue
public static YesCancel readValue(java.lang.String s)
-
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
public java.util.EnumSet<Primitive> getAllowedValues()
- Overrides:
getAllowedValuesin classYes
-
-