Class AbstractBoxHandler<CC extends Box>
java.lang.Object
ch.tocco.nice2.model.form.spi.reader.handler.AbstractComponentHandler<CC>
ch.tocco.nice2.model.form.impl.reader.handlers.AbstractBoxHandler<CC>
- Direct Known Subclasses:
HorizontalBoxHandler,VerticalBoxHandler
-
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 TypeMethodDescriptionprotected voidAfter finish we set the additional attribute 'labeled' and if it is set to true we signal the label required.protected CCReturns the instance of the component for which this model is, and adds it to the receiver if not done yet.voidsetLabeled(boolean labeled) Comes from XML and specifies, whether the box is labeled or notWe 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, beforeFinish, disableOldClient, doFinish, finish, forceEditable, getImplClass, getInterface, label, setDisplayType, setLabel, setName, setPosition, setScopes, setUseLabel, startElement
-
Constructor Details
-
AbstractBoxHandler
-
-
Method Details
-
afterFinish
After finish we set the additional attribute 'labeled' and if it is set to true we signal the label required.- Overrides:
afterFinishin classAbstractComponentHandler<CC extends Box>- Throws:
ModelBuildException- See Also:
-
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
-
createOrGetComponent
Description copied from class:AbstractComponentHandlerReturns the instance of the component for which this model is, and adds it to the receiver if not done yet.- Overrides:
createOrGetComponentin classAbstractComponentHandler<CC extends Box>- Throws:
ModelBuildException
-
setLabeled
Comes from XML and specifies, whether the box is labeled or not- Parameters:
labeled- true: labeled / false: unlabeled
-