Uses of Interface
com.foreach.across.modules.web.ui.ViewElement
Packages that use ViewElement
Package
Description
-
Uses of ViewElement in com.foreach.across.modules.web.thymeleaf
Methods in com.foreach.across.modules.web.thymeleaf with parameters of type ViewElementModifier and TypeMethodDescriptionvoidThymeleafModelBuilder.addViewElement(ViewElement viewElement) Add the element to the model.org.thymeleaf.model.IModelThymeleafModelBuilder.createViewElementModel(ViewElement viewElement) Create a separateIModelfor 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
Classes in com.foreach.across.modules.web.ui with type parameters of type ViewElementModifier and TypeClassDescriptionfinal classDefaultViewElementPostProcessor<T extends ViewElement>Implementation that looks for a collection ofViewElementPostProcessors on theViewElementBuilderContextand applies all of them.static classViewElement.Wither<T extends ViewElement>A wrapper for any type ofViewElementwhich allows the use of separate functions to perform the actions.static interfaceViewElement.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 interfaceViewElement.WitherRemover<T extends ViewElement>Function that modifies a view element by removing values.static interfaceViewElement.WitherSetter<T extends ViewElement>Function that modifies a view element by setting or adding values.interfaceViewElementBuilder<T extends ViewElement>Base interface to create a singleViewElementinstance.interfaceViewElementPostProcessor<T extends ViewElement>General purpose interface for post-processing aViewElement.Subinterfaces of ViewElement in com.foreach.across.modules.web.uiClasses in com.foreach.across.modules.web.ui that implement ViewElementMethods in com.foreach.across.modules.web.ui with type parameters of type ViewElementModifier 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 theViewElementthat this builder returns to another type.default <U extends ViewElement>
ViewElementBuilder<U>Map theViewElementthat 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.Witherwrapper 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.Methods in com.foreach.across.modules.web.ui that return ViewElementModifier and TypeMethodDescriptionViewElementBuilderSupport.ElementOrBuilder.get(ViewElementBuilderContext builderContext) default ViewElementViewElement.remove(ViewElement.WitherRemover... functions) Execute one or more remover functions.default ViewElementViewElement.set(ViewElement.WitherSetter... setters) Execute one or more setter functions.Methods in com.foreach.across.modules.web.ui with parameters of type ViewElementModifier and TypeMethodDescriptionvoidDefaultViewElementPostProcessor.postProcess(ViewElementBuilderContext builderContext, ViewElement element) ViewElementBuilderSupport.ElementOrBuilder.wrap(ViewElement viewElement) -
Uses of ViewElement in com.foreach.across.modules.web.ui.elements
Classes in com.foreach.across.modules.web.ui.elements with type parameters of type ViewElementModifier and TypeClassDescriptionclassViewElementGenerator<ITEM,VIEW_ELEMENT extends ViewElement> Represents a collection ofViewElementinstances that are generated based on a template or callback method and an input item.static interfaceViewElementGenerator.CreationCallback<T,U extends ViewElement> Callback interface for customizing the generatedViewElement.Subinterfaces of ViewElement in com.foreach.across.modules.web.ui.elementsModifier and TypeInterfaceDescriptioninterfaceInterface extending aViewElementwith a settable text property.interfaceAdds base properties for a HTML node, like css class and html id support.Classes in com.foreach.across.modules.web.ui.elements that implement ViewElementModifier and TypeClassDescriptionclassBase class for aHtmlViewElementthat supports child nodes.classBase class that extendsAbstractNodeViewElementwith theConfigurableTextViewElement.classBase class for a single configurable node that supports attributes but no child nodes.classA container is a named collection of elements (ContainerViewElement.getChildren()that allows configuration of a custom template for rendering.classRepresents a generic node (html element).classAViewElementthat simply renders as a custom template.classA simple text item.classViewElementGenerator<ITEM,VIEW_ELEMENT extends ViewElement> Represents a collection ofViewElementinstances that are generated based on a template or callback method and an input item.classA void node is a node that has attributes but contains no children.Methods in com.foreach.across.modules.web.ui.elements with type parameters of type ViewElementModifier 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.Methods in com.foreach.across.modules.web.ui.elements that return types with arguments of type ViewElementModifier and TypeMethodDescriptionContainerViewElement.elementStream()Get the stream of allViewElementinstances 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.Methods in com.foreach.across.modules.web.ui.elements with parameters of type ViewElementModifier 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) voidTextViewElement.applyTo(ViewElement target) If the target implementsConfigurableTextViewElementthen the text property will be copied.HtmlViewElement.Functions.children(ViewElement... elements) Add children to a container element.HtmlViewElements.container(ViewElement... childElements) booleanContainerViewElement.removeChild(ViewElement element) Remove a direct child from this container.booleanContainerViewElement.removeFromTree(ViewElement element) Remove the given element from the container.Method parameters in com.foreach.across.modules.web.ui.elements with type arguments of type ViewElementModifier 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
Classes in com.foreach.across.modules.web.ui.elements.builder with type parameters of type ViewElementModifier and TypeClassDescriptionclassViewElementGeneratorBuilder<ITEM,VIEW_ELEMENT extends ViewElement> Methods in com.foreach.across.modules.web.ui.elements.builder with parameters of type ViewElementModifier 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
Methods in com.foreach.across.modules.web.ui.elements.support with type parameters of type ViewElementModifier 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.Methods in com.foreach.across.modules.web.ui.elements.support that return types with arguments of type ViewElementModifier 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.Methods in com.foreach.across.modules.web.ui.elements.support with parameters of type ViewElementModifier and TypeMethodDescriptionstatic Optional<ContainerViewElement>ContainerViewElementUtils.findParent(ContainerViewElement container, ViewElement child) Find the parentContainerViewElementof the child element.static booleanContainerViewElementUtils.move(ContainerViewElement container, ViewElement elementToMove, ContainerViewElement newParent) Moves an element to a new parent container.static booleanContainerViewElementUtils.move(ContainerViewElement container, ViewElement elementToMove, String newParent) Attempts to move an element to a new parent that is part of the container.static booleanContainerViewElementUtils.remove(ContainerViewElement container, ViewElement element) Remove the given element from the container.static booleanContainerViewElementUtils.replace(ContainerViewElement container, ViewElement elementToReplace, ViewElement replacement) Replace an element in the container hierarchy by another element.Method parameters in com.foreach.across.modules.web.ui.elements.support with type arguments of type ViewElementModifier 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 booleanContainerViewElementUtils.replace(ContainerViewElement container, String elementName, UnaryOperator<ViewElement> replacementFunction) Replace an element in the container hierarchy by another element.static voidContainerViewElementUtils.sort(List<ViewElement> viewElements, String... elementNames) Sorts the list of view elements according to the element names passed in.static voidContainerViewElementUtils.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
Classes in com.foreach.across.modules.web.ui.thymeleaf with type parameters of type ViewElementModifier and TypeInterfaceDescriptioninterfaceViewElementModelWriter<T extends ViewElement>API for creating and writing the model for a singleViewElement.Methods in com.foreach.across.modules.web.ui.thymeleaf that return types with arguments of type ViewElementModifier 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.Methods in com.foreach.across.modules.web.ui.thymeleaf with parameters of type ViewElementModifier 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.Method parameters in com.foreach.across.modules.web.ui.thymeleaf with type arguments of type ViewElementModifier and TypeMethodDescriptionvoidViewElementModelWriterRegistry.registerModelWriter(Class<? extends ViewElement> viewElementClass, ViewElementModelWriter builder)
with(ViewElement)instead