Uses of Interface
com.foreach.across.modules.web.ui.ViewElementBuilderContext
Package
Description
-
Uses of ViewElementBuilderContext in com.foreach.across.modules.web.resource
Modifier and TypeMethodDescriptionstatic Optional<ViewElementBuilderContext>
WebResourceUtils.currentViewElementBuilderContext()
static Optional<ViewElementBuilderContext>
WebResourceUtils.getViewElementBuilderContext
(jakarta.servlet.http.HttpServletRequest request) static Optional<ViewElementBuilderContext>
WebResourceUtils.getViewElementBuilderContext
(org.springframework.web.context.request.RequestAttributes request) Modifier and TypeMethodDescriptionWebResourceReferenceCollection.build
(@NonNull ViewElementBuilderContext builderContext) static void
WebResourceUtils.storeViewElementBuilderContext
(ViewElementBuilderContext builderContext, jakarta.servlet.http.HttpServletRequest request) -
Uses of ViewElementBuilderContext in com.foreach.across.modules.web.resource.elements
Modifier and TypeMethodDescriptionprotected NodeViewElement
CssWebResourceBuilder.createElement
(@NonNull ViewElementBuilderContext builderContext) protected NodeViewElement
JavascriptWebResourceBuilder.createElement
(@NonNull ViewElementBuilderContext builderContext) protected VoidNodeViewElement
LinkWebResourceBuilder.createElement
(@NonNull ViewElementBuilderContext builderContext) MetaWebResourceBuilder.createElement
(@NonNull ViewElementBuilderContext builderContext) -
Uses of ViewElementBuilderContext in com.foreach.across.modules.web.ui
Modifier and TypeClassDescriptionclass
Standard implementation of aViewElementBuilderContext
that optionally allows a parent set of attributes to be provided.class
WrappingViewElementBuilderContext
that is used by aViewElementGenerator
and provides access to the item being generated and the possible iteration context.Modifier and TypeMethodDescriptionprotected ViewElementBuilderContext
ViewElementBuilderContextInterceptor.createDefaultViewElementBuilderContext
(jakarta.servlet.http.HttpServletRequest request) IteratorViewElementBuilderContext.getParentContext()
Modifier and TypeMethodDescriptionstatic Optional<ViewElementBuilderContext>
ViewElementBuilderContextHolder.clearViewElementBuilderContext()
Removes the (optional) context attached to the current thread.static Optional<ViewElementBuilderContext>
ViewElementBuilderContextHolder.getViewElementBuilderContext()
static Optional<ViewElementBuilderContext>
ViewElementBuilderContext.retrieveGlobalBuilderContext()
Fetches the globalViewElementBuilderContext
.static Optional<ViewElementBuilderContext>
ViewElementBuilderContextHolder.setViewElementBuilderContext
(ViewElementBuilderContext ViewElementBuilderContext) Associate the given context with the current thread.static Optional<ViewElementBuilderContext>
ViewElementBuilderContextHolder.setViewElementBuilderContext
(Optional<ViewElementBuilderContext> ViewElementBuilderContext) Associate the given context with the current thread.Modifier and TypeMethodDescriptionstatic void
DefaultViewElementPostProcessor.add
(ViewElementBuilderContext builderContext, ViewElementPostProcessor<?> postProcessor) Add an additional post processor to theViewElementBuilderContext
.protected T
ViewElementBuilderSupport.apply
(T viewElement, ViewElementBuilderContext builderContext) ViewElementBuilder.build
(ViewElementBuilderContext builderContext) Builds the actual element.final T
ViewElementBuilderSupport.build
(ViewElementBuilderContext builderContext) Builds the element using a specificViewElementBuilderContext
.protected abstract T
ViewElementBuilderSupport.createElement
(ViewElementBuilderContext builderContext) ViewElementBuilderSupport.ElementOrBuilder.get
(ViewElementBuilderContext builderContext) void
DefaultViewElementPostProcessor.postProcess
(ViewElementBuilderContext builderContext, ViewElement element) protected final T
ViewElementBuilderSupport.postProcess
(ViewElementBuilderContext builderContext, T viewElement) void
ViewElementPostProcessor.postProcess
(ViewElementBuilderContext builderContext, T element) static void
DefaultViewElementBuilderContext.registerMissingDefaultAttributes
(ViewElementBuilderContext builderContext) Registers default attributes in the builder context if they are not yet present.static boolean
DefaultViewElementPostProcessor.remove
(ViewElementBuilderContext builderContext, ViewElementPostProcessor postProcessor) Remove a registered post processor from the builder context.void
IteratorViewElementBuilderContext.setParentContext
(ViewElementBuilderContext parentContext) Set the parent context that this iteration context wraps around.static Optional<ViewElementBuilderContext>
ViewElementBuilderContextHolder.setViewElementBuilderContext
(ViewElementBuilderContext ViewElementBuilderContext) Associate the given context with the current thread.Modifier and TypeMethodDescriptionViewElementBuilderSupport.elementSupplier
(Function<ViewElementBuilderContext, ? extends T> supplierFunction) Set a separate supplier which supplies the initial element to which this builder should be applied.default <U extends ViewElement>
ViewElementBuilder<U>ViewElementBuilder.map
(@NonNull BiFunction<ViewElementBuilderContext, T, U> mappingFunction) Map theViewElement
that this builder returns to another type.static <U extends ViewElement>
ViewElementBuilder<U>ViewElementBuilder.of
(Function<ViewElementBuilderContext, U> supplier) static Optional<ViewElementBuilderContext>
ViewElementBuilderContextHolder.setViewElementBuilderContext
(Optional<ViewElementBuilderContext> ViewElementBuilderContext) Associate the given context with the current thread.ModifierConstructorDescriptionScopedAttributesViewElementBuilderContext
(@NonNull ViewElementBuilderContext builderContext) -
Uses of ViewElementBuilderContext in com.foreach.across.modules.web.ui.elements
Modifier and TypeMethodDescriptionViewElementGenerator.setItemBuilderContext
(ViewElementBuilderContext itemBuilderContext) Set theViewElementBuilderContext
that should be used when generating theViewElement
using aViewElementBuilder
as item template. -
Uses of ViewElementBuilderContext in com.foreach.across.modules.web.ui.elements.builder
Modifier and TypeMethodDescriptionprotected T
AbstractNodeViewElementBuilder.apply
(T element, ViewElementBuilderContext builderContext) protected T
AbstractVoidNodeViewElementBuilder.apply
(T viewElement, ViewElementBuilderContext builderContext) protected T
ContainerViewElementBuilderSupport.apply
(T viewElement, ViewElementBuilderContext builderContext) protected ContainerViewElement
ContainerViewElementBuilder.createElement
(ViewElementBuilderContext builderContext) protected NodeViewElement
NodeViewElementBuilder.createElement
(ViewElementBuilderContext builderContext) protected TextViewElement
TextViewElementBuilder.createElement
(ViewElementBuilderContext builderContext) protected ViewElementGenerator<ITEM,
VIEW_ELEMENT> ViewElementGeneratorBuilder.createElement
(ViewElementBuilderContext builderContext) protected VoidNodeViewElement
VoidNodeViewElementBuilder.createElement
(ViewElementBuilderContext builderContext)