From Documentation

Jump to: navigation, search

zscript can access UI component by ID, in the following example,

<window id="win_1">	
		win_1.title="given by zscript";				

the result will be:

given by zscript

To access ui component in java code, you can use Path.getComponent() to obtain the mapping java object.

Window win = (Window)Path.getComponent("/win_1");
win.setTitle("given by java");

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.