...
Configuration (up to Delft-FEWS 2018.02)
To use the HTML5 Web Browser Display, configure it as <explorerTask> in Explorer.xml. For example:
Code Block | ||||
---|---|---|---|---|
| ||||
<explorerTask name="Web Browser Display"> <iconFile>document.png</iconFile> <mnemonic>h</mnemonic> <taskClass>nl.wldelft.fews.gui.plugin.webbrowser.WebBrowserDisplay</taskClass> <toolbarTask>false</toolbarTask> <menubarTask>true</menubarTask> <accelerator>ctrl h</accelerator> <loadAtStartup>false</loadAtStartup> </explorerTask> |
Please be aware that you refer to an existing <iconFile> in your configuration!
Configuration (Delft-FEWS 2018.02 onwards)
...
Configuration instructions
If you want to add
...
a new Web Browser Display to your configuration, take the following steps.
- Request for the JCEF package (fews-pm@deltares.nl)
- Create <explorerTask> placeholder for it in the Explorer.xml, see example above.
- Extend the <nodes> in the Topology.xml with URLs to display relevant web content (see below: Display Content Example).
- Open the *_clientConfig.xml and add the <autoExportModuleDataSet name="jcef" exportDir="Modules"/>, see example below.
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="UTF-8"?>
<clientConfiguration xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews
http://fews.wldelft.nl/schemas/version1.0/clientConfig.xsd">
<clientType>Stand alone</clientType>
<autoExportModuleDataSet name="jcef" exportDir="Modules"/>
</clientConfiguration> |
For Stand Alone:
- Make sure you make the edits to the Explorer.xml of your SA application
- Add URLs to the <nodes> in the Topology.xml
- Move or Copy the jcef.zip into your Config/ModuleDataSets folder
- Adjust the *_clientConfig.xml of this SA application
- Start your Delft-FEWS SA application using the (2018.02 way of) clicking the Desktop (or Start Menu) icon.
For Operator Client:
- Upload the following files using the Config Manager:
- Explorer.xml in the SystemConfigFiles
- JCEF package (jcef.zip) to the ModuleDataSetFiles
- *_clientConfig.xml in the RootConfigFiles
- Start your Delft-FEWS OC application using the (2018.02 way of) clicking the Desktop (or Start Menu) icon.
In both cases (OC and SA) will extract the jcef.zip automatically under the configured "exportDir". If this directory is not present, it will be created. Underneath this exportDir a dedicated directory called jcef will be present and all binaries required for launching the Web Browser Display can be found here.
This 'extraction on startup' will only take place once, unless the ModuleDataSet file has been changed (in the case of the jcef.zip file, this is not likely).
Configuration instructions (for enabling the Web Browser Display from scratch)
work-in-progress
Configuration instructions (for enabling the Web Browser Display from previous versions of Delft-FEWS)
work-in-progress
Displaying Content
To display content in the Web Browser Display,topology nodes can be extended with an optional url. In the following example, the FEWS wiki has been configured with the url http://www.deltares.nl.
...