@Immutable public final class BootstrapFormHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.helger.html.css.ICSSClassProvider |
CSS_CLASS_FORM_GROUP_ERROR_TEXT |
static com.helger.html.css.ICSSClassProvider |
CSS_CLASS_FORM_GROUP_HELP_TEXT |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyFormControlValidityState(com.helger.html.hc.html.IHCElement<?> aElement,
com.helger.commons.error.list.IErrorList aErrorList) |
static void |
applyFormControlValidityState(Iterable<? extends com.helger.html.hc.html.IHCElement<?>> aCtrls,
com.helger.commons.error.list.IErrorList aErrorList) |
static void |
connectFormControlsWithLabel(Iterable<? extends com.helger.html.hc.html.IHCElement<?>> aCtrls,
com.helger.photon.uicore.html.formlabel.HCFormLabel aLabel) |
static void |
connectFormControlWithLabel(com.helger.html.hc.html.IHCElement<?> aCtrl,
com.helger.photon.uicore.html.formlabel.HCFormLabel aLabel) |
static com.helger.html.hc.impl.HCNodeList |
createDefaultErrorNode(com.helger.commons.error.list.IErrorList aErrorList,
Locale aContentLocale) |
static com.helger.html.hc.impl.HCNodeList |
createDefaultErrorNode(com.helger.commons.error.list.IErrorList aErrorList,
Locale aContentLocale,
boolean bWithLocation) |
static BootstrapInvalidFeedback |
createDefaultErrorNode(com.helger.commons.error.IError aError,
Locale aContentLocale) |
static BootstrapInvalidFeedback |
createDefaultErrorNode(com.helger.commons.error.IError aError,
Locale aContentLocale,
boolean bWithLocation) |
static com.helger.html.hc.html.IHCElementWithChildren<?> |
createDefaultHelpTextNode(com.helger.html.hc.IHCNode aHelpText) |
static com.helger.html.hc.html.IHCElementWithChildren<?> |
createDefaultHelpTextNode(String sHelpText) |
static com.helger.html.hc.impl.HCNodeList |
createStandaloneFormCtrl(com.helger.html.hc.IHCNode aCtrl,
com.helger.commons.error.list.IErrorList aErrorList,
Locale aContentLocale) |
static String |
getDefaultPlaceholderText(com.helger.html.hc.html.IHCElementWithChildren<?> aLabel) |
static void |
markAsFormControl(com.helger.html.hc.IHCNode aNode) |
static void |
markAsFormControls(Iterable<? extends com.helger.html.hc.IHCNode> aNodes) |
static void |
markChildrenAsFormControls(com.helger.html.hc.IHCNode aParent) |
public static final com.helger.html.css.ICSSClassProvider CSS_CLASS_FORM_GROUP_ERROR_TEXT
public static final com.helger.html.css.ICSSClassProvider CSS_CLASS_FORM_GROUP_HELP_TEXT
public static void markAsFormControl(@Nullable com.helger.html.hc.IHCNode aNode)
public static void markAsFormControls(@Nullable Iterable<? extends com.helger.html.hc.IHCNode> aNodes)
public static void markChildrenAsFormControls(@Nullable com.helger.html.hc.IHCNode aParent)
public static void connectFormControlWithLabel(@Nullable com.helger.html.hc.html.IHCElement<?> aCtrl, @Nullable com.helger.photon.uicore.html.formlabel.HCFormLabel aLabel)
public static void connectFormControlsWithLabel(@Nullable Iterable<? extends com.helger.html.hc.html.IHCElement<?>> aCtrls, @Nullable com.helger.photon.uicore.html.formlabel.HCFormLabel aLabel)
public static void applyFormControlValidityState(@Nullable com.helger.html.hc.html.IHCElement<?> aElement, @Nullable com.helger.commons.error.list.IErrorList aErrorList)
public static void applyFormControlValidityState(@Nullable Iterable<? extends com.helger.html.hc.html.IHCElement<?>> aCtrls, @Nullable com.helger.commons.error.list.IErrorList aErrorList)
@Nonnull public static BootstrapInvalidFeedback createDefaultErrorNode(@Nonnull com.helger.commons.error.IError aError, @Nonnull Locale aContentLocale)
@Nonnull public static BootstrapInvalidFeedback createDefaultErrorNode(@Nonnull com.helger.commons.error.IError aError, @Nonnull Locale aContentLocale, boolean bWithLocation)
@Nonnull public static com.helger.html.hc.impl.HCNodeList createDefaultErrorNode(@Nullable com.helger.commons.error.list.IErrorList aErrorList, @Nonnull Locale aContentLocale)
@Nonnull public static com.helger.html.hc.impl.HCNodeList createDefaultErrorNode(@Nullable com.helger.commons.error.list.IErrorList aErrorList, @Nonnull Locale aContentLocale, boolean bWithLocation)
@Nullable public static com.helger.html.hc.html.IHCElementWithChildren<?> createDefaultHelpTextNode(@Nullable String sHelpText)
@Nullable public static com.helger.html.hc.html.IHCElementWithChildren<?> createDefaultHelpTextNode(@Nullable com.helger.html.hc.IHCNode aHelpText)
@Nonnull public static String getDefaultPlaceholderText(@Nonnull com.helger.html.hc.html.IHCElementWithChildren<?> aLabel)
Copyright © 2015–2020 Philip Helger. All rights reserved.