|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.xui.validation.XBaseValidator
net.xoetrope.xui.validation.XMandatoryValidator
public class XMandatoryValidator
Implements a validator that must succeed for event handling to continue
Copyright: Copyright (c) Xoetrope Ltd., 1998-2003
License: see license.txt
| Field Summary |
|---|
| Fields inherited from class net.xoetrope.xui.validation.XBaseValidator |
|---|
container, currentProject, errorLevel, formattedMessage, mandatory, mask, message, start, USE_FAIL_STYLE, USE_NORMAL_STYLE, USE_WARN_STYLE, validationMethod, validationName, value |
| Fields inherited from interface net.xoetrope.xui.validation.XValidator |
|---|
IGNORE_BLANKS, LEVEL_ERROR, LEVEL_IGNORE, LEVEL_WARNING, MANDATORY, STRICT_CHECK, WEAK_CHECK |
| Constructor Summary | |
|---|---|
XMandatoryValidator(XProject project)
Applied to components when input is simply mandatory |
|
| Method Summary | |
|---|---|
void |
setup(XmlElement element)
Set the validation parameters |
void |
validate(java.lang.Object c,
boolean forceMandatory)
Carries out the mandatory validation on the component. |
| Methods inherited from class net.xoetrope.xui.validation.XBaseValidator |
|---|
applyErrorStyle, getLevel, getMask, getMessage, getName, getText, getValueAsString, invokeMethod, replaceToken, replaceTokens, setMask, setName, setValidationColors, setValidationMethod, throwException |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMandatoryValidator(XProject project)
project - the owner project| Method Detail |
|---|
public void setup(XmlElement element)
setup in interface XValidatorsetup in class XBaseValidatorelement - the validator parameters
public void validate(java.lang.Object c,
boolean forceMandatory)
throws java.lang.Exception
forceMandatory - true when inline validations are carried outc - The component triggering the validation
java.lang.Exception - Contains the details of the message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||