BackPrevious Topic  Next TopicNext

Customizing the Web Report Studio Toolbar

You can customize whether to show the toolbar and the buttons on the toolbar in Web Report Studio via API. The API includes WebUIConfig.java and WebUIConfigConstant.java in the com.jinfonet.web.ui.config package, and uses the two files JRStructuredClient.jar and JRStructuredEngine.jar in <install_root>\lib. This topic describes 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.

Back to top

BackPrevious Topic  Next TopicNext