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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionType(String actionType) addProps()voidWill be called after running theAbstractComponentHandler.finish()-Method.voidvoidWill be called before running theAbstractComponentHandler.finish()-Method this.field won't be available yet.voidbuttonStyle(String buttonStyle) voidbuttonType(String buttonType) voidcancelConfirmation(boolean cancelConfirmation) voidconditionName(String conditionName) voidconfirmationThreshold(int confirmationThreshold) voiddefaultAction(String defaultAction) voiddmsEntityModel(String buttonType) protected voiddoFinish()Assembles the component together.voidvoidfullscreen(boolean fullscreen) A concrete class which implmentsAbstractComponentHandler(not the handler).Return the Interface which represents this component (not the handler).voidmaxSelection(int maxSelection) voidminSelection(int minSelection) voidvoidrunInBackground(boolean runInBackground) voidsetExtIcon(@Nullable String icon) voidvoidfinal voidsetOnlyShowOnEmptyColumn(boolean hide) voidvoidsetReactIcon(@Nullable String icon) voidvoidshowConfirmation(boolean showConfirmation) We don't care about sub-elements so we let theComponentHandlerContextFactorydo 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
-
modalSize
-
cancelConfirmation
-
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:AbstractComponentHandlerA concrete class which implmentsAbstractComponentHandler(not the handler). Expects a public-constructor which takes the parent Compononent.- Specified by:
getImplClassin classAbstractComponentHandler<Action>- Returns:
- the class
-
beforeFinish
public void beforeFinish()Description copied from class:AbstractComponentHandlerWill be called before running theAbstractComponentHandler.finish()-Method this.field won't be available yet.- Overrides:
beforeFinishin classAbstractComponentHandler<Action>- See Also:
-
doFinish
Description copied from class:AbstractComponentHandlerAssembles the component together.- Overrides:
doFinishin classAbstractComponentHandler<Action>- Throws:
ModelBuildException- =(
-
afterFinish
public void afterFinish()Description copied from class:AbstractComponentHandlerWill be called after running theAbstractComponentHandler.finish()-Method. this.field will be ready to fill.- Overrides:
afterFinishin classAbstractComponentHandler<Action>- See Also:
-
getInterface
Description copied from class:AbstractComponentHandlerReturn the Interface which represents this component (not the handler). This interface is normallyAbstractComponentHandler- Specified by:
getInterfacein 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 theComponentHandlerContextFactorydo it.- Parameters:
tagName- the tag- Returns:
- a component
- Throws:
ModelBuildException- in case any of the sub-components had an error
-