Define class and methods in zscript

From Documentation
Revision as of 10:41, 19 January 2022 by Hawk (talk | contribs) (correct highlight (via JWB))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Define class and methods in zscript

Stop.png This documentation is for an older version of ZK. For the latest one, please click here.

Thanks to the power of BeanShell, the implementation of Java classes can be done in zscript as follows.

    public class MyWindow extends Window {    
<window use="MyWindow"/>

And you can define methods in zscript

		public void sayHello(){
	<button label="Say Hello!" onClick="sayHello()" />

Last Update : 2022/01/19

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