Community
Participate
Working Groups
A potentially useful feature currently missing from the JAXB definition is the ability to define actions and associate them with buttons. For instance, if there is a combo widget which gets its items from parsing the output of a command, it may be desirable to rerun the command to refresh the items without having to stop and restart the RM. An action could be a command, or there could be certain fixed internal types as well. The amount of work it would take to add this feature is quite modest: 1. Add an "action" section to the XSD (just after the commands makes sense); 2. Add an "action" attribute to the widget type; 3. Add a method to the UI builder to build a button linked to the action. 4. Add an action runnable triggered by such a button.
This has been added to HEAD. I tested a simple example of a command which populates combo widgets when the button is pressed (rather than at start-up).