Package nl.gx.forms.wmpformapi.api.form
Interface FormLogicContainer
-
- All Superinterfaces:
BasicFormFragmentContainer
,BasicFormLogicContainer
,FormFragmentContainer
,Presentable
,Wrapper
- All Known Subinterfaces:
FormSectionVersion
,FormStep
public interface FormLogicContainer extends FormFragmentContainer, BasicFormLogicContainer
Special case of the FormFragmentContainer that also contains FormLogic. E.g. FormStep and FormSection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConditionalComponent
createConditional(ConditionalComponentDefinition conditionalComponentDefinition)
Creates a new Condition FormLogicComponent based on the specified definition.FormValidator
createFormValidator(FormValidatorDefinition formValidatorDefinition)
Creates a new FormValidator based on the specified definition.FormHandler
createHandler(FormHandlerDefinition handlerDefinition)
Creates a new Handler based on the specified definition.FormLogicComponent
createPreHandleComponent(FormLogicComponentDefinition handlerDefinition)
Creates a new FormLogicComponent based on the specified definition.FormRouter
createRouter(FormRouterDefinition routerDefinition)
Creates a new Router based on the specified definition.void
deleteFormLogicComponent(FormLogicComponent formLogic)
Deletes a FormLogicComponent from this FormLogicContainer.void
setFormLogic(List<BasicFormLogicComponent> formLogic)
Sets or updates the top-level form handling component instances for this form.void
setPreHandleFormLogic(List<BasicFormLogicComponent> components)
Sets the list of BasicFormLogicComponents to use as prehandling.-
Methods inherited from interface nl.gx.forms.wmpformapi.api.BasicFormFragmentContainer
getAllChildFormFragments, getAllChildFormFragments, getAllFormFragments, getFormFragments, getIdentifier, getNestedPath
-
Methods inherited from interface nl.gx.forms.wmpformapi.api.BasicFormLogicContainer
getAllFormLogicComponents, getAllPreHandleFormLogicComponents, getFormLogic, getPreHandleFormLogic
-
Methods inherited from interface nl.gx.forms.wmpformapi.api.form.FormFragmentContainer
createFormFragment, deleteFormFragment, getFragmentById, getFragmentByIdentifier, getLanguageContainers, getOrCreateLanguageContainer, getScope, getTitle, getUniqueFormFragmentId, getWmId, setFormFragments, setIdentifier, setLanguageContainers, setTitle
-
Methods inherited from interface nl.gx.webmanager.cms.core.Presentable
getPresentation, getPresentationVariant, render, render, setPresentation, setPresentationVariant
-
-
-
-
Method Detail
-
setFormLogic
void setFormLogic(List<BasicFormLogicComponent> formLogic)
Sets or updates the top-level form handling component instances for this form.- Parameters:
formLogic
-
-
setPreHandleFormLogic
void setPreHandleFormLogic(List<BasicFormLogicComponent> components)
Sets the list of BasicFormLogicComponents to use as prehandling.- Parameters:
components
- the list of BasicFormLogicComponents to use as prehandling
-
createPreHandleComponent
FormLogicComponent createPreHandleComponent(FormLogicComponentDefinition handlerDefinition)
Creates a new FormLogicComponent based on the specified definition. This component is to be used as prehandling.- Parameters:
handlerDefinition
- the definition to base the new FormLogicComponent on- Returns:
- the new FormLogicComponent
-
createHandler
FormHandler createHandler(FormHandlerDefinition handlerDefinition)
Creates a new Handler based on the specified definition.- Parameters:
handlerDefinition
- the definition to base the handler on- Returns:
- the newly created Handler
-
createRouter
FormRouter createRouter(FormRouterDefinition routerDefinition)
Creates a new Router based on the specified definition.- Parameters:
routerDefinition
- the definition to base the Router on- Returns:
- the newly created Router
-
createFormValidator
FormValidator createFormValidator(FormValidatorDefinition formValidatorDefinition)
Creates a new FormValidator based on the specified definition.- Parameters:
formValidatorDefinition
- the definition to base the FormValidator on- Returns:
- the newly created FormValidator
-
createConditional
ConditionalComponent createConditional(ConditionalComponentDefinition conditionalComponentDefinition)
Creates a new Condition FormLogicComponent based on the specified definition.- Parameters:
conditionalComponentDefinition
- the definition to base the ConditionalComponent on- Returns:
- the newly created ConditionalComponent
-
deleteFormLogicComponent
void deleteFormLogicComponent(FormLogicComponent formLogic) throws FormManagerException
Deletes a FormLogicComponent from this FormLogicContainer.- Parameters:
formLogic
- the FormLogicComponent to delete- Throws:
FormManagerException
- when something goes wrong
-
-