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 protected
SelectorPath(ServerConnector c, com.google.gwt.dom.client.Element e)
-
Method Summary
All Methods Modifier and Type Method Description protected String
getComponentName(String fragment)
Returns the name of the component described by given query fragment.
com.google.gwt.dom.client.Element
getElement()
String
getElementQuery()
Generate ElementQuery code for Java.
ComponentLocator
getLocator()
protected String
getNameWithCount(String name)
Get variable name with counter for given component name.
String
getPath()
-
-
-
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 fragmentReturns:
Class part of fragment
-
-