Class LinkWebResourceBuilder
java.lang.Object
com.foreach.across.modules.web.ui.ViewElementBuilderSupport<T,SELF>
com.foreach.across.modules.web.ui.elements.builder.AbstractVoidNodeViewElementBuilder<VoidNodeViewElement,LinkWebResourceBuilder>
com.foreach.across.modules.web.resource.elements.LinkWebResourceBuilder
- All Implemented Interfaces:
WebResourceKeyProvider
,HtmlViewElementBuilder<VoidNodeViewElement,
,LinkWebResourceBuilder> ViewElementBuilder<VoidNodeViewElement>
public class LinkWebResourceBuilder
extends AbstractVoidNodeViewElementBuilder<VoidNodeViewElement,LinkWebResourceBuilder>
implements WebResourceKeyProvider
Builder class for creating a
ViewElement
that represents a generic tag.- Since:
- 3.2.0
- Author:
- Marc Vanbrabant
-
Nested Class Summary
Nested classes/interfaces inherited from class com.foreach.across.modules.web.ui.ViewElementBuilderSupport
ViewElementBuilderSupport.ElementOrBuilder
Nested classes/interfaces inherited from interface com.foreach.across.modules.web.ui.ViewElementBuilder
ViewElementBuilder.Wither<T extends ViewElementBuilder>
-
Field Summary
Fields inherited from class com.foreach.across.modules.web.ui.ViewElementBuilderSupport
customTemplate, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected VoidNodeViewElement
createElement
(@NonNull ViewElementBuilderContext builderContext) crossOrigin
(String crossOrigin) type
(@NonNull org.springframework.http.MediaType mediaType) Methods inherited from class com.foreach.across.modules.web.ui.elements.builder.AbstractVoidNodeViewElementBuilder
apply, attribute, attributes, clearAttributes, css, htmlId, removeAttribute, removeCss
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
-
LinkWebResourceBuilder
public LinkWebResourceBuilder()
-
-
Method Details
-
getWebResourceKey
- Specified by:
getWebResourceKey
in interfaceWebResourceKeyProvider
- Returns:
- a default web resource key for this link element, identical to the value of
url(String)
-
type
-
type
-
crossOrigin
-
createElement
protected VoidNodeViewElement createElement(@NonNull @NonNull ViewElementBuilderContext builderContext) - Specified by:
createElement
in classViewElementBuilderSupport<VoidNodeViewElement,
LinkWebResourceBuilder>
-
url
- Returns:
this
.
-
rel
- Returns:
this
.
-
media
- Returns:
this
.
-