|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object zk.AuCmd1
public class AuCmd1
The AU command handler for processes commands related to widgets, sent from the server.
zAu.cmd1
Method Summary | |
---|---|
void |
addAft(Widget wgt,
String... codes)
Adds the widget(s) generated by evaluating the specified JavaScript code snippet after the specified widget (as sibling). |
void |
addAft(Widget wgt,
String code)
Adds the widget(s) generated by evaluating the specified JavaScript code snippet after the specified widget (as sibling). |
void |
addBfr(Widget wgt,
String... codes)
Adds the widget(s) generated by evaluating the specified JavaScript code snippet before the specified widget (as sibling). |
void |
addChd(Widget wgt,
String... codes)
Adds the widget(s) generated by evaluating the specified JavaScript code snippet as the last child of the specified widget. |
void |
echo2(Widget wgt,
String evtnm,
Object data)
Ask the client to echo back an AU request with the specified evant name and the target widget. |
void |
focus(Widget wgt)
Set the focus to the specified widget. |
void |
invoke(Widget wgt,
String func,
Object... vararg)
Invokes the specifed method of the specified widget. |
void |
outer(Widget wgt,
String code)
Replaces the widget with the widget(s) generated by evaluating the specified JavaScript code snippet. |
void |
resizeWgt(Widget wgt)
Ask the client to re-cacluate the size of the given widget. |
void |
rm(Widget wgt)
Removes the widget. |
void |
select(Widget wgt,
int start,
int end)
Selects all text of the specified widget. |
void |
setAttr(Widget wgt,
String name,
Object value)
Sets the attribute of a widget. |
void |
uuid(Widget wgt,
String newId)
Rename UUID. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setAttr(Widget wgt, String name, Object value)
wgt
- the widgetname
- the name of the attributevalue
- the value of the attribute.public void outer(Widget wgt, String code)
wgt
- the old widget to be replacedcode
- the JavaScript code snippet to generate new widget(s).public void addAft(Widget wgt, String... codes)
wgt
- the existent widget that new widget(s) will be inserted aftercodes
- the JavaScript code snippet to generate new widget(s).public void addAft(Widget wgt, String code)
wgt
- the existent widget that new widget(s) will be inserted aftercode
- the JavaScript code snippet to generate new widget(s).public void addBfr(Widget wgt, String... codes)
wgt
- the existent widget that new widget(s) will be inserted beforecodes
- the JavaScript code snippet to generate new widget(s).public void addChd(Widget wgt, String... codes)
wgt
- the existent widget that will become the parent of new widget(s)codes
- the JavaScript code snippet to generate new widget(s).public void rm(Widget wgt)
wgt
- the widget to removepublic void uuid(Widget wgt, String newId)
wgt
- the widget to renamenewId
- the new UUIDpublic void focus(Widget wgt)
Widget.focus(int)
. Not all widgets support
this method. In other words, it has no effect if the widget doesn't support it.
wgt
- the widget.public void select(Widget wgt, int start, int end)
select
method, if any, of the widget.
It does nothing if the method doesn't exist.
wgt
- the widget.start
- the starting index of the selection rangeend
- the ending index of the selection range (excluding).
In other words, the text between start and (end-1) is selected.public void echo2(Widget wgt, String evtnm, Object data)
wgt
- the target widget to which the AU request will be sentevtnm
- the name of the event, such as onUserdata
- any dataAuCmd0.echo(_global_.String)
,
AuCmd0.echoGx(_global_.String, _global_.String, _global_.String...)
public void resizeWgt(Widget wgt)
wgt
- the widget to resizepublic void invoke(Widget wgt, String func, Object... vararg)
wgt[func].apply(wgt, vararg);
wgt
- the widget to invokefunc
- the function namevararg
- any number of arguments passed to the function
invocation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |