Class ActionComponentHandler
java.lang.Object
ch.tocco.nice2.model.form.spi.reader.handler.AbstractComponentHandler<Action>
ch.tocco.nice2.model.form.impl.reader.handlers.ActionComponentHandler
-
Field Summary
Fields inherited from class ch.tocco.nice2.model.form.spi.reader.handler.AbstractComponentHandler
displayType, field, forceEditable, label, name, receiver, scopes, useLabel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
actionType
(String actionType) addProps()
void
Will be called after running theAbstractComponentHandler.finish()
-Method.void
void
Will be called before running theAbstractComponentHandler.finish()
-Method this.field won't be available yet.void
buttonStyle
(String buttonStyle) void
buttonType
(String buttonType) void
conditionName
(String conditionName) void
confirmationThreshold
(int confirmationThreshold) void
defaultAction
(String defaultAction) void
dmsEntityModel
(String buttonType) protected void
doFinish()
Assembles the component together.void
void
fullscreen
(boolean fullscreen) A concrete class which implmentsAbstractComponentHandler
(not the handler).Return the Interface which represents this component (not the handler).void
maxSelection
(int maxSelection) void
minSelection
(int minSelection) void
runInBackground
(boolean runInBackground) void
setExtIcon
(@Nullable String icon) void
void
final void
setOnlyShowOnEmptyColumn
(boolean hide) void
void
setReactIcon
(@Nullable String icon) void
void
showConfirmation
(boolean showConfirmation) We don't care about sub-elements so we let theComponentHandlerContextFactory
do it.Methods inherited from class ch.tocco.nice2.model.form.spi.reader.handler.AbstractComponentHandler
addAttributeProps, addExtProps, createOrGetComponent, disableOldClient, finish, forceEditable, label, setDisplayType, setLabel, setName, setPosition, setScopes, setUseLabel, startElement
-
Constructor Details
-
ActionComponentHandler
-
-
Method Details
-
setPath
-
setType
-
setIcon
-
setExtIcon
-
setReactIcon
-
setGroup
-
endpoint
-
buttonType
-
dmsEntityModel
-
appId
-
minSelection
-
maxSelection
-
showConfirmation
-
confirmationThreshold
-
runInBackground
-
fullscreen
-
defaultAction
-
actionType
-
setOnlyShowOnEmptyColumn
-
conditionName
-
buttonStyle
-
addProps
@Element("properties") @Cardinality(min=0, max=1) public PropertyTagHandler addProps() throws ModelBuildException- Throws:
ModelBuildException
-
getImplClass
Description copied from class:AbstractComponentHandler
A concrete class which implmentsAbstractComponentHandler
(not the handler). Expects a public-constructor which takes the parent Compononent.- Specified by:
getImplClass
in classAbstractComponentHandler<Action>
- Returns:
- the class
-
beforeFinish
public void beforeFinish()Description copied from class:AbstractComponentHandler
Will be called before running theAbstractComponentHandler.finish()
-Method this.field won't be available yet.- Overrides:
beforeFinish
in classAbstractComponentHandler<Action>
- See Also:
-
doFinish
Description copied from class:AbstractComponentHandler
Assembles the component together.- Overrides:
doFinish
in classAbstractComponentHandler<Action>
- Throws:
ModelBuildException
- =(
-
afterFinish
public void afterFinish()Description copied from class:AbstractComponentHandler
Will be called after running theAbstractComponentHandler.finish()
-Method. this.field will be ready to fill.- Overrides:
afterFinish
in classAbstractComponentHandler<Action>
- See Also:
-
getInterface
Description copied from class:AbstractComponentHandler
Return the Interface which represents this component (not the handler). This interface is normallyAbstractComponentHandler
- Specified by:
getInterface
in classAbstractComponentHandler<Action>
- Returns:
- interface-class
-
tag
@AnyElement @Cardinality(min=0, max=2147483647) public Object tag(@ElementName String tagName) throws ModelBuildException We don't care about sub-elements so we let theComponentHandlerContextFactory
do it.- Parameters:
tagName
- the tag- Returns:
- a component
- Throws:
ModelBuildException
- in case any of the sub-components had an error
-