|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.interview.PropertiesQuestion.ValueConstraints
public static class PropertiesQuestion.ValueConstraints
Constructor Summary | |
---|---|
PropertiesQuestion.ValueConstraints()
|
|
PropertiesQuestion.ValueConstraints(boolean readonly,
boolean visible)
|
Method Summary | |
---|---|
boolean |
isReadOnly()
Determine if this value is a read-only value. |
boolean |
isUnsetAllowed()
Is an unset response allowed. |
java.lang.String |
isValid(java.lang.String v)
Is the given value valid for this field? Since this constraint class has no particular typing, the default only check that the value is non-empty. |
boolean |
isVisible()
Is this property (and value) visible? True by default. |
void |
setReadOnly(boolean state)
Determine whether this value should be readable only, by the interview user. |
void |
setUnsetAllowed(boolean state)
May the answer be set to an unanswered state. |
void |
setVisible(boolean state)
Make value outwardly visible or invisible. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertiesQuestion.ValueConstraints()
public PropertiesQuestion.ValueConstraints(boolean readonly, boolean visible)
Method Detail |
---|
public void setReadOnly(boolean state)
state
- True if readonly, false otherwise.public void setVisible(boolean state)
state
- True if the property at constrained by this object
should be visible.public boolean isReadOnly()
public boolean isVisible()
public void setUnsetAllowed(boolean state)
state
- True if the user is allowed to make this value unset.isUnsetAllowed()
public boolean isUnsetAllowed()
setUnsetAllowed(boolean)
public java.lang.String isValid(java.lang.String v)
v
- The value to check.
PropertiesQuestion.getInvalidKeys()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |