Class DisplayExpressionHandler<T extends DisplayExpressionField>
java.lang.Object
ch.tocco.nice2.model.form.spi.reader.handler.AbstractComponentHandler<T>
ch.tocco.nice2.model.form.impl.reader.handlers.AbstractDataComponentHandler<T>
ch.tocco.nice2.model.form.impl.reader.handlers.DisplayExpressionHandler<T>
- All Implemented Interfaces:
ValidatorReceivable
public class DisplayExpressionHandler<T extends DisplayExpressionField>
extends AbstractDataComponentHandler<T>
-
Field Summary
Fields inherited from class ch.tocco.nice2.model.form.impl.reader.handlers.AbstractDataComponentHandler
data, validatorHandlerContextFactory
Fields inherited from class ch.tocco.nice2.model.form.spi.reader.handler.AbstractComponentHandler
displayType, field, forceEditable, label, name, receiver, scopes, useLabel
-
Constructor Summary
ConstructorDescriptionDisplayExpressionHandler
(ComponentReceiver receiver, ValidatorHandlerContextFactory validatorHandlerContextFactory, DefaultValueResolver resolver) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Will be called at the or towards the end of afterFinish().protected void
Will be called before running theAbstractComponentHandler.finish()
-Method this.field won't be available yet.A concrete class which implmentsAbstractComponentHandler
(not the handler).Return the Interface which represents this component (not the handler).void
setCompressible
(boolean compressible) void
setEscapeHtml
(boolean escapeHtml) void
setExpression
(String expression) void
setLanguage
(String language) void
setTemplate
(@Nullable String template) Methods inherited from class ch.tocco.nice2.model.form.impl.reader.handlers.AbstractDataComponentHandler
addAutoComplete, addDefaultValues, addValidations, addValidator, afterFinish, getDefaultValidators, setConstriction, setData, setDataType, setDefaultLangOnly, setEventHandler, setIgnoreCopy, simpleSearch, startElement
Methods inherited from class ch.tocco.nice2.model.form.spi.reader.handler.AbstractComponentHandler
addAttributeProps, addExtProps, createOrGetComponent, disableOldClient, doFinish, finish, forceEditable, label, setDisplayType, setLabel, setName, setPosition, setScopes, setUseLabel
-
Constructor Details
-
DisplayExpressionHandler
public DisplayExpressionHandler(ComponentReceiver receiver, ValidatorHandlerContextFactory validatorHandlerContextFactory, DefaultValueResolver resolver)
-
-
Method Details
-
afterDataSet
protected void afterDataSet()Description copied from class:AbstractDataComponentHandler
Will be called at the or towards the end of afterFinish().This is abstract so that every implementer is forced to know about its existence.
For an example see
TextAreaHandler.afterDataSet()
; it assigns additional, component-specific data read from xml to the component: field.setRowHeight(rowHeight);- Specified by:
afterDataSet
in classAbstractDataComponentHandler<T extends DisplayExpressionField>
-
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<T extends DisplayExpressionField>
- Returns:
- the class
-
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<T extends DisplayExpressionField>
- Returns:
- interface-class
-
setExpression
-
setLanguage
-
setCompressible
-
setEscapeHtml
-
setTemplate
-
beforeFinish
protected 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 classAbstractDataComponentHandler<T extends DisplayExpressionField>
- See Also:
-