Class LayoutHandler
java.lang.Object
ch.tocco.nice2.model.form.impl.form2.reader.handler.LayoutContainerHandler
ch.tocco.nice2.model.form.impl.form2.reader.handler.AbstractLayoutHandler
ch.tocco.nice2.model.form.impl.form2.reader.handler.LayoutHandler
- All Implemented Interfaces:
DataElementHandler
,IgnoreRemainingElementsHandler
- Direct Known Subclasses:
TableHandler
Handler for 'vertical-box', 'horizontal-box' and 'table' tags.
Subtags of type 'field' are always wrapped in a column or field-set.
-
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.AbstractLayoutHandler
defaultValueResolver, entityModel, layout, validatorHandlerContextFactory
-
Constructor Summary
ConstructorsConstructorDescriptionLayoutHandler
(LayoutImpl layout, EntityModel entityModel, DefaultValueResolver defaultValueResolver, ValidatorHandlerContextFactory validatorHandlerContextFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
createLayoutHandler
(@Nullable String id, Layout.LayoutType layoutType, String scopes) handleFieldElement
(String id, String path, boolean disableNewClient) void
setBoxWidthRatio
(String boxWidthRatio) void
setCollapsed
(boolean collapsed) void
setOccupiesRemainingHeight
(boolean occupiesRemainingHeight) Methods inherited from class ch.tocco.nice2.model.form.impl.form2.reader.handler.AbstractLayoutHandler
createComponentContainer, description, display, displayType, getDefaultValueResolver, getEntityModel, getFieldContainer, getLayoutContainer, getValidatorHandlerContextFactory, label, labeled, position
Methods inherited from class ch.tocco.nice2.model.form.impl.form2.reader.handler.LayoutContainerHandler
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, format, 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
-
Constructor Details
-
LayoutHandler
public LayoutHandler(LayoutImpl layout, EntityModel entityModel, DefaultValueResolver defaultValueResolver, ValidatorHandlerContextFactory validatorHandlerContextFactory)
-
-
Method Details
-
column
@Element("column") @Cardinality(max=2147483647) public ColumnHandler column(@Required @Attribute("name") String path) -
handleFieldElement
@Element("field") @Cardinality(max=2147483647) public Object handleFieldElement(@Attribute("name") String id, @Required @Attribute("data") String path, @Attribute("disable-new-client") boolean disableNewClient) -
action
@Element("action") @Cardinality(max=2147483647) public Object action(@Attribute("name") String id, @Attribute("group") String group) -
terms
@Element("terms") @Cardinality(max=2147483647) public TermsComponentHandler terms(@Required @Attribute("type") String type) -
setCollapsed
-
createLayoutHandler
protected Object createLayoutHandler(@Nullable @Nullable String id, Layout.LayoutType layoutType, String scopes) - Overrides:
createLayoutHandler
in classLayoutContainerHandler
-
setOccupiesRemainingHeight
public void setOccupiesRemainingHeight(boolean occupiesRemainingHeight) -
setBoxWidthRatio
-