|
||||||||||
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.Widget
public class Widget
A simulator of the ZK client widget.
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 |
---|
Fields inherited from class org.zkoss.ztl.ClientWidget |
---|
_out |
Constructor Summary | |
---|---|
Widget(JQuery jquery)
|
|
Widget(java.lang.String uuid)
|
|
Widget(java.lang.StringBuffer out)
|
|
Widget(java.lang.StringBuffer out,
java.lang.String script)
|
Method Summary | |
---|---|
Widget |
$f(java.lang.String id)
Returns the fellow of the widget from the given id. |
Element |
$n()
Returns the element of the widget. |
Element |
$n(java.lang.String subname)
Returns the sub-element of the widget from the given sub-name. |
Widget |
$o()
Returns the id-space-owner of the widget. |
void |
detach()
Detaches the widget |
boolean |
exists()
Returns whether the widget exists or not. |
Widget |
firstChild()
Returns the first child of the widget. |
java.lang.String |
get(java.lang.String name)
Returns the value of the evaluated name. |
Widget |
getChild(java.lang.String name)
Returns the child of the widget from the given name. |
java.lang.String |
id()
Returns the id of the widget. |
boolean |
is(java.lang.String name)
Returns the boolean value of the evaluated name. |
Widget |
lastChild()
Returns the last child of the widget. |
int |
nChildren()
Returns the size of the children. |
Widget |
nextSibling()
Returns the next sibling of the widget. |
Widget |
previousSibling()
Returns the previous sibling of the widget. |
void |
set(java.lang.String name,
boolean value)
Sets the boolean value to the evaluated name. |
void |
set(java.lang.String name,
int value)
Sets the number value to the evaluated name. |
void |
set(java.lang.String name,
java.lang.String value)
Sets the string value to the evaluated name. |
org.openqa.selenium.By |
toBy()
Returns the element as By element, if possible. |
Element |
toElement()
Returns the element from this client widget. |
java.lang.String |
uuid()
Returns the uuid of the 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 |
Constructor Detail |
---|
public Widget(java.lang.String uuid)
public Widget(JQuery jquery)
public Widget(java.lang.StringBuffer out)
public Widget(java.lang.StringBuffer out, java.lang.String script)
Method Detail |
---|
public void set(java.lang.String name, boolean value)
For example,
listitem.set("selected", true);
name
- any allowed property of the widget.value
- true or false.public void set(java.lang.String name, int value)
For example,
listbox.set("rows", 12);
name
- any allowed property of the widget.value
- any number.public void set(java.lang.String name, java.lang.String value)
For example,
grid.set("width", "100px");
name
- any allowed property of the widget.public java.lang.String uuid()
public java.lang.String id()
public java.lang.String get(java.lang.String name)
For example,
grid.get("width");
in JavaScript
grid.getWidth();
name
- any allowed property of the widget.public boolean is(java.lang.String name)
For example,
grid.is("vflex");
in JavaScript
grid.isVflex();
name
- any allowed property of the widget.public Widget getChild(java.lang.String name)
For example,
Widget rows = grid.getChild("rows");
public int nChildren()
public Widget lastChild()
public Widget firstChild()
public Widget nextSibling()
public Widget previousSibling()
public Widget $f(java.lang.String id)
public Widget $o()
public Element $n()
public Element $n(java.lang.String subname)
public Element toElement()
ClientWidget
toElement
in class ClientWidget
public void detach()
public boolean exists()
public 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 |