Class FormImpl
java.lang.Object
ch.tocco.nice2.model.form.impl.form2.components.AbstractComponent
ch.tocco.nice2.model.form.impl.form2.components.AbstractCompositeComponent
ch.tocco.nice2.model.form.impl.form2.components.FormImpl
- All Implemented Interfaces:
Component
,CompositeComponent
,Form
,Cloneable
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.model.form.api.form2.components.Component
Component.Configuration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
@Nullable String
getType()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setAppendDefaultActions
(boolean appendDefaultActions) void
setAppendMassMutationActions
(boolean appendMassMutationActions) void
setCreateEndpoint
(String createEndpoint) void
setEntityModel
(EntityModel entityModel) void
setHasCopyAction
(boolean hasCopyAction) void
setHasExportAction
(boolean hasExportAction) void
setHasGenericActions
(boolean hasGenericActions) void
setHasGenericLabelAction
(boolean hasGenericLabelAction) void
setHasImportAction
(boolean hasImportAction) void
setHasMergeAction
(boolean hasMergeAction) void
setHasOutputJobAction
(boolean hasOutputJobAction) void
setHasPreferencesMenu
(boolean hasPreferencesMenu) void
setHasStickyActionBar
(boolean hasStickyActionBar) void
setMarkable
(boolean markable) void
setReadonly
(boolean readOnly) void
setReplaced
(boolean replaced) void
toString()
void
validate()
Will be called when the form has been built completely.Methods inherited from class ch.tocco.nice2.model.form.impl.form2.components.AbstractCompositeComponent
accept, addComponent, addScope, addScopes, clone, findById, getChildren, getScopes, hasChildren, indexOf, insertComponent, parseScopes, removeComponent, removeScope, removeScopes, replaceComponent
Methods inherited from class ch.tocco.nice2.model.form.impl.form2.components.AbstractComponent
getDefaultFormLabel, getId, getLabel, getParent, getPosition, setId, setLabel, setParent, setPosition
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.model.form.api.form2.components.Component
accept, getForm, getId, getLabel, getParent, getPosition
Methods inherited from interface ch.tocco.nice2.model.form.api.form2.components.CompositeComponent
findById, getChildren, getScopes, hasChildren
-
Constructor Details
-
FormImpl
public FormImpl()
-
-
Method Details
-
getEntityModel
- Specified by:
getEntityModel
in interfaceForm
- Returns:
- the base entity model
-
setEntityModel
-
toString
-
isReplaced
public boolean isReplaced() -
setReplaced
public void setReplaced(boolean replaced) -
isReadonly
public boolean isReadonly()- Specified by:
isReadonly
in interfaceForm
-
setReadonly
public void setReadonly(boolean readOnly) -
isAppendDefaultActions
public boolean isAppendDefaultActions() -
setAppendDefaultActions
public void setAppendDefaultActions(boolean appendDefaultActions) -
isAppendMassMutationActions
public boolean isAppendMassMutationActions() -
setAppendMassMutationActions
public void setAppendMassMutationActions(boolean appendMassMutationActions) -
hasOutputJobAction
public boolean hasOutputJobAction() -
setHasOutputJobAction
public void setHasOutputJobAction(boolean hasOutputJobAction) -
hasMergeAction
public boolean hasMergeAction() -
setHasMergeAction
public void setHasMergeAction(boolean hasMergeAction) -
hasGenericLabelAction
public boolean hasGenericLabelAction() -
setHasGenericLabelAction
public void setHasGenericLabelAction(boolean hasGenericLabelAction) -
hasStickyActionBar
public boolean hasStickyActionBar() -
setHasStickyActionBar
public void setHasStickyActionBar(boolean hasStickyActionBar) -
hasCopyAction
public boolean hasCopyAction() -
setHasCopyAction
public void setHasCopyAction(boolean hasCopyAction) -
hasImportAction
public boolean hasImportAction() -
setHasImportAction
public void setHasImportAction(boolean hasImportAction) -
hasExportAction
public boolean hasExportAction() -
setHasExportAction
public void setHasExportAction(boolean hasExportAction) -
isMarkable
public boolean isMarkable()- Specified by:
isMarkable
in interfaceForm
-
setMarkable
public void setMarkable(boolean markable) -
hasPreferencesMenu
public boolean hasPreferencesMenu()- Specified by:
hasPreferencesMenu
in interfaceForm
-
setHasPreferencesMenu
public void setHasPreferencesMenu(boolean hasPreferencesMenu) -
hasGenericActions
public boolean hasGenericActions() -
setHasGenericActions
public void setHasGenericActions(boolean hasGenericActions) -
getCreateEndpoint
- Specified by:
getCreateEndpoint
in interfaceForm
-
setCreateEndpoint
-
getType
-
setType
-
clear
public void clear() -
getFormScope
- Specified by:
getFormScope
in interfaceForm
-
validate
Description copied from interface:Component
Will be called when the form has been built completely. Can be used to validate values (and throwModelBuildException
) or the fill in default value.- Specified by:
validate
in interfaceComponent
- Overrides:
validate
in classAbstractCompositeComponent
- Throws:
ModelBuildException
-