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 ch.tocco.nice2.model.form.impl.form2.reader.handler.IgnoreRemainingElementsHandler
IgnoreRemainingElementsHandler.ExtPropsHandler
-
Constructor Summary
ConstructorDescriptionFormHandler
(FormCollector formCollector, NiceDataModel dataModel, org.slf4j.Logger logger, DefaultValueResolver defaultValueResolver, ValidatorHandlerContextFactory validatorHandlerContextFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
copyAction
(boolean copyAction) void
createEndpoint
(String createEndpoint) void
defaultActions
(boolean defaultActions) void
displayType
(String displayType) void
exportAction
(boolean exportAction) void
finish()
void
void
genericLabelAction
(boolean genericLabelAction) protected DefaultValueResolver
protected EntityModel
protected ValidatorHandlerContextFactory
void
handleFieldElement
(String path, String label, String position, String name) void
hasGenericActions
(boolean hasGenericActions) void
hasStickyActionBar
(boolean hasStickyActionBar) void
importAction
(boolean importAction) void
markable
(boolean markable) void
massMutationActions
(boolean massMutationActions) void
mergeAction
(boolean mergeAction) void
outputJobAction
(boolean outputJobAction) void
preferencesMenu
(boolean preferencesMenu) void
replace
(boolean replace) void
rootElement
(String elementName, URI resourceName) 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.IgnoreRemainingElementsHandler
handleExtProps, ignore, iterator, template
-
Constructor Details
-
FormHandler
public FormHandler(FormCollector formCollector, NiceDataModel dataModel, org.slf4j.Logger logger, DefaultValueResolver defaultValueResolver, ValidatorHandlerContextFactory validatorHandlerContextFactory)
-
-
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) -
report
@Element("report") @Cardinality(max=2147483647) public Object report(@Required @Attribute("id") String id) -
formModel
-
type
-
replace
-
displayType
-
defaultActions
-
massMutationActions
-
outputJobAction
-
mergeAction
-
genericLabelAction
-
copyAction
-
importAction
-
exportAction
-
markable
-
preferencesMenu
-
hasGenericActions
-
hasStickyActionBar
-
createEndpoint
-
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) -
finish
-
getLayoutContainer
- Specified by:
getLayoutContainer
in classLayoutContainerHandler
-
getEntityModel
- Specified by:
getEntityModel
in classLayoutContainerHandler
-
getDefaultValueResolver
- Specified by:
getDefaultValueResolver
in classLayoutContainerHandler
-
getValidatorHandlerContextFactory
- Specified by:
getValidatorHandlerContextFactory
in classLayoutContainerHandler
-