Class ScriptViewElementBuilder
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<ScriptViewElement,ScriptViewElementBuilder>
com.foreach.across.modules.bootstrapui.elements.builder.ScriptViewElementBuilder
- All Implemented Interfaces:
com.foreach.across.modules.web.ui.elements.builder.HtmlViewElementBuilder<ScriptViewElement,
,ScriptViewElementBuilder> com.foreach.across.modules.web.ui.ViewElementBuilder<ScriptViewElement>
public class ScriptViewElementBuilder
extends com.foreach.across.modules.web.ui.elements.builder.AbstractNodeViewElementBuilder<ScriptViewElement,ScriptViewElementBuilder>
Builder for a
ScriptViewElement
.- Since:
- 2.1.1
- Author:
- Arne Vandamme
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.foreach.across.modules.web.ui.ViewElementBuilderSupport
com.foreach.across.modules.web.ui.ViewElementBuilderSupport.ElementOrBuilder
Nested 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
-
Method Summary
Modifier and TypeMethodDescriptionasync
(boolean async) protected ScriptViewElement
createElement
(com.foreach.across.modules.web.ui.ViewElementBuilderContext builderContext) defer
(boolean defer) refTagName
(@NonNull String refTagName) Set the media type for the script tag.type
(org.springframework.http.MediaType type) Set the media type for the script tag.Methods inherited from class com.foreach.across.modules.web.ui.elements.builder.AbstractNodeViewElementBuilder
apply, attribute, attributes, clearAttributes, css, htmlId, removeAttribute, removeCss
Methods inherited from class com.foreach.across.modules.web.ui.elements.builder.ContainerViewElementBuilderSupport
add, add, addAll, addFirst, addFirst, sort
Methods inherited from class com.foreach.across.modules.web.ui.ViewElementBuilderSupport
build, configure, customTemplate, elementSupplier, elementSupplier, name, postProcess, postProcessor, registerWebResources, with
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.foreach.across.modules.web.ui.elements.builder.HtmlViewElementBuilder
data, removeData
Methods inherited from interface com.foreach.across.modules.web.ui.ViewElementBuilder
andThen, build, doWith, map, map, postProcess, postProcess
-
Constructor Details
-
ScriptViewElementBuilder
public ScriptViewElementBuilder()
-
-
Method Details
-
type
Set the media type for the script tag.- Parameters:
type
- to set- Returns:
- current builder
-
type
Set the media type for the script tag.- Parameters:
type
- to set- Returns:
- current builder
-
createElement
protected ScriptViewElement createElement(com.foreach.across.modules.web.ui.ViewElementBuilderContext builderContext) - Specified by:
createElement
in classcom.foreach.across.modules.web.ui.ViewElementBuilderSupport<ScriptViewElement,
ScriptViewElementBuilder>
-
async
- Returns:
this
.
-
defer
- Returns:
this
.
-
source
- Returns:
this
.
-
charset
- Returns:
this
.
-
refTagName
- Returns:
this
.
-