Class SelectorPath


  • public class SelectorPath
    extends Object
    A single segment of a selector path pointing to an Element.

    This class should be considered internal to the framework and may change at any time.

    Since:
    7.1.x
    • Constructor Detail

      • SelectorPath

        protected SelectorPath​(ServerConnector c,
                               com.google.gwt.dom.client.Element e)
    • Method Detail

      • getPath

        public String getPath()
      • getElement

        public com.google.gwt.dom.client.Element getElement()
      • getElementQuery

        public String getElementQuery()
        Generate ElementQuery code for Java. Fallback to By.vaadin(path) if dealing with LegacyLocator
        Returns:
        String containing Java code for finding the element described by path
      • getComponentName

        protected String getComponentName​(String fragment)
        Returns the name of the component described by given query fragment
        Parameters:
        fragment - Query fragment
        Returns:
        Class part of fragment
      • getNameWithCount

        protected String getNameWithCount​(String name)
        Get variable name with counter for given component name.
        Parameters:
        name - Component name
        Returns:
        name followed by count