@NotThreadSafe public class BootstrapForm extends com.helger.html.hc.html.forms.AbstractHCForm<BootstrapForm> implements IBootstrapFormGroupContainer<BootstrapForm>
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_LEFT_PART |
static int |
DEFAULT_RIGHT_PART |
CSS_CLASS_INVISIBLE_BUTTON, DEFAULT_AUTO_COMPLETE, DEFAULT_METHOD, DEFAULT_NOVALIDATE, DEFAULT_SUBMIT_PRESSING_ENTER| Constructor and Description |
|---|
BootstrapForm(com.helger.photon.core.execcontext.ISimpleWebExecutionContext aLEC) |
| Modifier and Type | Method and Description |
|---|---|
BootstrapForm |
addFormGroup(BootstrapFormGroup aFormGroup)
Add a new form group at the end.
|
IBootstrapFormGroupRenderer |
getFormGroupRenderer() |
EBootstrapFormType |
getFormType() |
BootstrapGridSpec |
getLeft() |
com.helger.html.hc.html.IHCElementWithChildren<?> |
getRenderedFormGroup(BootstrapFormGroup aFormGroup)
Get the rendered form group based on the contained form group renderer.
|
BootstrapGridSpec |
getRight() |
protected void |
onFinalizeNodeState(com.helger.html.hc.IHCConversionSettingsToNode aConversionSettings,
com.helger.html.hc.IHCHasChildrenMutable<?,? super com.helger.html.hc.IHCNode> aTargetNode) |
BootstrapForm |
setFormGroupRenderer(IBootstrapFormGroupRenderer aFormGroupRenderer)
Set the form group renderer to be used.
|
BootstrapForm |
setFormType(EBootstrapFormType eFormType) |
BootstrapForm |
setLeft(int nLeftPartsXS,
int nLeftPartsSM,
int nLeftPartsMD,
int nLeftPartsLG,
int nLeftPartsXL)
Set the left part of a horizontal form.
|
BootstrapForm |
setSplitting(BootstrapGridSpec aLeft,
BootstrapGridSpec aRight)
Set the left part of a horizontal form.
|
fillMicroElement, getAcceptCharset, getActionJS, getActionURL, getEncType, getMethod, getName, getSubmitButtonTabIndex, getTarget, isAutoCompleteOff, isAutoCompleteOn, isAutoCompleteUndefined, isNoValidate, isSubmitPressingEnter, onConsistencyCheck, setAcceptCharset, setAction, setAction, setAutoComplete, setEncType, setMethod, setName, setNoValidate, setSubmitPressingEnter, setTarget, toStringaddChild, addChildAt, afterAddChild, afterRemoveChild, beforeAddChild, canConvertToMicroNode, children, findFirstChild, findFirstChildMapped, forAllChildren, forAllChildren, forAllChildrenBreakable, forAllChildrenMapped, getAllChildren, getAllChildrenAsNodeList, getChildAtIndex, getChildCount, getChildren, getChildrenFormEmitting, getFirstChild, getLastChild, getPlainText, hasChildren, removeAllChildren, removeChild, removeChildAt, sortAllChildrenaddClass, addEventHandler, addStyle, containsClass, containsEventHandler, containsStyle, createMicroElement, customAttrs, finishMicroElement, getAccessKey, getAllClasses, getAllClassesAsString, getAllClassNames, getAllStyles, getAllStylesAsString, getAllStyleValues, getContentEditable, getContextMenu, getDirection, getDraggable, getDropZone, getElement, getEventHandler, getEventMap, getID, getLanguage, getRole, getStyleValue, getTabIndex, getTagName, getTitle, getTranslate, hasAnyClass, hasAnyStyle, hasStyle, internalConvertToMicroNode, isHidden, isSpellCheck, isTranslateOff, isTranslateOn, isTranslateUndefined, isUnfocusable, isValidID, prependEventHandler, removeAllClasses, removeAllEventHandler, removeAllStyles, removeClass, removeStyle, setAccessKey, setContentEditable, setContextMenu, setDirection, setDraggable, setDropZone, setEventHandler, setHidden, setID, setID, setLanguage, setRole, setSpellCheck, setTabIndex, setTitle, setTranslate, setUnfocusableconsistencyCheck, convertToMicroNode, customizeNode, finalizeNodeState, getNodeState, internalSetNodeState, onCustomizeNode, onRegisterExternalResources, registerExternalResourcesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetLeftaddEventHandler, containsEventHandler, customAttrs, getAccessKey, getContentEditable, getContextMenu, getDirection, getDraggable, getDropZone, getElement, getEventHandler, getEventMap, getLanguage, getRole, getTabIndex, getTagName, getTitle, getTranslate, isHidden, isSpellCheck, isTranslateOff, isTranslateOn, isTranslateUndefined, isUnfocusable, prependEventHandler, removeAllEventHandler, setAccessKey, setContentEditable, setContextMenu, setDirection, setDraggable, setDropZone, setEventHandler, setHidden, setLanguage, setRole, setSpellCheck, setTabIndex, setTitle, setTranslate, setTranslate, setUnfocusablecanConvertToMicroNode, consistencyCheck, convertToMicroNode, customizeNode, finalizeNodeState, getNodeState, getPlainText, registerExternalResourcesfindFirstChild, findFirstChildMapped, getAllChildren, getChildAtIndex, getFirstChild, getLastChildforAllChildrenRecursive, forAllChildrenRecursiveforAllChildren, forAllChildren, forAllChildrenBreakable, forAllChildrenMapped, getChildCount, getChildren, hasChildren, hasNoChildrenensureID, getID, hasID, hasNoID, setID, setUniqueIDaddStyle, addStyle, addStyles, addStyles, addStyles, containsStyle, getAllStyles, getAllStylesAsString, getAllStyleValues, getStyleValue, hasAnyStyle, hasStyle, removeAllStyles, removeStyleaddClass, addClasses, addClasses, addClasses, containsClass, getAllClasses, getAllClassesAsString, getAllClassNames, hasAnyClass, removeAllClasses, removeClasssetAutoComplete, setEncTypeFileUpload, setEncTypeTextPlain, setSubmitPressingEnterrecursiveContainsChildWithTagNameaddChild, addChildAt, addChildren, addChildren, setChildaddAndReturnChild, addAndReturnChildAt, addChild, addChildAt, addChildren, addChildren, addChildren, addChildrenAt, addChildrenAt, getAllChildrenAsNodeList, removeAllChildren, removeChild, removeChildAt, setChild, sortAllChildrenpublic static final int DEFAULT_LEFT_PART
public static final int DEFAULT_RIGHT_PART
public BootstrapForm(@Nonnull com.helger.photon.core.execcontext.ISimpleWebExecutionContext aLEC)
@Nonnull public final EBootstrapFormType getFormType()
getFormType in interface IBootstrapFormGroupContainer<BootstrapForm>null
.@Nonnull public final BootstrapForm setFormType(@Nonnull EBootstrapFormType eFormType)
eFormType - The form type to be used. May not be null.@Nonnull public final BootstrapGridSpec getLeft()
getLeft in interface IBootstrapFormGroupContainer<BootstrapForm>null.@Nonnull public final BootstrapGridSpec getRight()
getRight in interface IBootstrapFormGroupContainer<BootstrapForm>CBootstrap.GRID_SYSTEM_MAX - getLeft () except left is
CBootstrap.GRID_SYSTEM_MAX than right is also
CBootstrap.GRID_SYSTEM_MAX. Never null.@Nonnull @OverridingMethodsMustInvokeSuper public BootstrapForm setLeft(@Nonnegative int nLeftPartsXS, @Nonnegative int nLeftPartsSM, @Nonnegative int nLeftPartsMD, @Nonnegative int nLeftPartsLG, @Nonnegative int nLeftPartsXL)
IBootstrapFormGroupContainersetLeft in interface IBootstrapFormGroupContainer<BootstrapForm>nLeftPartsXS - The left parts XS. Must be ≥ 1 and ≤ 12!nLeftPartsSM - The left parts SM. Must be ≥ 1 and ≤ 12!nLeftPartsMD - The left parts MD. Must be ≥ 1 and ≤ 12!nLeftPartsLG - The left parts LG. Must be ≥ 1 and ≤ 12!nLeftPartsXL - The left parts XL. Must be ≥ 1 and ≤ 12!@Nonnull @OverridingMethodsMustInvokeSuper public BootstrapForm setSplitting(@Nonnull BootstrapGridSpec aLeft, @Nonnull BootstrapGridSpec aRight)
IBootstrapFormGroupContainersetSplitting in interface IBootstrapFormGroupContainer<BootstrapForm>aLeft - The left parts. Must not be null.aRight - The right parts. Must not be null.@Nonnull public IBootstrapFormGroupRenderer getFormGroupRenderer()
getFormGroupRenderer in interface IBootstrapFormGroupContainer<BootstrapForm>null.@Nonnull public BootstrapForm setFormGroupRenderer(@Nonnull IBootstrapFormGroupRenderer aFormGroupRenderer)
IBootstrapFormGroupContainersetFormGroupRenderer in interface IBootstrapFormGroupContainer<BootstrapForm>aFormGroupRenderer - The from group renderer. May not be null.@Nonnull public com.helger.html.hc.html.IHCElementWithChildren<?> getRenderedFormGroup(@Nonnull BootstrapFormGroup aFormGroup)
IBootstrapFormGroupContainergetRenderedFormGroup in interface IBootstrapFormGroupContainer<BootstrapForm>aFormGroup - The form group to be rendered. May not be null.null.@Nonnull public BootstrapForm addFormGroup(@Nonnull BootstrapFormGroup aFormGroup)
IBootstrapFormGroupContaineraddFormGroup in interface IBootstrapFormGroupContainer<BootstrapForm>aFormGroup - The form group to be added. May not be null.@OverrideOnDemand @OverridingMethodsMustInvokeSuper protected void onFinalizeNodeState(@Nonnull com.helger.html.hc.IHCConversionSettingsToNode aConversionSettings, @Nonnull com.helger.html.hc.IHCHasChildrenMutable<?,? super com.helger.html.hc.IHCNode> aTargetNode)
onFinalizeNodeState in class com.helger.html.hc.html.forms.AbstractHCForm<BootstrapForm>Copyright © 2015–2020 Philip Helger. All rights reserved.