public class ControlNamePrefixAdjuster<T extends com.foreach.across.modules.web.ui.ViewElement> extends Object implements Consumer<T>, com.foreach.across.modules.web.ui.ViewElementPostProcessor<T>
FormInputElement.
Will update the element control name and (depending on the value of #recurse(boolean), will also update all
child controls if the element is a container.
A new instance is pre-configured for bean style element control names: dotted separators will be added and any control
name starting with an underscore is modified *after* the underscore.
When processing the container members, this prefixer ensures that controls are only modified a single time,
and ensures correct handling of FormControlElement.Proxy controls.
This is an implementation of both Consumer and ViewElementPostProcessor so it can easily
be passed around and used in different contexts.| Constructor and Description |
|---|
ControlNamePrefixAdjuster() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(com.foreach.across.modules.web.ui.ViewElement element) |
void |
postProcess(com.foreach.across.modules.web.ui.ViewElementBuilderContext builderContext,
com.foreach.across.modules.web.ui.ViewElement element) |
public void postProcess(com.foreach.across.modules.web.ui.ViewElementBuilderContext builderContext,
com.foreach.across.modules.web.ui.ViewElement element)
postProcess in interface com.foreach.across.modules.web.ui.ViewElementPostProcessor<T extends com.foreach.across.modules.web.ui.ViewElement>Copyright © 2020. All rights reserved.