java.lang.Object
net.adoptopenjdk.icedteaweb.ui.swing.dialogresults.Yes
All Implemented Interfaces:
DialogResult
Direct Known Subclasses:
YesCancel, YesNo

public class Yes extends Object
  • Field Details

  • Constructor Details

    • 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 Details

    • readValue

      public static Yes 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
      Returns:
      button to be preselected in dialogue
    • getAllowedValues

      public EnumSet<Primitive> getAllowedValues()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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