ControlNamePrefixAdjuster instead@Deprecated public class ControlNamePrefixingPostProcessor<T extends com.foreach.across.modules.web.ui.ViewElement> extends Object implements com.foreach.across.modules.web.ui.ViewElementPostProcessor<T>
FormInputElement. Meant for bean property prefixing.
Adds the prefix with a . (dot) to the original control name. Supports indexed properties,
which can be overruled using the setExactPrefix(boolean).| Constructor and Description |
|---|
ControlNamePrefixingPostProcessor(String prefix)
Deprecated.
|
ControlNamePrefixingPostProcessor(String prefix,
boolean alwaysPrefix)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
postProcess(com.foreach.across.modules.web.ui.ViewElementBuilderContext builderContext,
com.foreach.across.modules.web.ui.ViewElement element)
Deprecated.
|
void |
setAlwaysPrefix(boolean alwaysPrefix)
Deprecated.
Set to
true if a control name should always be prefixed, even if it already starts
with the specified prefix. |
void |
setExactPrefix(boolean exactPrefix)
Deprecated.
Set to
true if the prefix should be added as is. |
void |
setPrefix(@NonNull String prefix)
Deprecated.
|
public ControlNamePrefixingPostProcessor(String prefix)
public ControlNamePrefixingPostProcessor(String prefix, boolean alwaysPrefix)
public void setPrefix(@NonNull
@NonNull String prefix)
public void setAlwaysPrefix(boolean alwaysPrefix)
true if a control name should always be prefixed, even if it already starts
with the specified prefix.alwaysPrefix - true if prefixing should always be performedpublic void setExactPrefix(boolean exactPrefix)
true if the prefix should be added as is. If that is the case the prefix will not get an
intermediate . (dot) added and will ignore indexed properties.exactPrefix - true if the prefix should be added as ispublic 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.