Class AbstractAction
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
- All Implemented Interfaces:
BaseAction
,Component
,CompositeComponent
,Cloneable
- Direct Known Subclasses:
ActionImpl
,ReportImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.model.form.api.form2.components.BaseAction
BaseAction.ActionType, BaseAction.ButtonStyle
Nested classes/interfaces inherited from interface ch.tocco.nice2.model.form.api.form2.components.Component
Component.Configuration
-
Field Summary
Modifier and TypeFieldDescriptionprotected BaseAction.ActionType
protected Integer
protected boolean
protected String
protected Integer
protected Integer
protected boolean
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the action type of the action.@Nullable Integer
This property defines from which selection size the "selection is big it may take a while" warning / confirmation is displayed in the new client (if "showConfirmation" is `false` the value of this property is ignored).@Nullable String
getIcon()
The icon which should be displayed before the label.@Nullable Integer
Maximum number of entities that may be selected for this action.@Nullable Integer
Minimum number of entities that need to be selected for this action.boolean
If `true` the action will show the "selection is big it may take a while" warning / confirmation in the new client if the selection size is larger than the "confirmationThreshold".boolean
Returns true if the action is supposed to be run as "fullscreen" actionboolean
If `true` the action will run as background task.void
setActionType
(BaseAction.ActionType actionType) void
setConfirmationThreshold
(Integer confirmationThreshold) void
setFullscreen
(boolean fullscreen) void
void
setMaxSelection
(Integer maxSelection) void
setMinSelection
(Integer minSelection) void
setRunInBackgroundTask
(boolean runInBackgroundTask) void
setShowConfirmation
(boolean showConfirmation) void
setUsesLabelAsTextResource
(boolean usesLabelAsTextResource) boolean
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, validate
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, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.model.form.api.form2.components.Component
accept, getForm, getId, getLabel, getParent, getPosition, validate
Methods inherited from interface ch.tocco.nice2.model.form.api.form2.components.CompositeComponent
findById, getChildren, getScopes, hasChildren
-
Field Details
-
actionType
-
icon
-
runInBackgroundTask
protected boolean runInBackgroundTask -
fullscreen
protected boolean fullscreen -
minSelection
-
maxSelection
-
showConfirmation
protected boolean showConfirmation -
confirmationThreshold
-
-
Constructor Details
-
AbstractAction
public AbstractAction()
-
-
Method Details
-
getActionType
Description copied from interface:BaseAction
Returns the action type of the action. SeeBaseAction.ActionType
for more information about the specific action types.- Specified by:
getActionType
in interfaceBaseAction
-
setActionType
-
getIcon
Description copied from interface:BaseAction
The icon which should be displayed before the label. Represents font-awesome icon.- Specified by:
getIcon
in interfaceBaseAction
-
setIcon
-
getMinSelection
Description copied from interface:BaseAction
Minimum number of entities that need to be selected for this action.- Specified by:
getMinSelection
in interfaceBaseAction
-
setMinSelection
-
getMaxSelection
Description copied from interface:BaseAction
Maximum number of entities that may be selected for this action.- Specified by:
getMaxSelection
in interfaceBaseAction
-
setMaxSelection
-
isRunInBackgroundTask
public boolean isRunInBackgroundTask()Description copied from interface:BaseAction
If `true` the action will run as background task. Makes sense, if the action may take a long time. Default is `false`.- Specified by:
isRunInBackgroundTask
in interfaceBaseAction
-
setRunInBackgroundTask
public void setRunInBackgroundTask(boolean runInBackgroundTask) -
getShowConfirmation
public boolean getShowConfirmation()Description copied from interface:BaseAction
If `true` the action will show the "selection is big it may take a while" warning / confirmation in the new client if the selection size is larger than the "confirmationThreshold".- Specified by:
getShowConfirmation
in interfaceBaseAction
-
setShowConfirmation
public void setShowConfirmation(boolean showConfirmation) -
getConfirmationThreshold
Description copied from interface:BaseAction
This property defines from which selection size the "selection is big it may take a while" warning / confirmation is displayed in the new client (if "showConfirmation" is `false` the value of this property is ignored).- Specified by:
getConfirmationThreshold
in interfaceBaseAction
-
setConfirmationThreshold
-
isFullscreen
public boolean isFullscreen()Description copied from interface:BaseAction
Returns true if the action is supposed to be run as "fullscreen" action- Specified by:
isFullscreen
in interfaceBaseAction
-
setFullscreen
public void setFullscreen(boolean fullscreen) -
usesLabelAsTextResource
public boolean usesLabelAsTextResource()- Specified by:
usesLabelAsTextResource
in interfaceBaseAction
- Returns:
- true if label should be interpreted as text resource, false if it should be used as is
-
setUsesLabelAsTextResource
public void setUsesLabelAsTextResource(boolean usesLabelAsTextResource)
-