Uses of Interface
com.foreach.across.modules.web.ui.ViewElement
Package
Description
-
Uses of ViewElement in com.foreach.across.modules.web.thymeleaf
Modifier and TypeMethodDescriptionvoid
ThymeleafModelBuilder.addViewElement
(ViewElement viewElement) Add the element to the model.org.thymeleaf.model.IModel
ThymeleafModelBuilder.createViewElementModel
(ViewElement viewElement) Create a separateIModel
for aViewElement
.HtmlIdStore.retrieveHtmlId
(org.thymeleaf.context.ITemplateContext context, ViewElement control) Retrieve the generated id for aViewElement
.ThymeleafModelBuilder.retrieveHtmlId
(ViewElement viewElement) Get a unique id for the specific element. -
Uses of ViewElement in com.foreach.across.modules.web.ui
Modifier and TypeClassDescriptionfinal class
DefaultViewElementPostProcessor<T extends ViewElement>
Implementation that looks for a collection ofViewElementPostProcessor
s on theViewElementBuilderContext
and applies all of them.static class
ViewElement.Wither<T extends ViewElement>
A wrapper for any type ofViewElement
which allows the use of separate functions to perform the actions.static interface
ViewElement.WitherGetter<T extends ViewElement,
U> Function that fetches a value from a view element and optionally returns it as a specific type for compile time checking.static interface
ViewElement.WitherRemover<T extends ViewElement>
Function that modifies a view element by removing values.static interface
ViewElement.WitherSetter<T extends ViewElement>
Function that modifies a view element by setting or adding values.interface
ViewElementBuilder<T extends ViewElement>
Base interface to create a singleViewElement
instance.interface
ViewElementPostProcessor<T extends ViewElement>
General purpose interface for post-processing aViewElement
.Modifier and TypeMethodDescription<ITEM,
VIEW_ELEMENT extends ViewElement>
ViewElementGeneratorBuilder<ITEM,VIEW_ELEMENT> StandardViewElementBuilderFactory.generator
(Class<ITEM> itemClass, Class<VIEW_ELEMENT> viewElementClass) <ITEM,
VIEW_ELEMENT extends ViewElement>
ViewElementGeneratorBuilder<ITEM,VIEW_ELEMENT> default <U extends ViewElement>
ViewElementBuilder<U>ViewElementBuilder.map
(@NonNull BiFunction<ViewElementBuilderContext, T, U> mappingFunction) Map theViewElement
that this builder returns to another type.default <U extends ViewElement>
ViewElementBuilder<U>Map theViewElement
that this builder returns to another type.static <U extends ViewElement>
ViewElementBuilder<U>ViewElementBuilder.of
(Function<ViewElementBuilderContext, U> supplier) static <U extends ViewElement>
ViewElementBuilder<U>static <U extends ViewElement>
Predicate<U>ViewElement.predicateFor
(Class<U> elementType, Predicate<U> predicate) Short-hand for creating an anonymous typed predicate, can be used to inline type predicate creation.static <U extends ViewElement>
ViewElement.Wither<U>ViewElement.with
(U element) Create aViewElement.Wither
wrapper for an element, which allows for a more descriptive, fluent configuration approach by using pre-defined lambdas.static <U extends ViewElement>
ViewElement.WitherSetter<U>MutableViewElement.Functions.witherFor
(Class<U> elementType, ViewElement.WitherSetter<U> setter) Short-hand for creating an anonymous typed wither setter, can be used to inline create setters.Modifier and TypeMethodDescriptionViewElementBuilderSupport.ElementOrBuilder.get
(ViewElementBuilderContext builderContext) default ViewElement
ViewElement.remove
(ViewElement.WitherRemover... functions) Execute one or more remover functions.default ViewElement
ViewElement.set
(ViewElement.WitherSetter... setters) Execute one or more setter functions.Modifier and TypeMethodDescriptionvoid
DefaultViewElementPostProcessor.postProcess
(ViewElementBuilderContext builderContext, ViewElement element) ViewElementBuilderSupport.ElementOrBuilder.wrap
(ViewElement viewElement) -
Uses of ViewElement in com.foreach.across.modules.web.ui.elements
Modifier and TypeClassDescriptionclass
ViewElementGenerator<ITEM,
VIEW_ELEMENT extends ViewElement> Represents a collection ofViewElement
instances that are generated based on a template or callback method and an input item.static interface
ViewElementGenerator.CreationCallback<T,
U extends ViewElement> Callback interface for customizing the generatedViewElement
.Modifier and TypeInterfaceDescriptioninterface
Interface extending aViewElement
with a settable text property.interface
Adds base properties for a HTML node, like css class and html id support.Modifier and TypeClassDescriptionclass
Base class for aHtmlViewElement
that supports child nodes.class
Base class that extendsAbstractNodeViewElement
with theConfigurableTextViewElement
.class
Base class for a single configurable node that supports attributes but no child nodes.class
A container is a named collection of elements (ContainerViewElement.getChildren()
that allows configuration of a custom template for rendering.class
Represents a generic node (html element).class
AViewElement
that simply renders as a custom template.class
A simple text item.class
ViewElementGenerator<ITEM,
VIEW_ELEMENT extends ViewElement> Represents a collection ofViewElement
instances that are generated based on a template or callback method and an input item.class
A void node is a node that has attributes but contains no children.Modifier and TypeMethodDescription<U extends ViewElement>
AbstractNodeViewElementAbstractNodeViewElement.applyUnsafe
(@NonNull Consumer<U> consumer) <U extends ViewElement>
AbstractTextNodeViewElementAbstractTextNodeViewElement.applyUnsafe
(@NonNull Consumer<U> consumer) <U extends ViewElement>
ContainerViewElementContainerViewElement.applyUnsafe
(@NonNull Consumer<U> consumer) Deprecated.<U extends ViewElement>
NodeViewElementNodeViewElement.applyUnsafe
(@NonNull Consumer<U> consumer) <V extends ViewElement>
Optional<V>Find the first child element with the given name that is also of the required type.<V extends ViewElement>
Stream<V>Find all elements in the container that are of the required type.<V extends ViewElement>
Stream<V>Find all elements in the container that are of the required type and match the additional predicate.<V extends ViewElement>
Optional<V>ContainerViewElement.findOrSelf
(String elementName, Class<V> requiredType) Find the first element with the given name that is also of the required type.Modifier and TypeMethodDescriptionContainerViewElement.elementStream()
Get the stream of allViewElement
instances this container represents (excluding itself).Find the first child element with the given name in the container.ContainerViewElement.findAll
(Predicate<ViewElement> predicate) Find all elements in the container that are of the required type and match the additional predicate.ContainerViewElement.findOrSelf
(String name) Find the first element with the given name in the container.ContainerViewElement.flatStream()
Creates a flattened stream of all elements in the container.AbstractTextNodeViewElement.getChildren()
ContainerViewElement.getChildren()
Get the list of direct children this container represents.ContainerViewElement.removeAllFromTree
(String... elementNames) Removes all elements with the given names from the tree.ContainerViewElement.removeFromTree
(String elementName) Remove the first element with the given name from the container or any of its children.Modifier and TypeMethodDescriptionAbstractNodeViewElement.addChild
(@NonNull ViewElement element) AbstractTextNodeViewElement.addChild
(@NonNull ViewElement element) ContainerViewElement.addChild
(@NonNull ViewElement element) Add a child to this container.NodeViewElement.addChild
(@NonNull ViewElement element) AbstractNodeViewElement.addFirstChild
(@NonNull ViewElement element) AbstractTextNodeViewElement.addFirstChild
(@NonNull ViewElement element) ContainerViewElement.addFirstChild
(@NonNull ViewElement element) Adds a child as the first one to this container.NodeViewElement.addFirstChild
(@NonNull ViewElement element) void
TextViewElement.applyTo
(ViewElement target) If the target implementsConfigurableTextViewElement
then the text property will be copied.HtmlViewElement.Functions.children
(ViewElement... elements) Add children to a container element.HtmlViewElements.container
(ViewElement... childElements) boolean
ContainerViewElement.removeChild
(ViewElement element) Remove a direct child from this container.boolean
ContainerViewElement.removeFromTree
(ViewElement element) Remove the given element from the container.Modifier and TypeMethodDescriptionAbstractNodeViewElement.addChildren
(@NonNull Collection<? extends ViewElement> elements) AbstractTextNodeViewElement.addChildren
(@NonNull Collection<? extends ViewElement> elements) ContainerViewElement.addChildren
(@NonNull Collection<? extends ViewElement> elements) Add a collection of children to this container.NodeViewElement.addChildren
(@NonNull Collection<? extends ViewElement> elements) ContainerViewElement.findAll
(Predicate<ViewElement> predicate) Find all elements in the container that are of the required type and match the additional predicate. -
Uses of ViewElement in com.foreach.across.modules.web.ui.elements.builder
Modifier and TypeClassDescriptionclass
ViewElementGeneratorBuilder<ITEM,
VIEW_ELEMENT extends ViewElement> Modifier and TypeMethodDescriptionContainerViewElementBuilder.add
(ViewElement... viewElements) ContainerViewElementBuilderSupport.add
(ViewElement... viewElements) ContainerViewElementBuilder.addFirst
(ViewElement... viewElements) ContainerViewElementBuilderSupport.addFirst
(ViewElement... viewElements) -
Uses of ViewElement in com.foreach.across.modules.web.ui.elements.support
Modifier and TypeMethodDescriptionstatic <V extends ViewElement>
Optional<V>ContainerViewElementUtils.find
(ContainerViewElement container, String elementName, Class<V> requiredType) Find the first element with the given name that is also of the required type.static <V extends ViewElement>
Stream<V>ContainerViewElementUtils.findAll
(ContainerViewElement container, Class<V> requiredType) Find all elements in the container that are of the required type.static <V extends ViewElement>
Stream<V>ContainerViewElementUtils.findAll
(ContainerViewElement container, Class<V> requiredType, Predicate<V> predicate) Find all elements in the container that are of the required type and match the additional predicate.static <V extends ViewElement>
Optional<V>ContainerViewElementUtils.findOrSelf
(ContainerViewElement container, String elementName, Class<V> requiredType) Find the first element with the given name that is also of the required type.static <V extends ViewElement>
booleanContainerViewElementUtils.replace
(ContainerViewElement container, String elementName, Class<V> requiredType, Function<V, ? extends ViewElement> replacementFunction) Replace an element in the container hierarchy by another element.Modifier and TypeMethodDescriptionstatic Optional<ViewElement>
ContainerViewElementUtils.find
(ContainerViewElement container, String elementName) Find the first element with the given name in the container.static Stream<ViewElement>
ContainerViewElementUtils.findAll
(@NonNull ContainerViewElement container, @NonNull Predicate<ViewElement> predicate) Find all elements in the container that match the predicate.static Optional<ViewElement>
ContainerViewElementUtils.findOrSelf
(ContainerViewElement container, String elementName) Find the first element with the given name in the container.static Stream<ViewElement>
ContainerViewElementUtils.flatStream
(ContainerViewElement container) Creates a flattened stream of all elements in the container.static Optional<ViewElement>
ContainerViewElementUtils.remove
(ContainerViewElement container, String elementName) Remove the first element with the given name from the container or any of its children.static Stream<ViewElement>
ContainerViewElementUtils.removeAll
(ContainerViewElement container, String... elementNames) Remove all elements with that name from the tree.Modifier and TypeMethodDescriptionstatic Optional<ContainerViewElement>
ContainerViewElementUtils.findParent
(ContainerViewElement container, ViewElement child) Find the parentContainerViewElement
of the child element.static boolean
ContainerViewElementUtils.move
(ContainerViewElement container, ViewElement elementToMove, ContainerViewElement newParent) Moves an element to a new parent container.static boolean
ContainerViewElementUtils.move
(ContainerViewElement container, ViewElement elementToMove, String newParent) Attempts to move an element to a new parent that is part of the container.static boolean
ContainerViewElementUtils.remove
(ContainerViewElement container, ViewElement element) Remove the given element from the container.static boolean
ContainerViewElementUtils.replace
(ContainerViewElement container, ViewElement elementToReplace, ViewElement replacement) Replace an element in the container hierarchy by another element.Modifier and TypeMethodDescriptionstatic Stream<ViewElement>
ContainerViewElementUtils.findAll
(@NonNull ContainerViewElement container, @NonNull Predicate<ViewElement> predicate) Find all elements in the container that match the predicate.static <V extends ViewElement>
booleanContainerViewElementUtils.replace
(ContainerViewElement container, String elementName, Class<V> requiredType, Function<V, ? extends ViewElement> replacementFunction) Replace an element in the container hierarchy by another element.static boolean
ContainerViewElementUtils.replace
(ContainerViewElement container, String elementName, UnaryOperator<ViewElement> replacementFunction) Replace an element in the container hierarchy by another element.static void
ContainerViewElementUtils.sort
(List<ViewElement> viewElements, String... elementNames) Sorts the list of view elements according to the element names passed in.static void
ContainerViewElementUtils.sortRecursively
(List<ViewElement> viewElements, String... elementNames) Recursively sorts the list of elements according to the order specified by the element names passed in. -
Uses of ViewElement in com.foreach.across.modules.web.ui.thymeleaf
Modifier and TypeInterfaceDescriptioninterface
ViewElementModelWriter<T extends ViewElement>
API for creating and writing the model for a singleViewElement
.Modifier and TypeMethodDescriptionViewElementModelWriterRegistry.getModelWriter
(@NonNull ViewElement viewElement) Finds the most appropriateViewElementModelWriter
: first attempts to find a writer registered to that specific class, second looks for the element type.Modifier and TypeMethodDescriptionViewElementModelWriterRegistry.getModelWriter
(@NonNull ViewElement viewElement) Finds the most appropriateViewElementModelWriter
: first attempts to find a writer registered to that specific class, second looks for the element type.Modifier and TypeMethodDescriptionvoid
ViewElementModelWriterRegistry.registerModelWriter
(Class<? extends ViewElement> viewElementClass, ViewElementModelWriter builder)
with(ViewElement)
instead