|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.sociology.forms.util.SimpleGroup
public class SimpleGroup
This class is a typical implementation of GroupValidator
interface. The criteria of validation here is : fields that belong to this
group are not required, but in case the user fills even one of them, then
they all become required.
GroupValidator,
Serialized Form| Constructor Summary | |
|---|---|
SimpleGroup()
|
|
| Method Summary | |
|---|---|
java.util.Hashtable |
getErrorMessages(java.util.Hashtable nameValuePairs)
Implements the same method of GroupValidator
interface. |
void |
setGroupErrorMessage(java.lang.String groupErrorMessage)
Implements the same method of GroupValidator
interface. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleGroup()
| Method Detail |
|---|
public void setGroupErrorMessage(java.lang.String groupErrorMessage)
GroupValidator
interface. The default value of groupErrorMessage is :
"(this field has become required)".
setGroupErrorMessage in interface GroupValidatorgroupErrorMessage - an error message for all fields of this group.public java.util.Hashtable getErrorMessages(java.util.Hashtable nameValuePairs)
GroupValidator
interface.
getErrorMessages in interface GroupValidatornameValuePairs - name-value pairs to be tested.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||