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
abstract static class BasicDialogValue.PrimitivesSubset extends java.lang.Object implements DialogResult
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPrimitivesSubset(Primitive value)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) voidcheckValue(Primitive p)booleancompareValue(BasicDialogValue.PrimitivesSubset with)booleancompareValue(Primitive with)booleanequals(java.lang.Object obj)(package private) abstract java.util.EnumSet<Primitive>getAllowedValues()intgetButtonIndex()the index of the button.PrimitivegetValue()inthashCode()booleantoBoolean()Simplified decision model whether dialog was approved or not.java.lang.StringwriteValue()
-
-
-
Field Detail
-
value
protected final Primitive value
-
-
Constructor Detail
-
PrimitivesSubset
protected PrimitivesSubset(Primitive value)
-
-
Method Detail
-
getAllowedValues
abstract java.util.EnumSet<Primitive> getAllowedValues()
-
checkValue
final void checkValue(Primitive p)
-
writeValue
public java.lang.String 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
public Primitive getValue()
-
compareValue
public boolean compareValue(Primitive with)
-
compareValue
public boolean compareValue(BasicDialogValue.PrimitivesSubset with)
-
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
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-