pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sandro Martini <sandro.mart...@gmail.com>
Subject Re: Coloring similar UI components
Date Fri, 30 Aug 2013 08:52:03 GMT
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.


2013/8/29 Ajay Bhat <a.ajay.bhat@gmail.com>:
> 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.

View raw message