com.vaadin.client.componentlocator
Class LocatorUtil

java.lang.Object
  extended by com.vaadin.client.componentlocator.LocatorUtil

public class LocatorUtil
extends java.lang.Object

Common String manipulator utilities used in VaadinFinderLocatorStrategy and SelectorPredicates.

Since:
7.2
Author:
Vaadin Ltd

Constructor Summary
LocatorUtil()
           
 
Method Summary
protected static int indexOfIgnoringQuoted(java.lang.String str, char find)
          Find first occurrence of character that's not inside quotes starting from the beginning of string.
protected static int indexOfIgnoringQuoted(java.lang.String str, char find, int startingAt)
          Find first occurrence of character that's not inside quotes starting from specified index.
static boolean isNotificationElement(java.lang.String path)
          Checks if path refers to vaadin Notification element com.vaadin.ui.Notification.
static boolean isUIElement(java.lang.String path)
          Checks if path refers to vaadin UI element com.vaadin.ui.UI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocatorUtil

public LocatorUtil()
Method Detail

indexOfIgnoringQuoted

protected static int indexOfIgnoringQuoted(java.lang.String str,
                                           char find,
                                           int startingAt)
Find first occurrence of character that's not inside quotes starting from specified index.

Parameters:
str - Full string for searching
find - Character we want to find
startingAt - Index where we start
Returns:
Index of character. -1 if character not found

indexOfIgnoringQuoted

protected static int indexOfIgnoringQuoted(java.lang.String str,
                                           char find)
Find first occurrence of character that's not inside quotes starting from the beginning of string.

Parameters:
str - Full string for searching
find - Character we want to find
Returns:
Index of character. -1 if character not found

isUIElement

public static boolean isUIElement(java.lang.String path)
Checks if path refers to vaadin UI element com.vaadin.ui.UI.

Parameters:
path - to vaadin element
Returns:
true if path refers to UI element, false otherwise

isNotificationElement

public static boolean isNotificationElement(java.lang.String path)
Checks if path refers to vaadin Notification element com.vaadin.ui.Notification.

Parameters:
path - to vaadin element
Returns:
true if path refers to Notification element, false otherwise


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