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 IgnoreRemainingElementsHandler
IgnoreRemainingElementsHandler.ExtPropsHandler -
Field Summary
Fields inherited from class AbstractLayoutHandler
defaultValueResolver, entityModel, layout, validatorHandlerContextFactory -
Constructor Summary
ConstructorsConstructorDescriptionLayoutHandler(LayoutImpl layout, EntityModel entityModel, DefaultValueResolver defaultValueResolver, ValidatorHandlerContextFactory validatorHandlerContextFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectcreateLayoutHandler(@Nullable String id, Layout.LayoutType layoutType, String scopes) handleFieldElement(String id, String path, boolean disableNewClient) voidsetBoxWidthRatio(String boxWidthRatio) voidsetCollapsed(boolean collapsed) voidsetOccupiesRemainingHeight(boolean occupiesRemainingHeight) Methods inherited from class AbstractLayoutHandler
createComponentContainer, description, display, displayType, getDefaultValueResolver, getEntityModel, getFieldContainer, getLayoutContainer, getValidatorHandlerContextFactory, label, labeled, positionMethods inherited from class LayoutContainerHandler
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
-
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:
createLayoutHandlerin classLayoutContainerHandler
-
setOccupiesRemainingHeight
public void setOccupiesRemainingHeight(boolean occupiesRemainingHeight) -
setBoxWidthRatio
-