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 By
    Modifier and Type
    Method
    Description
    final By
    By.adjacentSibling(By selector)
    Combines this selector with the given selector using the + (adjacent sibling combinator) combinator.
    final By
    By.and(By selector)
    Combines this selector with the given selector.
    static By
    By.attribute(String name)
    Selects all elements that have an attribute name of name.
    static By
    By.attribute(String name, String value)
    Selects all elements that have an attribute name of name whose value is exactly value.
    static By
    By.attribute(String name, By.AttributeOperator operator, String value)
    Selects all elements that have an attribute name of name whose value applies to the given operator.
    final By
    By.child(By selector)
    Combines this selector with the given selector using the > (child) combinator.
    static By
    By.classname(String classname)
    Selects all elements that have the given class attribute.
    static By
    By.classnames(String[] classnames)
    Selects all elements that have all class attributes.
    static By
    By.classnames(String first, String second, String... remaining)
    Selects all elements that have all class attributes.
    static By
    By.data(String name)
    Selects all elements that have an attribute name of data-name.
    static By
    By.data(String name, String value)
    Selects all elements that have an attribute name of data-name whose value is exactly value.
    static By
    By.data(String name, By.AttributeOperator operator, String value)
    Selects all elements that have an attribute name of data-name whose value applies to the given operator.
    final By
    By.desc(By selector)
    Combines this selector with the given selector using the (space) combinator.
    static By
    By.element(Element element)
    Selects all elements that have the given node name.
    static By
    By.element(String element)
    Selects all elements that have the given node name.
    static <E extends HTMLElement>
    By
    By.element(IsElement<E> element)
    Selects all elements that have the given node name.
    static By
    By.group(By[] selectors)
    Groups the specified selectors using ,.
    static By
    By.group(By first, By second, By... remaining)
    Groups the specified selectors using ,.
    static By
    By.id(String id)
    Selects an element based on the value of its id attribute.
    static By
    By.selector(String selector)
    Returns a selector as-is.
    final By
    By.sibling(By selector)
    Combines this selector with the given selector using the ~ (general sibling) combinator.
    Methods in org.jboss.elemento with parameters of type By
    Modifier and Type
    Method
    Description
    final By
    By.adjacentSibling(By selector)
    Combines this selector with the given selector using the + (adjacent sibling combinator) combinator.
    final By
    By.and(By selector)
    Combines this selector with the given selector.
    final By
    By.child(By selector)
    Combines this selector with the given selector using the > (child) combinator.
    default <F extends HTMLElement>
    F
    ElementQueryMethods.closest(By selector)
    Finds the closest HTML element for the given selector.
    static <E extends HTMLElement>
    E
    Elements.closest(Element element, By selector)
    Finds the closest HTML elements for the given selector.
    static <E extends HTMLElement, F extends HTMLElement>
    F
    Elements.closest(IsElement<E> element, By selector)
    Finds the closest HTML elements for the given selector.
    final By
    By.desc(By selector)
    Combines this selector with the given selector using the (space) combinator.
    static By
    By.group(By[] selectors)
    Groups the specified selectors using ,.
    static By
    By.group(By first, By second, By... remaining)
    Groups the specified selectors using ,.
    default <F extends HTMLElement>
    F
    ElementQueryMethods.querySelector(By selector)
    Finds a single HTML element for the given selector.
    static <E extends HTMLElement>
    E
    Elements.querySelector(Node node, By selector)
    Finds a single HTML element for the given selector.
    static <E extends HTMLElement, F extends HTMLElement>
    F
    Elements.querySelector(IsElement<E> element, By selector)
    Finds a single HTML element for the given selector.
    ElementQueryMethods.querySelectorAll(By selector)
    Finds all HTML elements for the given selector.
    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 By
    By.sibling(By selector)
    Combines 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 By
    Modifier and Type
    Method
    Description
    PlaceManager.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.
    Place.root(By selector)
     
    PlaceManager.root(By selector)
    Sets the root HTMLElement for the application's UI using a By selector.