XULDocument is the class which represents one XUL file.
document property, such as:var widget = document.getElementById("open");On other script type, you can get it through the XUL ScriptHelper:
XULDocument doc = helper.getCurrentDocument();
ID attribute) with the following method:getWidget(java.lang.String)document property, such as:var widget = document.getElementById("open");You can get the current widget which is the source of the last user event by one of the following methods:
document.getCurrentWidget()helper.getCurrentWidget()document.getCurrentWindow()helper.getCurrentWindow()var widget = document.getcurrentWindow();
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence