com.vaadin.client.debug.internal
Class SelectorPath

java.lang.Object
  extended by com.vaadin.client.debug.internal.SelectorPath

public class SelectorPath
extends java.lang.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
protected SelectorPath(ServerConnector c, Element e)
           
 
Method Summary
protected  java.lang.String getComponentName(java.lang.String fragment)
          Returns the name of the component described by given query fragment
 Element getElement()
           
 java.lang.String getElementQuery()
          Generate ElementQuery code for Java.
 ComponentLocator getLocator()
           
protected  java.lang.String getNameWithCount(java.lang.String name)
          Get variable name with counter for given component name.
 java.lang.String getPath()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectorPath

protected SelectorPath(ServerConnector c,
                       Element e)
Method Detail

getPath

public java.lang.String getPath()

getElement

public Element getElement()

getLocator

public ComponentLocator getLocator()

getElementQuery

public java.lang.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 java.lang.String getComponentName(java.lang.String fragment)
Returns the name of the component described by given query fragment

Parameters:
fragment - Query fragment
Returns:
Class part of fragment

getNameWithCount

protected java.lang.String getNameWithCount(java.lang.String name)
Get variable name with counter for given component name.

Parameters:
name - Component name
Returns:
name followed by count


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.