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 Object implements DialogResult
  • Field Details

  • Constructor Details

    • PrimitivesSubset

      protected PrimitivesSubset(Primitive value)
  • Method Details

    • getAllowedValues

      abstract EnumSet<Primitive> getAllowedValues()
    • checkValue

      final void checkValue(Primitive p)
    • writeValue

      public String writeValue()
      Specified by:
      writeValue in interface DialogResult
    • toBoolean

      public boolean toBoolean()
      Description copied from interface: DialogResult
      Simplified decision model whether dialog was approved or not.
      Specified by:
      toBoolean in interface DialogResult
      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: DialogResult
      the index of the button. By convention 0 = Yes. 1 = No, 2 = Cancel/sandbox
      Specified by:
      getButtonIndex in interface DialogResult
      Returns:
      button to be preselected in dialogue
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object