Class PropertiesQuestion.BooleanConstraints

    • Constructor Detail

      • BooleanConstraints

        public BooleanConstraints()
      • BooleanConstraints

        public BooleanConstraints​(boolean isYesNo)
        Parameters:
        isYesNo - Should this question be presented as a Yes/No question rather than a True/False.
        See Also:
        setUseYesNo(boolean)
    • Method Detail

      • setUseYesNo

        public void setUseYesNo​(boolean state)
        Indicate whether this should be a Yes/No question or True/False.
        Parameters:
        state - True if this should be rendered as a Yes/No question, false if it should be a boolean true/false.
        See Also:
        isYesNo()
      • isYesNo

        public boolean isYesNo()
        Is this a yes/no field, instead of the default true/false?
        Returns:
        True if this is a Yes/No question, false if it is a True/False question.
        See Also:
        setUseYesNo(boolean)