Class FieldHandler<T extends FieldImpl>
java.lang.Object
ch.tocco.nice2.model.form.impl.form2.reader.handler.WrappedComponentHandler
ch.tocco.nice2.model.form.impl.form2.reader.handler.FieldHandler<T>
- All Implemented Interfaces:
IgnoreRemainingElementsHandler
,ValidatorReceivable
- Direct Known Subclasses:
FulltextSearchHandler
,LocationFieldHandler
,RelationFieldHandler
public class FieldHandler<T extends FieldImpl>
extends WrappedComponentHandler
implements ValidatorReceivable
Handler for 'field' tags.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.model.form.impl.form2.reader.handler.IgnoreRemainingElementsHandler
IgnoreRemainingElementsHandler.ExtPropsHandler
-
Field Summary
Fields inherited from class ch.tocco.nice2.model.form.impl.form2.reader.handler.WrappedComponentHandler
parent
-
Constructor Summary
ConstructorDescriptionFieldHandler
(AbstractComponentContainer parent, T field, DefaultValueResolver resolver, ValidatorHandlerContextFactory validatorHandlerContextFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addValidator
(Validator validator) This case only allows a AndGroupValidatorImpl, not just any validator!void
simpleSearch
(boolean simpleSearch) Methods inherited from class ch.tocco.nice2.model.form.impl.form2.reader.handler.WrappedComponentHandler
displayType, ignoreCopy, label, position, scopes, useLabel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.model.form.impl.form2.reader.handler.IgnoreRemainingElementsHandler
handleExtProps, ignore, iterator, template
-
Field Details
-
field
-
-
Constructor Details
-
FieldHandler
public FieldHandler(AbstractComponentContainer parent, T field, DefaultValueResolver resolver, ValidatorHandlerContextFactory validatorHandlerContextFactory)
-
-
Method Details
-
defaultValues
-
addValidations
-
autoComplete
-
simpleSearch
-
addValidator
This case only allows a AndGroupValidatorImpl, not just any validator!- Specified by:
addValidator
in interfaceValidatorReceivable
- Parameters:
validator
- The validator.- Throws:
IllegalArgumentException
- if a later validator uses a stronger error level than a previous one in the same group.
-