context
field in your script. For example: public void clicked() { context.echo("Hello World"); }The script helper is available through the
helper
field in your script. For example: public void clicked() { XULWidget widget = helper.getCurrentWidget(); }
public void clicked() { context.echo("My value:" + value); }To get the current widget in a Groovy script:
public void clicked() { XULWidget widget = helper.getCurrentWidget(); }
XULScriptContext
and XULScriptHelper
rather than the default ones proposed by the API.Copyright 2008-2020 Herve Girod. All Rights Reserved. Documentation and source under the LGPL licence