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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
After finish we set the additional attribute 'labeled' and if it is set to true we signal the label required.protected CC
Returns the instance of the component for which this model is, and adds it to the receiver if not done yet.void
setLabeled
(boolean labeled) Comes from XML and specifies, whether the box is labeled or notWe 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, 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:
afterFinish
in 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 theComponentHandlerContextFactory
do 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:AbstractComponentHandler
Returns the instance of the component for which this model is, and adds it to the receiver if not done yet.- Overrides:
createOrGetComponent
in 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
-