Class ActionImpl
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.AbstractAction
ch.tocco.nice2.model.form.impl.form2.components.ActionImpl
- All Implemented Interfaces:
Action, BaseAction, Component, CompositeComponent, Cloneable
-
Nested Class Summary
Nested classes/interfaces inherited from interface BaseAction
BaseAction.ActionType, BaseAction.ButtonStyle, BaseAction.ModalSizeNested classes/interfaces inherited from interface Component
Component.Configuration -
Field Summary
Fields inherited from class AbstractAction
actionType, cancelConfirmation, confirmationThreshold, fullscreen, icon, maxSelection, minSelection, modalSize, runInBackgroundTask, showConfirmation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(String name, Object value) @Nullable StringgetAppId()The app with this id will be called by the action.used to decide the look of an action buttonused to decide the look of an actionName of the action condition used to decide if action is shownused to determine on which dms items to display an action@Nullable StringThis REST endpoint will be called by the action.@Nullable StringgetPath()The legacy action with this path will be called.The properties for the action.used to determine whether the label should be displayedbooleanbooleanReturns true if an action is only a placeholder.voidvoidsetButtonStyle(BaseAction.ButtonStyle buttonStyle) voidsetButtonType(ButtonType buttonType) voidsetConditionName(String conditionName) voidsetDmsEntityModel(String dmsEntityModel) voidsetEndpoint(String endpoint) voidsetOnlyShowOnEmptyColumn(boolean onlyShowOnEmptyColumn) voidvoidsetPlaceholder(boolean isPlaceholder) voidsetUseLabel(UseLabel useLabel) voidvalidate()Will be called when the form has been built completely.Methods inherited from class AbstractAction
getActionType, getConfirmationThreshold, getIcon, getMaxSelection, getMinSelection, getModalSize, getShowConfirmation, isCancelConfirmation, isFullscreen, isRunInBackgroundTask, setActionType, setCancelConfirmation, setConfirmationThreshold, setFullscreen, setIcon, setMaxSelection, setMinSelection, setModalSize, setRunInBackgroundTask, setShowConfirmation, setUsesLabelAsTextResource, usesLabelAsTextResourceMethods inherited from class AbstractCompositeComponent
accept, addComponent, addScope, addScopes, clone, findById, getChildren, getScopes, hasChildren, indexOf, insertComponent, parseScopes, removeComponent, removeScope, removeScopes, replaceComponentMethods inherited from class AbstractComponent
getDefaultFormLabel, getId, getLabel, getParent, getPosition, setId, setLabel, setParent, setPositionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BaseAction
getActionType, getConfirmationThreshold, getIcon, getMaxSelection, getMinSelection, getModalSize, getShowConfirmation, isCancelConfirmation, isFullscreen, isRunInBackgroundTask, usesLabelAsTextResourceMethods inherited from interface CompositeComponent
findById, getChildren, getScopes, hasChildren
-
Constructor Details
-
ActionImpl
public ActionImpl()
-
-
Method Details
-
getEndpoint
Description copied from interface:ActionThis REST endpoint will be called by the action. Must be defined if the action type is equalBaseAction.ActionType.SIMPLE. It can also be set onBaseAction.ActionType.CUSTOMfor pre-action logic.- Specified by:
getEndpointin interfaceAction
-
setEndpoint
-
getAppId
Description copied from interface:ActionThe app with this id will be called by the action. Must only be defined if the action type is equalBaseAction.ActionType.CUSTOM -
setAppId
-
getPath
Description copied from interface:ActionThe legacy action with this path will be called. Must only be defined if the action type is equalBaseAction.ActionType.LEGACY -
setPath
-
setUseLabel
-
getUseLabel
Description copied from interface:Actionused to determine whether the label should be displayed- Specified by:
getUseLabelin interfaceAction
-
setDmsEntityModel
-
getDmsEntityModel
Description copied from interface:Actionused to determine on which dms items to display an action- Specified by:
getDmsEntityModelin interfaceAction
-
setButtonType
-
getButtonType
Description copied from interface:Actionused to decide the look of an action- Specified by:
getButtonTypein interfaceAction
-
setButtonStyle
-
getButtonStyle
Description copied from interface:Actionused to decide the look of an action button- Specified by:
getButtonStylein interfaceAction
-
getProperties
-
addProperty
-
validate
Description copied from interface:ComponentWill 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:
validatein interfaceComponent- Overrides:
validatein classAbstractCompositeComponent- Throws:
ModelBuildException
-
setOnlyShowOnEmptyColumn
public void setOnlyShowOnEmptyColumn(boolean onlyShowOnEmptyColumn) -
isOnlyShowOnEmptyColumn
public boolean isOnlyShowOnEmptyColumn()- Specified by:
isOnlyShowOnEmptyColumnin interfaceAction
-
setConditionName
-
getConditionName
Description copied from interface:ActionName of the action condition used to decide if action is shown- Specified by:
getConditionNamein interfaceAction
-
isPlaceholder
public boolean isPlaceholder()Description copied from interface:ActionReturns true if an action is only a placeholder. A placeholder is only available during usingFormInterceptors. The lastFormInterceptorRemovePlaceholderInterceptor removes such placeholders. Placeholders are required to define the sorting (e.g. "after:delete"). Else during sorting sometimes errors are logged.- Specified by:
isPlaceholderin interfaceAction
-
setPlaceholder
public void setPlaceholder(boolean isPlaceholder)
-