Class PropertiesQuestion.BooleanConstraints

java.lang.Object
com.sun.interview.PropertiesQuestion.ValueConstraints
com.sun.interview.PropertiesQuestion.BooleanConstraints
Enclosing class:
PropertiesQuestion

public static class PropertiesQuestion.BooleanConstraints extends PropertiesQuestion.ValueConstraints
Constraints allowing a value to be either a boolean or Yes/No response.
  • Field Details

  • Constructor Details

    • 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:
    • BooleanConstraints

      public BooleanConstraints(boolean isYesNo, boolean unsetAllowed)
      Parameters:
      isYesNo - Should this question be presented as a Yes/No question rather than a True/False.
      unsetAllowed - Can the question be set to have no value.
      See Also:
  • Method Details

    • 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

      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: