Class AlertViewElementBuilder
java.lang.Object
com.foreach.across.modules.web.ui.ViewElementBuilderSupport<T,SELF>
com.foreach.across.modules.web.ui.elements.builder.ContainerViewElementBuilderSupport<T,SELF>
com.foreach.across.modules.web.ui.elements.builder.AbstractNodeViewElementBuilder<T,SELF>
com.foreach.across.modules.bootstrapui.elements.builder.AbstractHtmlSupportingNodeViewElementBuilder<AlertViewElement,AlertViewElementBuilder>
com.foreach.across.modules.bootstrapui.elements.builder.AlertViewElementBuilder
- All Implemented Interfaces:
com.foreach.across.modules.web.ui.elements.builder.HtmlViewElementBuilder<AlertViewElement,,AlertViewElementBuilder> com.foreach.across.modules.web.ui.ViewElementBuilder<AlertViewElement>
public class AlertViewElementBuilder
extends AbstractHtmlSupportingNodeViewElementBuilder<AlertViewElement,AlertViewElementBuilder>
Create an alert. Note that alert text is not escaped by default.
- Since:
- 1.0.0
- Author:
- Arne Vandamme
-
Nested Class Summary
Nested classes/interfaces inherited from class com.foreach.across.modules.web.ui.ViewElementBuilderSupport
com.foreach.across.modules.web.ui.ViewElementBuilderSupport.ElementOrBuilderNested classes/interfaces inherited from interface com.foreach.across.modules.web.ui.ViewElementBuilder
com.foreach.across.modules.web.ui.ViewElementBuilder.Wither<T extends com.foreach.across.modules.web.ui.ViewElementBuilder> -
Field Summary
Fields inherited from class com.foreach.across.modules.web.ui.ViewElementBuilderSupport
customTemplate, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncloseLabel(String closeLabel) protected AlertViewElementcreateElement(com.foreach.across.modules.web.ui.ViewElementBuilderContext viewElementBuilderContext) danger()dismissible(boolean dismissible) info()success()text(com.foreach.across.modules.web.ui.ViewElement textElement) Configure aViewElementthat contains the text to render.text(com.foreach.across.modules.web.ui.ViewElementBuilder textBuilder) Configure a builder that should supply the text to be rendered.warning()Methods inherited from class com.foreach.across.modules.bootstrapui.elements.builder.AbstractHtmlSupportingNodeViewElementBuilder
escapeHtml, isEscapeHtml, resolveTextElement, toTextElementMethods inherited from class com.foreach.across.modules.web.ui.elements.builder.AbstractNodeViewElementBuilder
apply, attribute, attributes, clearAttributes, css, htmlId, removeAttribute, removeCssMethods inherited from class com.foreach.across.modules.web.ui.elements.builder.ContainerViewElementBuilderSupport
add, add, addAll, addFirst, addFirst, sortMethods inherited from class com.foreach.across.modules.web.ui.ViewElementBuilderSupport
build, configure, customTemplate, elementSupplier, elementSupplier, name, postProcess, postProcessor, registerWebResources, withMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.foreach.across.modules.web.ui.elements.builder.HtmlViewElementBuilder
data, removeDataMethods inherited from interface com.foreach.across.modules.web.ui.ViewElementBuilder
andThen, build, doWith, map, map, postProcess, postProcess
-
Constructor Details
-
AlertViewElementBuilder
public AlertViewElementBuilder()
-
-
Method Details
-
text
-
text
Configure aViewElementthat contains the text to render. This element will be added as the first child.- Parameters:
textElement- that represents the text- Returns:
- current builder
-
text
public AlertViewElementBuilder text(com.foreach.across.modules.web.ui.ViewElementBuilder textBuilder) Configure a builder that should supply the text to be rendered. The resulting element will be added as the first child if it is notnull.- Parameters:
textBuilder- responsible for generating the text- Returns:
- current builder
-
closeLabel
-
warning
-
danger
-
info
-
success
-
style
-
dismissible
-
dismissible
-
createElement
protected AlertViewElement createElement(com.foreach.across.modules.web.ui.ViewElementBuilderContext viewElementBuilderContext) - Specified by:
createElementin classcom.foreach.across.modules.web.ui.ViewElementBuilderSupport<AlertViewElement,AlertViewElementBuilder>
-