Class BasicDialogValue.PrimitivesSubset
java.lang.Object
net.adoptopenjdk.icedteaweb.ui.swing.dialogresults.BasicDialogValue.PrimitivesSubset
- All Implemented Interfaces:
DialogResult
- Direct Known Subclasses:
Yes
- Enclosing class:
BasicDialogValue
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final voidbooleanbooleancompareValue(Primitive with) booleanintthe index of the button.getValue()inthashCode()booleanSimplified decision model whether dialog was approved or not.
-
Field Details
-
value
-
-
Constructor Details
-
PrimitivesSubset
-
-
Method Details
-
getAllowedValues
-
checkValue
-
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
-
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- Returns:
- button to be preselected in dialogue
-
equals
-
hashCode
-