@NotThreadSafe public class BootstrapViewForm extends AbstractBootstrapDiv<BootstrapViewForm> implements IBootstrapFormGroupContainer<BootstrapViewForm>
| Modifier and Type | Field and Description |
|---|---|
static com.helger.html.css.ICSSClassProvider |
CSS_CLASS_VIEW_FORM |
static int |
DEFAULT_LEFT_PART |
static int |
DEFAULT_RIGHT_PART |
| Constructor and Description |
|---|
BootstrapViewForm() |
| Modifier and Type | Method and Description |
|---|---|
BootstrapViewForm |
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) |
BootstrapViewForm |
setFormGroupRenderer(IBootstrapFormGroupRenderer aFormGroupRenderer)
Set the form group renderer to be used.
|
BootstrapViewForm |
setFormType(EBootstrapFormType eFormType) |
BootstrapViewForm |
setLeft(int nLeftPartsXS,
int nLeftPartsSM,
int nLeftPartsMD,
int nLeftPartsLG,
int nLeftPartsXL)
Set the left part of a horizontal form.
|
BootstrapViewForm |
setSplitting(BootstrapGridSpec aLeft,
BootstrapGridSpec aRight)
Set the left part of a horizontal form.
|
getBackground, getBorder, getDisplay, getMargin, getPadding, getTextAlign, setBackground, setBorder, setDisplay, setMargin, setPadding, setTextAlignfillMicroElement, getName, setName, 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, onConsistencyCheck, 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, removeClassrecursiveContainsChildWithTagNameaddChild, addChildAt, addChildren, addChildren, setChildaddAndReturnChild, addAndReturnChildAt, addChild, addChildAt, addChildren, addChildren, addChildren, addChildrenAt, addChildrenAt, getAllChildrenAsNodeList, removeAllChildren, removeChild, removeChildAt, setChild, sortAllChildrenpublic static final com.helger.html.css.ICSSClassProvider CSS_CLASS_VIEW_FORM
public static final int DEFAULT_LEFT_PART
public static final int DEFAULT_RIGHT_PART
@Nonnull public final EBootstrapFormType getFormType()
getFormType in interface IBootstrapFormGroupContainer<BootstrapViewForm>null
.@Nonnull public final BootstrapViewForm setFormType(@Nonnull EBootstrapFormType eFormType)
eFormType - The form type to be used. May not be null.@Nonnull public final BootstrapGridSpec getLeft()
getLeft in interface IBootstrapFormGroupContainer<BootstrapViewForm>null.@Nonnull public final BootstrapGridSpec getRight()
getRight in interface IBootstrapFormGroupContainer<BootstrapViewForm>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 final BootstrapViewForm setLeft(@Nonnegative int nLeftPartsXS, @Nonnegative int nLeftPartsSM, @Nonnegative int nLeftPartsMD, @Nonnegative int nLeftPartsLG, @Nonnegative int nLeftPartsXL)
IBootstrapFormGroupContainersetLeft in interface IBootstrapFormGroupContainer<BootstrapViewForm>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 final BootstrapViewForm setSplitting(@Nonnull BootstrapGridSpec aLeft, @Nonnull BootstrapGridSpec aRight)
IBootstrapFormGroupContainersetSplitting in interface IBootstrapFormGroupContainer<BootstrapViewForm>aLeft - The left parts. Must not be null.aRight - The right parts. Must not be null.@Nonnull public IBootstrapFormGroupRenderer getFormGroupRenderer()
getFormGroupRenderer in interface IBootstrapFormGroupContainer<BootstrapViewForm>null.@Nonnull public final BootstrapViewForm setFormGroupRenderer(@Nonnull IBootstrapFormGroupRenderer aFormGroupRenderer)
IBootstrapFormGroupContainersetFormGroupRenderer in interface IBootstrapFormGroupContainer<BootstrapViewForm>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<BootstrapViewForm>aFormGroup - The form group to be rendered. May not be null.null.@Nonnull public final BootstrapViewForm addFormGroup(@Nonnull BootstrapFormGroup aFormGroup)
IBootstrapFormGroupContaineraddFormGroup in interface IBootstrapFormGroupContainer<BootstrapViewForm>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 AbstractBootstrapDiv<BootstrapViewForm>Copyright © 2015–2020 Philip Helger. All rights reserved.