|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.interview.PropertiesQuestion.ValueConstraints
com.sun.interview.PropertiesQuestion.IntConstraints
public static class PropertiesQuestion.IntConstraints
Field Summary | |
---|---|
protected boolean |
custom
|
protected int[] |
suggestions
|
Constructor Summary | |
---|---|
PropertiesQuestion.IntConstraints()
|
|
PropertiesQuestion.IntConstraints(int[] suggesitons)
|
|
PropertiesQuestion.IntConstraints(int min,
int max)
|
|
PropertiesQuestion.IntConstraints(int min,
int max,
int[] suggestions)
|
Method Summary | |
---|---|
int |
getLowerBound()
|
int[] |
getSuggestions()
Get the suggested values. |
int |
getUpperBound()
|
boolean |
isCustomValuesAllowed()
Are custom user values allowed? |
java.lang.String |
isValid(int v)
Is the given value valid for this field? |
java.lang.String |
isValid(java.lang.String v)
Is the given value valid for this field? The basic check for validity is to see if the given string can be parsed as an integer value in the current locale. |
void |
setBounds(int min,
int max)
Set the max/min possible value that should be considered valid. |
void |
setCustomValuesAllowed(boolean state)
Are user specified values allowed? If not, there must be suggestions present. |
void |
setSuggestions(int[] sugs)
Supply some possible values that the user may want to select from. |
Methods inherited from class com.sun.interview.PropertiesQuestion.ValueConstraints |
---|
isReadOnly, isUnsetAllowed, isVisible, setReadOnly, setUnsetAllowed, setVisible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int[] suggestions
protected boolean custom
Constructor Detail |
---|
public PropertiesQuestion.IntConstraints()
public PropertiesQuestion.IntConstraints(int min, int max)
public PropertiesQuestion.IntConstraints(int[] suggesitons)
public PropertiesQuestion.IntConstraints(int min, int max, int[] suggestions)
Method Detail |
---|
public void setBounds(int min, int max)
public int getLowerBound()
public int getUpperBound()
public int[] getSuggestions()
public void setCustomValuesAllowed(boolean state)
java.lang.IllegalStateException
- If no suggestions have been
provided.#setSuggestion
public boolean isCustomValuesAllowed()
setCustomValuesAllowed(boolean)
,
setSuggestions(int[])
public void setSuggestions(int[] sugs)
public java.lang.String isValid(java.lang.String v)
isValid
in class PropertiesQuestion.ValueConstraints
v
- The value to check.
PropertiesQuestion.getInvalidKeys()
public java.lang.String isValid(int v)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |