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.
 
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


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