Uses of Class
org.jboss.elemento.By
Packages that use By
Package
Description
Elemento simplifies working with GWT Elemental2 by providing a fluent API for building HTML element hierarchies, typesafe CSS
selectors, and helper methods for common DOM operations.
Provides a minimally invasive client-side routing solution for single-page applications.
-
Uses of By in org.jboss.elemento
Methods in org.jboss.elemento that return ByModifier and TypeMethodDescriptionfinal ByBy.adjacentSibling(By selector) Combines this selector with the given selector using the+(adjacent sibling combinator) combinator.final ByCombines this selector with the given selector.static BySelects all elements that have an attribute name ofname.static BySelects all elements that have an attribute name ofnamewhose value is exactlyvalue.static ByBy.attribute(String name, By.AttributeOperator operator, String value) Selects all elements that have an attribute name ofnamewhose value applies to the given operator.final ByCombines this selector with the given selector using the>(child) combinator.static BySelects all elements that have the given class attribute.static ByBy.classnames(String[] classnames) Selects all elements that have all class attributes.static ByBy.classnames(String first, String second, String... remaining) Selects all elements that have all class attributes.static BySelects all elements that have an attribute name of data-name.static BySelects all elements that have an attribute name of data-namewhose value is exactlyvalue.static ByBy.data(String name, By.AttributeOperator operator, String value) Selects all elements that have an attribute name of data-namewhose value applies to the given operator.final ByCombines this selector with the given selector using the (space) combinator.static BySelects all elements that have the given node name.static BySelects all elements that have the given node name.static <E extends HTMLElement>
BySelects all elements that have the given node name.static ByGroups the specified selectors using,.static ByGroups the specified selectors using,.static BySelects an element based on the value of its id attribute.static ByReturns a selector as-is.final ByCombines this selector with the given selector using the~(general sibling) combinator.Methods in org.jboss.elemento with parameters of type ByModifier and TypeMethodDescriptionfinal ByBy.adjacentSibling(By selector) Combines this selector with the given selector using the+(adjacent sibling combinator) combinator.final ByCombines this selector with the given selector.final ByCombines this selector with the given selector using the>(child) combinator.default <F extends HTMLElement>
FFinds the closest HTML element for the given selector.static <E extends HTMLElement>
EFinds the closest HTML elements for the given selector.static <E extends HTMLElement, F extends HTMLElement>
FFinds the closest HTML elements for the given selector.final ByCombines this selector with the given selector using the (space) combinator.static ByGroups the specified selectors using,.static ByGroups the specified selectors using,.default <F extends HTMLElement>
FElementQueryMethods.querySelector(By selector) Finds a single HTML element for the given selector.static <E extends HTMLElement>
EElements.querySelector(Node node, By selector) Finds a single HTML element for the given selector.static <E extends HTMLElement, F extends HTMLElement>
FElements.querySelector(IsElement<E> element, By selector) Finds a single HTML element for the given selector.default Iterable<HTMLElement> ElementQueryMethods.querySelectorAll(By selector) Finds all HTML elements for the given selector.static Iterable<HTMLElement> Elements.querySelectorAll(Node node, By selector) Finds all HTML elements for the given selector.static <E extends HTMLElement>
Iterable<HTMLElement> Elements.querySelectorAll(IsElement<E> element, By selector) Finds all HTML elements for the given selector.final ByCombines this selector with the given selector using the~(general sibling) combinator. -
Uses of By in org.jboss.elemento.router
Methods in org.jboss.elemento.router with parameters of type ByModifier and TypeMethodDescriptionPlaceManager.linkSelector(By selector) Sets the link selector for links that should be monitored by this place manager.PlaceManager.linkSelector(By selector, boolean not) Sets the link selector for links that should be monitored by this place manager.Sets the root HTMLElement for the application's UI using aByselector.