Class TextAreaHandler<T extends TextArea>
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.TextAreaHandler<T>
- All Implemented Interfaces:
ValidatorReceivable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected Booleanprotected intprotected intprotected TextArea.HeightTypeFields inherited from class AbstractDataComponentHandler
data, validatorHandlerContextFactoryFields inherited from class AbstractComponentHandler
displayType, field, forceEditable, label, name, receiver, scopes, useLabel -
Constructor Summary
ConstructorsConstructorDescriptionTextAreaHandler(ComponentReceiver receiver, ValidatorHandlerContextFactory validatorHandlerContextFactory, DefaultValueResolver resolver) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidWill be called at the or towards the end of afterFinish().A concrete class which implmentsT(not the handler).Return the Interface which represents this component (not the handler).voidsetHeight(int height) voidsetHeightGrow(boolean heightGrow) voidsetHeightGrowMax(int heightGrowMax) voidsetHeightGrowMin(int heightGrowMin) voidsetHeightType(TextArea.HeightType heightType) Methods inherited from class AbstractDataComponentHandler
addAutoComplete, addDefaultValues, addValidations, addValidator, afterFinish, beforeFinish, getDefaultValidators, setConstriction, setData, setDataType, setDefaultLangOnly, setEventHandler, setIgnoreCopy, simpleSearch, startElementMethods inherited from class AbstractComponentHandler
addAttributeProps, addExtProps, createOrGetComponent, disableOldClient, doFinish, finish, forceEditable, label, setDisplayType, setLabel, setName, setPosition, setScopes, setUseLabel
-
Field Details
-
heightType
-
height
protected int height -
heightGrow
-
heightGrowMin
protected int heightGrowMin -
heightGrowMax
protected int heightGrowMax
-
-
Constructor Details
-
TextAreaHandler
public TextAreaHandler(ComponentReceiver receiver, ValidatorHandlerContextFactory validatorHandlerContextFactory, DefaultValueResolver resolver)
-
-
Method Details
-
getImplClass
Description copied from class:AbstractComponentHandlerA concrete class which implmentsT(not the handler). Expects a public-constructor which takes the parent Compononent.- Specified by:
getImplClassin classAbstractComponentHandler<T extends TextArea>- Returns:
- the class
-
getInterface
Description copied from class:AbstractComponentHandlerReturn the Interface which represents this component (not the handler). This interface is normallyT- Specified by:
getInterfacein classAbstractComponentHandler<T extends TextArea>- Returns:
- interface-class
-
afterDataSet
protected void afterDataSet()Description copied from class:AbstractDataComponentHandlerWill 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
afterDataSet(); it assigns additional, component-specific data read from xml to the component: field.setRowHeight(rowHeight);- Specified by:
afterDataSetin classAbstractDataComponentHandler<T extends TextArea>
-
setHeightType
-
setHeight
-
setHeightGrow
-
setHeightGrowMin
-
setHeightGrowMax
-