|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.terminal.gwt.client.ComponentLocator
public class ComponentLocator
ComponentLocator provides methods for generating a String locator for a given DOM element and for locating a DOM element using a String locator.
Constructor Summary | |
---|---|
ComponentLocator(ApplicationConnection client)
Construct a ComponentLocator for the given ApplicationConnection. |
Method Summary | |
---|---|
com.google.gwt.user.client.Element |
getElementByPath(String path)
Locates an element using a String locator (path) which identifies a DOM element. |
String |
getPathForElement(com.google.gwt.user.client.Element targetElement)
Generates a String locator which uniquely identifies the target element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentLocator(ApplicationConnection client)
client
- ApplicationConnection instance for the application.Method Detail |
---|
public String getPathForElement(com.google.gwt.user.client.Element targetElement)
getElementByPath(String)
method can be used for the inverse
operation, i.e. locating an element based on the return value from this
method.
Note that getElementByPath(getPathForElement(element)) == element is not
always true as getPathForElement(Element)
can return a path to
another element if the widget determines an action on the other element
will give the same result as the action on the target element.
targetElement
- The element to generate a path for.
public com.google.gwt.user.client.Element getElementByPath(String path)
getPathForElement(Element)
method can be used for
the inverse operation, i.e. generating a string expression for a DOM
element.
path
- The String locater which identifies the target element.
path
or null if the element
could not be located.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |