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 IgnoreRemainingElementsHandler
IgnoreRemainingElementsHandler.ExtPropsHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DefaultValueResolverprotected final EntityModelprotected final LayoutImplprotected final ValidatorHandlerContextFactory -
Constructor Summary
ConstructorsConstructorDescriptionAbstractLayoutHandler(LayoutImpl layout, EntityModel entityModel, DefaultValueResolver defaultValueResolver, ValidatorHandlerContextFactory validatorHandlerContextFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractComponentContainerdescription(String id) voiddisplayType(String displayType) voidvoidlabeled(boolean labeled) voidMethods inherited from class LayoutContainerHandler
createLayoutHandler, createTableHandler, handleHorizontalBox, handleTable, handleVerticalBoxMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DataElementHandler
address, available, code, createFieldHandler, createFieldHandler, createPathResolver, date, datetime, document, format, geosearch, getOrCreateField, html, image, location, multiRemoteField, multiSelectBox, number, range, remoteField, singleSelectBox, text, textArea, upload, urlMethods inherited from interface 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:
getLayoutContainerin classLayoutContainerHandler
-
getFieldContainer
- Specified by:
getFieldContainerin 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:
getEntityModelin interfaceDataElementHandler- Specified by:
getEntityModelin classLayoutContainerHandler
-
getDefaultValueResolver
- Specified by:
getDefaultValueResolverin interfaceDataElementHandler- Specified by:
getDefaultValueResolverin classLayoutContainerHandler
-
getValidatorHandlerContextFactory
- Specified by:
getValidatorHandlerContextFactoryin interfaceDataElementHandler- Specified by:
getValidatorHandlerContextFactoryin classLayoutContainerHandler
-