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:
AvailabilityFieldHandler,FormatFieldHandler,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
FieldsFields inherited from class ch.tocco.nice2.model.form.impl.form2.reader.handler.WrappedComponentHandler
parent -
Constructor Summary
ConstructorsConstructorDescriptionFieldHandler(AbstractComponentContainer parent, T field, DefaultValueResolver resolver, ValidatorHandlerContextFactory validatorHandlerContextFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddValidator(Validator validator) This case only allows a AndGroupValidatorImpl, not just any validator!voidsimpleSearch(boolean simpleSearch) Methods inherited from class ch.tocco.nice2.model.form.impl.form2.reader.handler.WrappedComponentHandler
displayType, ignoreCopy, label, position, scopes, useLabelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
addValidatorin interfaceValidatorReceivable- Parameters:
validator- The validator.- Throws:
IllegalArgumentException- if a later validator uses a stronger error level than a previous one in the same group.
-