Class Yes
- java.lang.Object
-
- net.adoptopenjdk.icedteaweb.ui.swing.dialogresults.BasicDialogValue.PrimitivesSubset
-
- net.adoptopenjdk.icedteaweb.ui.swing.dialogresults.Yes
-
- All Implemented Interfaces:
DialogResult
public class Yes extends BasicDialogValue.PrimitivesSubset
-
-
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 java.util.EnumSet<Primitive>getAllowedValues()intgetButtonIndex()the index of the button.static YesreadValue(java.lang.String s)java.lang.StringtoString()-
Methods inherited from class net.adoptopenjdk.icedteaweb.ui.swing.dialogresults.BasicDialogValue.PrimitivesSubset
checkValue, compareValue, compareValue, equals, getValue, hashCode, toBoolean, writeValue
-
-
-
-
Constructor Detail
-
Yes
public Yes()
-
Yes
protected Yes(Primitive p)
To allow inheritance. Overriders have to override getAllowedValues to work. This one fails with anything else then Yes
-
-
Method Detail
-
readValue
public static Yes 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 classBasicDialogValue.PrimitivesSubset- Returns:
- button to be preselected in dialogue
-
getAllowedValues
public java.util.EnumSet<Primitive> getAllowedValues()
- Specified by:
getAllowedValuesin classBasicDialogValue.PrimitivesSubset
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-