public class AuCmd1
extends java.lang.Object
zAu.cmd1| Modifier and Type | Method and Description |
|---|---|
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 |
setAttrs(Widget wgt,
Array attrs)
Sets the attributes of a widget.
|
void |
syncErrorbox(Widget wgt)
Ask the client to sync a target widget and its errorbox position.
|
void |
uuid(Widget wgt,
String newId)
Rename UUID.
|
public void setAttr(Widget wgt, String name, Object value)
wgt - the widgetname - the name of the attributevalue - the value of the attribute.public void setAttrs(Widget wgt, Array attrs)
wgt - the widgetattrs - an array of [name1, value1, name2, value2, ...]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 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.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 syncErrorbox(Widget wgt)
wgt - the widgetCopyright © 2005-2023 Potix Corporation. All Rights Reserved.