Class BasicDialogValue.PrimitivesSubset

    • Constructor Detail

      • PrimitivesSubset

        protected PrimitivesSubset​(Primitive value)
    • Method Detail

      • getAllowedValues

        abstract java.util.EnumSet<Primitive> getAllowedValues()
      • checkValue

        final void checkValue​(Primitive p)
      • 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
      • compareValue

        public boolean compareValue​(Primitive 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​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object