|
||||||||||
| 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
org.zkoss.ztl.ZK
public class ZK
A simulator of ZK client side object, which wraps the ZK client API.
| 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 | |
|---|---|
static java.lang.String |
VERSION
|
| Fields inherited from class org.zkoss.ztl.ClientWidget |
|---|
_out |
| Constructor Summary | |
|---|---|
ZK(ClientWidget el)
|
|
ZK(java.lang.String selector)
|
|
ZK(java.lang.StringBuffer out)
|
|
ZK(java.lang.StringBuffer out,
java.lang.String script)
|
|
| Method Summary | |
|---|---|
boolean |
exists()
Returns whether the widget exists or not. |
void |
focus()
focus the current element |
static boolean |
is(java.lang.String name)
Returns the boolean value from the evaluated name. |
JQuery |
jq()
Switches to the JQuery object. |
int |
revisedHeight(int size)
Returns the revised height. |
int[] |
revisedOffset()
Returns the revised offset array. |
int |
revisedWidth(int size)
Returns the revised width. |
org.openqa.selenium.By |
toBy()
Returns the element as By element, if possible. |
Element |
toElement()
Returns the element from this client widget. |
| Methods inherited from class org.zkoss.ztl.ClientWidget |
|---|
eval, eval, findElements, isBlank, isEmpty, toLocator, toString, toUpperCase |
| 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 |
|---|
public static final java.lang.String VERSION
| Constructor Detail |
|---|
public ZK(java.lang.String selector)
public ZK(ClientWidget el)
public ZK(java.lang.StringBuffer out,
java.lang.String script)
public ZK(java.lang.StringBuffer out)
| Method Detail |
|---|
public int[] revisedOffset()
public int revisedWidth(int size)
size - the original size.public int revisedHeight(int size)
size - the original size.public void focus()
public JQuery jq()
public boolean exists()
public static boolean is(java.lang.String name)
For example,
ZK.is("ie");
The invoking JavaScript code will be "zk.ie", and return the boolean value.
public Element toElement()
ClientWidget
toElement in class ClientWidgetpublic org.openqa.selenium.By toBy()
ClientWidget
toBy in class ClientWidget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||