Customizing the Web Report Studio Toolbar
Using API, you can customize whether to show the toolbar and the buttons on the toolbar in Web Report Studio. The API includes WebUIConfig.java and WebUIConfigConstant.java in the com.jinfonet.web.ui.config package, and uses the two files JRStructuredClient.jar or JRStructuredEngine.jar in <install_root>\lib
. For details, see Logi JReport Javadoc in <install_root>\help\api
.
The following lists the API functions:
- WebUIConfig config = WebUIConfig.getDefaultWebUIConfig();
Gets the default toolbar configuration. - setToolbarVisible()
Shows/hides the toolbar for View Mode and Edit Mode. - config.setToolbarButtonVisible()
Shows/hides toolbar buttons for View Mode and Edit Mode. - WebUIConfigPreserver writer = new WebUIConfigPreserver();
writer.saveTo(config, "d:\\temp\\demo.config");
WebUIConfigLoader loader = new WebUIConfigLoader("d:\\temp\\demo.config");
Stores the state of writer and loader that is in user implemented API.