public class FormGroupElementBuilder extends com.foreach.across.modules.web.ui.elements.builder.AbstractNodeViewElementBuilder<FormGroupElement,FormGroupElementBuilder>
| Constructor and Description |
|---|
FormGroupElementBuilder() |
| Modifier and Type | Method and Description |
|---|---|
FormGroupElementBuilder |
control(com.foreach.across.modules.web.ui.ViewElement control) |
FormGroupElementBuilder |
control(com.foreach.across.modules.web.ui.ViewElementBuilder controlBuilder) |
protected FormGroupElement |
createElement(com.foreach.across.modules.web.ui.ViewElementBuilderContext builderContext) |
FormGroupElementBuilder |
descriptionBlock(String text)
Quick create a description text block, to show at the top of the form group.
|
FormGroupElementBuilder |
descriptionBlock(com.foreach.across.modules.web.ui.ViewElement descriptionBlock)
Add a description block to show at the top of the form group.
|
FormGroupElementBuilder |
descriptionBlock(com.foreach.across.modules.web.ui.ViewElementBuilder descriptionBlock)
Add a description block to show at the top of the form group.
|
FormGroupElementBuilder |
detectFieldErrors(boolean detectFieldErrors)
Should field errors for the control present in this form group be detected automatically.
|
FormGroupElementBuilder |
fieldErrorsToShow(String... fieldNames)
Display the field errors for the given names as validation feedback.
|
FormGroupElementBuilder |
formLayout(FormLayout formLayout) |
com.foreach.across.modules.web.ui.ViewElementBuilderSupport.ElementOrBuilder |
getControl() |
<V> V |
getControl(Class<V> targetClass)
Gets the control configured on this builder if it is of the target type specified.
|
FormLayout |
getFormLayout() |
com.foreach.across.modules.web.ui.ViewElementBuilderSupport.ElementOrBuilder |
getHelpBlock() |
com.foreach.across.modules.web.ui.ViewElementBuilderSupport.ElementOrBuilder |
getLabel() |
<V> V |
getLabel(Class<V> targetClass)
Gets the label configured on this builder if it is of the target type specified.
|
FormGroupElementBuilder |
helpBlock(String text)
Quick create a basic help block and add it to the form group.
|
FormGroupElementBuilder |
helpBlock(com.foreach.across.modules.web.ui.ViewElement helpBlock)
Add a help block to the form group.
|
FormGroupElementBuilder |
helpBlock(com.foreach.across.modules.web.ui.ViewElementBuilder helpBlock)
Add a help block to the form group.
|
Boolean |
isRequired() |
FormGroupElementBuilder |
label(String text)
Quick create a basic label element and add it to the form group.
|
FormGroupElementBuilder |
label(com.foreach.across.modules.web.ui.ViewElement label) |
FormGroupElementBuilder |
label(com.foreach.across.modules.web.ui.ViewElementBuilder labelBuilder) |
FormGroupElementBuilder |
required() |
FormGroupElementBuilder |
required(boolean required) |
FormGroupElementBuilder |
tooltip(String text)
Add a tooltip with the given (html supporting) text.
|
FormGroupElementBuilder |
tooltip(com.foreach.across.modules.web.ui.ViewElement tooltip)
Add a tooltip to the form group.
|
FormGroupElementBuilder |
tooltip(com.foreach.across.modules.web.ui.ViewElementBuilder tooltip)
Add a tooltip to the form group.
|
apply, attribute, attributes, clearAttributes, css, htmlId, removeAttribute, removeCssadd, add, addAll, addFirst, addFirst, sortbuild, configure, customTemplate, elementSupplier, elementSupplier, name, postProcess, postProcessor, registerWebResources, withclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic Boolean isRequired()
public com.foreach.across.modules.web.ui.ViewElementBuilderSupport.ElementOrBuilder getLabel()
public com.foreach.across.modules.web.ui.ViewElementBuilderSupport.ElementOrBuilder getHelpBlock()
public <V> V getLabel(Class<V> targetClass)
V - target type the label should matchtargetClass - target type the label should matchpublic com.foreach.across.modules.web.ui.ViewElementBuilderSupport.ElementOrBuilder getControl()
public <V> V getControl(Class<V> targetClass)
V - target type the control should matchtargetClass - target type the control should matchpublic FormLayout getFormLayout()
public FormGroupElementBuilder label(com.foreach.across.modules.web.ui.ViewElement label)
public FormGroupElementBuilder label(String text)
text - for the labelpublic FormGroupElementBuilder label(com.foreach.across.modules.web.ui.ViewElementBuilder labelBuilder)
public FormGroupElementBuilder control(com.foreach.across.modules.web.ui.ViewElement control)
public FormGroupElementBuilder control(com.foreach.across.modules.web.ui.ViewElementBuilder controlBuilder)
public FormGroupElementBuilder helpBlock(String text)
text - for the help blockpublic FormGroupElementBuilder helpBlock(com.foreach.across.modules.web.ui.ViewElement helpBlock)
helpBlock - the help blockpublic FormGroupElementBuilder helpBlock(com.foreach.across.modules.web.ui.ViewElementBuilder helpBlock)
helpBlock - the help blockpublic FormGroupElementBuilder descriptionBlock(String text)
text - for the description blockpublic FormGroupElementBuilder descriptionBlock(com.foreach.across.modules.web.ui.ViewElement descriptionBlock)
descriptionBlock - for the description blockpublic FormGroupElementBuilder descriptionBlock(com.foreach.across.modules.web.ui.ViewElementBuilder descriptionBlock)
descriptionBlock - for the description blockpublic FormGroupElementBuilder tooltip(String text)
text - for the tooltippublic FormGroupElementBuilder tooltip(com.foreach.across.modules.web.ui.ViewElement tooltip)
tooltip - elementpublic FormGroupElementBuilder tooltip(com.foreach.across.modules.web.ui.ViewElementBuilder tooltip)
tooltip - elementpublic FormGroupElementBuilder formLayout(FormLayout formLayout)
public FormGroupElementBuilder required()
public FormGroupElementBuilder required(boolean required)
public FormGroupElementBuilder detectFieldErrors(boolean detectFieldErrors)
Errors object will be searched
for on the model and the control name will be used as the selector for possible errors.detectFieldErrors - should an Errors model object be usedpublic FormGroupElementBuilder fieldErrorsToShow(String... fieldNames)
Errors object.fieldNames - to show the errors forprotected FormGroupElement createElement(com.foreach.across.modules.web.ui.ViewElementBuilderContext builderContext)
createElement in class com.foreach.across.modules.web.ui.ViewElementBuilderSupport<FormGroupElement,FormGroupElementBuilder>Copyright © 2020. All rights reserved.