@NotThreadSafe public class DefaultBootstrapFormGroupRenderer extends Object implements IBootstrapFormGroupRenderer
IBootstrapFormGroupRenderer
which performs standard rendering. It offers the possibility to modify
certain styling by overriding the provided protected methods.| Constructor and Description |
|---|
DefaultBootstrapFormGroupRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected com.helger.html.hc.html.IHCElementWithChildren<?> |
createHelpTextNode(com.helger.html.hc.IHCNode aHelpText)
Create the help text node
|
protected com.helger.html.hc.html.IHCElement<?> |
createSingleErrorNode(com.helger.commons.error.IError aError,
Locale aContentLocale)
Create the node for a single error.
|
boolean |
isForceNoCheckBoxHandling() |
boolean |
isUseIcons() |
protected void |
modifyFinalNode(IBootstrapFormGroupContainer<?> aForm,
BootstrapFormGroup aFormGroup,
com.helger.html.hc.html.grouping.AbstractHCDiv<?> aFinalNode)
Callback possibility to change the finally created node before it is
returned.
|
protected void |
modifyFirstControlIfLabelIsPresent(com.helger.html.hc.html.IHCElementWithChildren<?> aLabel,
com.helger.html.hc.html.forms.IHCControl<?> aFirstControl)
Modify the first control that is inserted.
|
com.helger.html.hc.html.grouping.AbstractHCDiv<?> |
renderFormGroup(IBootstrapFormGroupContainer<?> aForm,
BootstrapFormGroup aFormGroup,
Locale aDisplayLocale) |
DefaultBootstrapFormGroupRenderer |
setForceNoCheckBoxHandling(boolean bForceNoCheckBoxHandling) |
DefaultBootstrapFormGroupRenderer |
setUseIcons(boolean bUseIcons) |
public boolean isUseIcons()
isUseIcons in interface IBootstrapFormGroupRenderer@Nonnull public DefaultBootstrapFormGroupRenderer setUseIcons(boolean bUseIcons)
setUseIcons in interface IBootstrapFormGroupRendererpublic boolean isForceNoCheckBoxHandling()
@Nonnull public DefaultBootstrapFormGroupRenderer setForceNoCheckBoxHandling(boolean bForceNoCheckBoxHandling)
@OverrideOnDemand protected void modifyFirstControlIfLabelIsPresent(@Nonnull com.helger.html.hc.html.IHCElementWithChildren<?> aLabel, @Nonnull com.helger.html.hc.html.forms.IHCControl<?> aFirstControl)
aLabel - The label that was provided. Never null.aFirstControl - The first control that was provided. Never null.@Nonnull @OverrideOnDemand protected com.helger.html.hc.html.IHCElementWithChildren<?> createHelpTextNode(@Nonnull com.helger.html.hc.IHCNode aHelpText)
aHelpText - The source help text. Never null.null.@Nullable @OverrideOnDemand protected com.helger.html.hc.html.IHCElement<?> createSingleErrorNode(@Nonnull com.helger.commons.error.IError aError, @Nonnull Locale aContentLocale)
aError - The provided error. Never null.aContentLocale - Locale to be used to show error text.null.@OverrideOnDemand protected void modifyFinalNode(@Nonnull IBootstrapFormGroupContainer<?> aForm, @Nonnull BootstrapFormGroup aFormGroup, @Nonnull com.helger.html.hc.html.grouping.AbstractHCDiv<?> aFinalNode)
aForm - The source form. Never null.aFormGroup - The source form group. Never null.aFinalNode - The created node so far. Never null.@Nonnull public com.helger.html.hc.html.grouping.AbstractHCDiv<?> renderFormGroup(@Nonnull IBootstrapFormGroupContainer<?> aForm, @Nonnull BootstrapFormGroup aFormGroup, @Nonnull Locale aDisplayLocale)
renderFormGroup in interface IBootstrapFormGroupRendereraForm - Form the form group belongs to. May not be null.aFormGroup - The form group to be rendered. May not be null.aDisplayLocale - Display locale to be used. May not be null.null.Copyright © 2015–2020 Philip Helger. All rights reserved.