java.lang.Object
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 Details

  • Constructor Details

    • YesCancel

      protected YesCancel(Primitive valueOf)
  • Method Details

    • yes

      public static YesCancel yes()
    • cancel

      public static YesCancel cancel()
    • readValue

      public static YesCancel readValue(String s)
    • 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
      Overrides:
      getButtonIndex in class Yes
      Returns:
      button to be preselected in dialogue
    • getAllowedValues

      public EnumSet<Primitive> getAllowedValues()
      Overrides:
      getAllowedValues in class Yes
    • 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(net.adoptopenjdk.icedteaweb.ui.swing.dialogresults.BasicDialogValue.PrimitivesSubset with)
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object