Hi, in the JavascriptConsoleTest (under tests subproject) we put different ways to interact between Java code and JavaScript code (interpreted by the JVM inside bxml files) ... you should find something useful for your case:
package org.apache.pivot.tests JavascriptConsoleTest.java , the main class of the test and similar files are javascript_console_test.*, in the same folder. Bye, Sandro 2013/8/29 Ajay Bhat <[email protected]>: > Okay, is it possible to pass arguments through the BXML script itself? Like > > <Menu.Item buttonData="Default" > ButtonPressListener.buttonPressed="myClass.colorChange(colors)"> > <buttonData /> > </Menu.Item> > //defined colorChange(int[]) to accept array of hex values.
