Class ComponentInserter
java.lang.Object
ch.tocco.nice2.model.form.impl.form2.reader.handler.util.ComponentInserter
Utility class which inserts an
AbstractComponent
into an AbstractCompositeComponent
.
Per default, new components are added at the end of the list.
It is possible to specify a position in the form. *
The following positions are supported:
- top
- bottom (default)
- before:id
- after:id-
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentInserter
getId()
void
insertComponent
(AbstractCompositeComponent parent, AbstractComponent child) static ComponentInserter
withPosition
(@Nullable String position)
-
Method Details
-
createDefault
-
withPosition
-
insertComponent
-
getId
-