Package com.vaadin.client.debug.internal
Class SelectorPath
- java.lang.Object
-
- com.vaadin.client.debug.internal.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 Summary
Constructors Modifier Constructor Description protectedSelectorPath(ServerConnector c, com.google.gwt.dom.client.Element e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetComponentName(String fragment)Returns the name of the component described by given query fragment.com.google.gwt.dom.client.ElementgetElement()StringgetElementQuery()Generate ElementQuery code for Java.ComponentLocatorgetLocator()protected StringgetNameWithCount(String name)Get variable name with counter for given component name.StringgetPath()
-
-
-
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()
-
getLocator
public ComponentLocator getLocator()
-
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
-
-