com.sun.interview
Class PropertiesQuestion.BooleanConstraints

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

public static class PropertiesQuestion.BooleanConstraints
extends PropertiesQuestion.ValueConstraints


Constructor Summary
PropertiesQuestion.BooleanConstraints()
           
PropertiesQuestion.BooleanConstraints(boolean isYesNo)
           
PropertiesQuestion.BooleanConstraints(boolean isYesNo, boolean unsetAllowed)
           
 
Method Summary
 boolean isYesNo()
          Is this a yes/no field, instead of the default true/false?
 void setUseYesNo(boolean state)
          Indicate whether this should be a Yes/No question or True/False.
 
Methods inherited from class com.sun.interview.PropertiesQuestion.ValueConstraints
isReadOnly, isUnsetAllowed, isValid, isVisible, setReadOnly, setUnsetAllowed, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesQuestion.BooleanConstraints

public PropertiesQuestion.BooleanConstraints()

PropertiesQuestion.BooleanConstraints

public PropertiesQuestion.BooleanConstraints(boolean isYesNo)
See Also:
setUseYesNo(boolean)

PropertiesQuestion.BooleanConstraints

public PropertiesQuestion.BooleanConstraints(boolean isYesNo,
                                             boolean unsetAllowed)
See Also:
PropertiesQuestion.ValueConstraints.setUnsetAllowed(boolean), setUseYesNo(boolean)
Method Detail

setUseYesNo

public void setUseYesNo(boolean state)
Indicate whether this should be a Yes/No question or 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)


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved.