Class FormBuilderImpl
java.lang.Object
ch.tocco.nice2.model.form.impl.form2.builder.AbstractLayoutContainerBuilder<FormImpl>
ch.tocco.nice2.model.form.impl.form2.builder.FormBuilderImpl
- All Implemented Interfaces:
FormBuilder,LayoutContainerBuilder
public class FormBuilderImpl
extends AbstractLayoutContainerBuilder<FormImpl>
implements FormBuilder
-
Field Summary
Fields inherited from class ch.tocco.nice2.model.form.impl.form2.builder.AbstractLayoutContainerBuilder
component -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddActionGroup(String id, String label, @Nullable String position) add a action grouplooks for a child with the given id in the form (recursively).get()returns the form component.@Nullable ActionGroupBuildergetActionGroupBuilder(ActionGroup actionGroup) get a builder for a given ActionGroup@Nullable LayoutBuildergetLayoutBuilder(Layout layout) get or create the main action bar at the top of the form that contains the major action groups and actions.returns the form component as opposed toFormBuilder.get(), this does not validate or process the contents of the form do not use the result of this method as a final form, but only as a carrier for form databooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanmarkable(boolean markable) readOnly(boolean readOnly) voidremoveComponent(Component component) voidremoveComponents(Predicate<Component> componentPredicate) remove all components (recursively) which returns the given predicate `true` for.voidsort()sort the component represented by this builderMethods inherited from class ch.tocco.nice2.model.form.impl.form2.builder.AbstractLayoutContainerBuilder
addLayout, addTableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.tocco.nice2.model.form.api.form2.builder.FormBuilder
addAction, addActionGroup, addReportMethods inherited from interface ch.tocco.nice2.model.form.api.form2.builder.LayoutContainerBuilder
addLayout, addLayout, addTable, addTable
-
Constructor Details
-
FormBuilderImpl
-
-
Method Details
-
getFormId
- Specified by:
getFormIdin interfaceFormBuilder
-
getEntityModel
- Specified by:
getEntityModelin interfaceFormBuilder
-
isReplaced
public boolean isReplaced()- Specified by:
isReplacedin interfaceFormBuilder
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin interfaceFormBuilder
-
isAppendDefaultActions
public boolean isAppendDefaultActions()- Specified by:
isAppendDefaultActionsin interfaceFormBuilder
-
isAppendMassMutationActions
public boolean isAppendMassMutationActions()- Specified by:
isAppendMassMutationActionsin interfaceFormBuilder
-
hasOutputJobAction
public boolean hasOutputJobAction()- Specified by:
hasOutputJobActionin interfaceFormBuilder
-
hasMergeAction
public boolean hasMergeAction()- Specified by:
hasMergeActionin interfaceFormBuilder
-
hasGenericLabelAction
public boolean hasGenericLabelAction()- Specified by:
hasGenericLabelActionin interfaceFormBuilder
-
hasCopyAction
public boolean hasCopyAction()- Specified by:
hasCopyActionin interfaceFormBuilder
-
hasImportAction
public boolean hasImportAction()- Specified by:
hasImportActionin interfaceFormBuilder
-
hasExportAction
public boolean hasExportAction()- Specified by:
hasExportActionin interfaceFormBuilder
-
hasGenericActions
public boolean hasGenericActions()- Specified by:
hasGenericActionsin interfaceFormBuilder
-
isMarkable
public boolean isMarkable()- Specified by:
isMarkablein interfaceFormBuilder
-
markable
- Specified by:
markablein interfaceFormBuilder
-
readOnly
- Specified by:
readOnlyin interfaceFormBuilder
-
getChildren
- Specified by:
getChildrenin interfaceFormBuilder
-
getLayoutBuilder
- Specified by:
getLayoutBuilderin interfaceFormBuilder
-
addAction
- Specified by:
addActionin interfaceFormBuilder
-
removeComponent
- Specified by:
removeComponentin interfaceFormBuilder
-
addReport
- Specified by:
addReportin interfaceFormBuilder
-
addActionGroup
public ActionGroupBuilder addActionGroup(String id, String label, @Nullable @Nullable String position) Description copied from interface:FormBuilderadd a action group- Specified by:
addActionGroupin interfaceFormBuilder- Parameters:
id- id of the action grouplabel- label of the action groupposition- relative position of the action group- Returns:
- the builder of the newly created action group
-
getActionGroupBuilder
Description copied from interface:FormBuilderget a builder for a given ActionGroup- Specified by:
getActionGroupBuilderin interfaceFormBuilder- Parameters:
actionGroup- the action group to use- Returns:
- the builder
-
getOrCreateMainActionBar
Description copied from interface:FormBuilderget or create the main action bar at the top of the form that contains the major action groups and actions.- Specified by:
getOrCreateMainActionBarin interfaceFormBuilder- Returns:
- the existing main action bar or the newly created one.
-
sort
Description copied from interface:FormBuildersort the component represented by this builder- Specified by:
sortin interfaceFormBuilder- Throws:
ModelBuildException
-
get
Description copied from interface:FormBuilderreturns the form component. note: for performance reasons this method should be called only once at the end when the form is built completely, because it also validates all components and does some other final modifications.- Specified by:
getin interfaceFormBuilder- Returns:
- the form component
- Throws:
ModelBuildException
-
getWithoutProcessing
Description copied from interface:FormBuilderreturns the form component as opposed toFormBuilder.get(), this does not validate or process the contents of the form do not use the result of this method as a final form, but only as a carrier for form data- Specified by:
getWithoutProcessingin interfaceFormBuilder- Returns:
- the form component
-
findById
Description copied from interface:FormBuilderlooks for a child with the given id in the form (recursively).- Specified by:
findByIdin interfaceFormBuilder
-
removeComponents
Description copied from interface:FormBuilderremove all components (recursively) which returns the given predicate `true` for.- Specified by:
removeComponentsin interfaceFormBuilder
-