|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openqa.selenium.By
org.zkoss.ztl.ClientWidget
public abstract class ClientWidget
The skeleton of ZK client side widget. It is used to manipulate a string buffer to concatenate an executed JavaScript code.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.openqa.selenium.By |
|---|
org.openqa.selenium.By.ByClassName, org.openqa.selenium.By.ByCssSelector, org.openqa.selenium.By.ById, org.openqa.selenium.By.ByLinkText, org.openqa.selenium.By.ByName, org.openqa.selenium.By.ByPartialLinkText, org.openqa.selenium.By.ByTagName, org.openqa.selenium.By.ByXPath |
| Field Summary | |
|---|---|
protected java.lang.StringBuffer |
_out
|
| Constructor Summary | |
|---|---|
ClientWidget()
|
|
| Method Summary | |
|---|---|
java.lang.String |
eval(java.lang.String script)
Returns the result of the evaluation, if any. |
java.lang.String |
eval(java.lang.String script,
boolean withDot)
Returns the result of the evaluation, if any. |
java.util.List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.SearchContext context)
|
static boolean |
isBlank(java.lang.String s)
Returns true if the string is null or empty or pure blank. |
static boolean |
isEmpty(java.lang.String s)
Returns true if the string is null or empty. |
abstract org.openqa.selenium.By |
toBy()
Returns the element as By element, if possible. |
abstract Element |
toElement()
Returns the element from this client widget. |
java.lang.String |
toLocator()
Returns the evaluation string that is JavaScript format. |
java.lang.String |
toString()
Returns the evaluation string that is JavaScript format. |
protected java.lang.String |
toUpperCase(java.lang.String key,
java.lang.String name)
Returns the string that the first word of the name is upper case. |
| Methods inherited from class org.openqa.selenium.By |
|---|
className, cssSelector, equals, findElement, hashCode, id, linkText, name, partialLinkText, tagName, xpath |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.StringBuffer _out
| Constructor Detail |
|---|
public ClientWidget()
| Method Detail |
|---|
public static final boolean isEmpty(java.lang.String s)
public static final boolean isBlank(java.lang.String s)
protected java.lang.String toUpperCase(java.lang.String key,
java.lang.String name)
key - the prefix of the method name. Like set and getname - the name of the method.public java.lang.String eval(java.lang.String script)
script - the JavaScript codeeval(String, boolean)
public java.lang.String eval(java.lang.String script,
boolean withDot)
script - The JavaScript codewithDot - if true, the dot '.' is added before the script.public java.lang.String toLocator()
public java.lang.String toString()
toString in class org.openqa.selenium.Bypublic abstract Element toElement()
public abstract org.openqa.selenium.By toBy()
public java.util.List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.SearchContext context)
findElements in class org.openqa.selenium.By
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||