Class FormHandler
java.lang.Object
ch.tocco.nice2.model.form.impl.form2.reader.handler.LayoutContainerHandler
ch.tocco.nice2.model.form.impl.form2.reader.handler.FormHandler
- All Implemented Interfaces:
IgnoreRemainingElementsHandler
The root handler for parsing forms.
May contain
Layout components as children.
The form id is based on the xml file name.
If the data model is not explicitly set, the data model is derived from the file name as well.-
Nested Class Summary
Nested classes/interfaces inherited from interface IgnoreRemainingElementsHandler
IgnoreRemainingElementsHandler.ExtPropsHandler -
Constructor Summary
ConstructorsConstructorDescriptionFormHandler(FormCollector formCollector, NiceDataModel dataModel, org.slf4j.Logger logger, DefaultValueResolver defaultValueResolver, ValidatorHandlerContextFactory validatorHandlerContextFactory, boolean handlingWidgetForms) -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyAction(boolean copyAction) voidcreateEndpoint(String createEndpoint) voiddefaultActions(boolean defaultActions) voiddisplayType(String displayType) voidexportAction(boolean exportAction) voidfinish()voidvoidgenericLabelAction(boolean genericLabelAction) protected DefaultValueResolverprotected EntityModelprotected ValidatorHandlerContextFactoryhandleDisplayElement(String id, String label, String position) voidhandleFieldElement(String path, String label, String position, String name) voidhasGenericActions(boolean hasGenericActions) voidhasStickyActionBar(boolean hasStickyActionBar) voidimportAction(boolean importAction) voidmarkable(boolean markable) voidmassMutationActions(boolean massMutationActions) voidmergeAction(boolean mergeAction) voidoutputJobAction(boolean outputJobAction) voidpreferencesMenu(boolean preferencesMenu) voidreplace(boolean replace) voidrootElement(String elementName, URI resourceName) voidsetShowTooltips(boolean showTooltips) 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 IgnoreRemainingElementsHandler
handleExtProps, ignore, iterator, template
-
Constructor Details
-
FormHandler
public FormHandler(FormCollector formCollector, NiceDataModel dataModel, org.slf4j.Logger logger, DefaultValueResolver defaultValueResolver, ValidatorHandlerContextFactory validatorHandlerContextFactory, boolean handlingWidgetForms)
-
-
Method Details
-
rootElement
@StartElement public void rootElement(@ElementName String elementName, @ResourceName URI resourceName) -
action
@Element("action") @Cardinality(max=2147483647) public Object action(@Attribute("name") String name, @Attribute("group") String group, @Attribute("path") String path) -
formModel
-
type
-
replace
-
displayType
-
defaultActions
-
massMutationActions
-
outputJobAction
-
mergeAction
-
genericLabelAction
-
copyAction
-
importAction
-
exportAction
-
markable
-
preferencesMenu
-
hasGenericActions
-
hasStickyActionBar
-
createEndpoint
-
setShowTooltips
-
handleFieldElement
@Element("field") @Cardinality(max=2147483647) public void handleFieldElement(@Required @Attribute("data") String path, @Attribute("label") String label, @Attribute("position") String position, @Attribute("name") String name) -
handleDisplayElement
@Element("display") @Cardinality(max=2147483647) public DisplayHandler handleDisplayElement(@Required @Attribute("name") String id, @Attribute("label") String label, @Attribute("position") String position) -
finish
-
getLayoutContainer
- Specified by:
getLayoutContainerin classLayoutContainerHandler
-
getEntityModel
- Specified by:
getEntityModelin classLayoutContainerHandler
-
getDefaultValueResolver
- Specified by:
getDefaultValueResolverin classLayoutContainerHandler
-
getValidatorHandlerContextFactory
- Specified by:
getValidatorHandlerContextFactoryin classLayoutContainerHandler
-