Class AbstractLayoutHandler
java.lang.Object
ch.tocco.nice2.model.form.impl.form2.reader.handler.LayoutContainerHandler
ch.tocco.nice2.model.form.impl.form2.reader.handler.AbstractLayoutHandler
- All Implemented Interfaces:
DataElementHandler
,IgnoreRemainingElementsHandler
- Direct Known Subclasses:
LayoutHandler
,SearchLayoutHandler
public abstract class AbstractLayoutHandler
extends LayoutContainerHandler
implements DataElementHandler
Because search forms must be handled specially (fulltext-search and different default relation data-types), there
are multiple handlers for the 'layout' tag.
This a base class with common functionality.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.model.form.impl.form2.reader.handler.IgnoreRemainingElementsHandler
IgnoreRemainingElementsHandler.ExtPropsHandler
-
Field Summary
Modifier and TypeFieldDescriptionprotected final DefaultValueResolver
protected final EntityModel
protected final LayoutImpl
protected final ValidatorHandlerContextFactory
-
Constructor Summary
ConstructorDescriptionAbstractLayoutHandler
(LayoutImpl layout, EntityModel entityModel, DefaultValueResolver defaultValueResolver, ValidatorHandlerContextFactory validatorHandlerContextFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractComponentContainer
description
(String id) void
displayType
(String displayType) void
void
labeled
(boolean labeled) void
Methods inherited from class ch.tocco.nice2.model.form.impl.form2.reader.handler.LayoutContainerHandler
createLayoutHandler, createTableHandler, handleHorizontalBox, handleTable, handleVerticalBox
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.DataElementHandler
address, code, createFieldHandler, createFieldHandler, createPathResolver, date, datetime, document, geosearch, getOrCreateField, html, image, location, multiRemoteField, multiSelectBox, number, range, remoteField, singleSelectBox, text, textArea, upload, url
Methods inherited from interface ch.tocco.nice2.model.form.impl.form2.reader.handler.IgnoreRemainingElementsHandler
handleExtProps, ignore, iterator, template
-
Field Details
-
layout
-
entityModel
-
defaultValueResolver
-
validatorHandlerContextFactory
-
-
Constructor Details
-
AbstractLayoutHandler
public AbstractLayoutHandler(LayoutImpl layout, EntityModel entityModel, DefaultValueResolver defaultValueResolver, ValidatorHandlerContextFactory validatorHandlerContextFactory)
-
-
Method Details
-
getLayoutContainer
- Specified by:
getLayoutContainer
in classLayoutContainerHandler
-
getFieldContainer
- Specified by:
getFieldContainer
in interfaceDataElementHandler
-
labeled
-
label
-
displayType
-
position
-
createComponentContainer
-
display
@Element("display") @Cardinality(max=2147483647) public DisplayHandler display(@Required @Attribute("name") String id) -
description
@Element("description") @Cardinality(max=2147483647) public DescriptionHandler description(@Required @Attribute("name") String id) -
getEntityModel
- Specified by:
getEntityModel
in interfaceDataElementHandler
- Specified by:
getEntityModel
in classLayoutContainerHandler
-
getDefaultValueResolver
- Specified by:
getDefaultValueResolver
in interfaceDataElementHandler
- Specified by:
getDefaultValueResolver
in classLayoutContainerHandler
-
getValidatorHandlerContextFactory
- Specified by:
getValidatorHandlerContextFactory
in interfaceDataElementHandler
- Specified by:
getValidatorHandlerContextFactory
in classLayoutContainerHandler
-