Adrian: This adds the ability to include screen widgets, form widgets, menu widgets, and simple methods in a single XML file. This approach could be used in situations where the widgets share a logical grouping - so they can be kept in one place. James: An example to test out Compound Screen Widget jlerouxc: here are the changes and tests globally # As James mentionned we no longer need *-v2.xsd files, I removed them from Adrian's patch # I created a compound-widgets.xsd based on Adrian's and James Yong's previous work. From Paul Foxworthy's comment in OFBIZ-4090, I decided to name the root compound-widgets (hence the file name). I arranged its elements in another way, see below with ExampleCompoundWidgets.xml # I slightly modified James Yong's ExampleCompoundScreenWidget.xml file and renamed it ExampleCompoundWidgets.xml. I added an "s" because there are several OFBiz widgets gathered in one place. For the modifications: I simply changed the names and arranged the elements in another way which I find better suited. I'm used to 1st create the query, then the menus, the screens and their forms. We rarely use widget-trees but it's there also. Finally the simple-method at end if any. The order is not enforced though, so everybody can use her/his own :) # I added a French label # I completed the widget-catalog.xml with this new entry and tested locally in Eclipse by reloading the XML catalog entries. I hope I did not miss nor mixed things, the local instance I used is a bit overcrowded with pending changes... git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1738958 13f79535-47bb-0310-9956-ffa450edef68
102 lines
5.7 KiB
XML
102 lines
5.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd">
|
|
<menu name="ExampleAppBar" title="${uiLabelMap.ExampleApplication}" extends="CommonAppBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
|
<menu-item name="ExampleMenuItem" title="${uiLabelMap.ExampleExample}">
|
|
<link target="FindExample"/>
|
|
</menu-item>
|
|
<menu-item name="ExampleFeature" title="${uiLabelMap.ExampleFeature}">
|
|
<link target="FindExampleFeature"/>
|
|
</menu-item>
|
|
<menu-item name="FormWidgetExamples" title="${uiLabelMap.ExampleFormWidgetExamples}">
|
|
<link target="FormWidgetExamples"/>
|
|
</menu-item>
|
|
<menu-item name="AjaxExample" title="${uiLabelMap.ExampleAjaxExamples}">
|
|
<link target="authview/findExampleAjax"/>
|
|
</menu-item>
|
|
<menu-item name="portalPage" parent-portal-page-value="EXAMPLE"/>
|
|
<menu-item name="Dashboard" title="${uiLabelMap.ExampleDashboard}" align-style="opposed">
|
|
<link target="ManagePortalPages" link-type="anchor">
|
|
<parameter param-name="parentPortalPageId" value="EXAMPLE"/>
|
|
</link>
|
|
</menu-item>
|
|
<menu-item name="ExampleGeoLocation" title="${uiLabelMap.CommonGeoLocation}">
|
|
<link target="ExampleGeoLocationPointSet1"/>
|
|
</menu-item>
|
|
<menu-item name="ExampleCharts" title="${uiLabelMap.ExampleChart}">
|
|
<link target="ExampleBarChart"/>
|
|
</menu-item>
|
|
<menu-item name="ExampleCompleteFop" title="${uiLabelMap.ContentFopFonts}">
|
|
<link target="fonts.pdf"/>
|
|
</menu-item>
|
|
<menu-item name="ExampleCompoundWidgets" title="${uiLabelMap.ExampleCompoundWidgets}">
|
|
<link target="CompoundWidgets1"/>
|
|
</menu-item>
|
|
</menu>
|
|
|
|
<menu name="EditExample" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
|
<menu-item name="EditExample" title="${uiLabelMap.ExampleExample}">
|
|
<link target="EditExample">
|
|
<parameter param-name="exampleId"/>
|
|
</link>
|
|
</menu-item>
|
|
<menu-item name="EditExampleItems" title="${uiLabelMap.CommonItems}">
|
|
<link target="EditExampleItems">
|
|
<parameter param-name="exampleId"/>
|
|
</link>
|
|
</menu-item>
|
|
<menu-item name="EditExampleFeatureAppls" title="${uiLabelMap.ExampleFeatures}">
|
|
<link target="EditExampleFeatureAppls">
|
|
<parameter param-name="exampleId"/>
|
|
</link>
|
|
</menu-item>
|
|
</menu>
|
|
|
|
<menu name="EditExampleFeature" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
|
<menu-item name="EditExampleFeature" title="${uiLabelMap.ExampleFeature}">
|
|
<link target="EditExampleFeature"/>
|
|
</menu-item>
|
|
<menu-item name="EditExampleFeatureExampleAppls" title="${uiLabelMap.ExampleExamples}">
|
|
<link target="EditExampleFeatureExampleAppls"/>
|
|
</menu-item>
|
|
</menu>
|
|
|
|
<menu name="ExampleGeoLocation" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
|
<menu-item name="ExampleGeoLocationPointSet1" title="${uiLabelMap.PointSet1}"><link target="ExampleGeoLocationPointSet1"/></menu-item>
|
|
<menu-item name="ExampleGeoLocationPointSet2" title="${uiLabelMap.PointSet2}"><link target="ExampleGeoLocationPointSet2"/></menu-item>
|
|
<menu-item name="ExampleGeoLocationPointSet3" title="${uiLabelMap.PointSet3}"><link target="ExampleGeoLocationPointSet3"/></menu-item>
|
|
<menu-item name="ExampleGeoLocationPointSet4" title="${uiLabelMap.PointSet4}"><link target="ExampleGeoLocationPointSet4"/></menu-item>
|
|
<menu-item name="ExampleGeoLocationAddress" title="${uiLabelMap.ExamplePointAddress}"><link target="ExampleGeoLocationAddress"/></menu-item>
|
|
<!--Examples using openstreetmap -->
|
|
<menu-item name="ExampleOsmGeoLocationPointSet1" title="${uiLabelMap.OsmPointSet1}"><link target="ExampleOsmGeoLocationPointSet1"/></menu-item>
|
|
<menu-item name="ExampleOsmGeoLocationPointSet2" title="${uiLabelMap.OsmPointSet2}"><link target="ExampleOsmGeoLocationPointSet2"/></menu-item>
|
|
<menu-item name="ExampleOsmGeoLocationPointSet3" title="${uiLabelMap.OsmPointSet3}"><link target="ExampleOsmGeoLocationPointSet3"/></menu-item>
|
|
<menu-item name="ExampleOsmGeoLocationPointSet4" title="${uiLabelMap.OsmPointSet4}"><link target="ExampleOsmGeoLocationPointSet4"/></menu-item>
|
|
</menu>
|
|
|
|
<menu name="ExampleCharts" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
|
<menu-item name="ExampleBarChart" title="${uiLabelMap.ExampleBarChart}"><link target="ExampleBarChart"/></menu-item>
|
|
<menu-item name="ExamplePieChart" title="${uiLabelMap.ExamplePieChart}"><link target="ExamplePieChart"/></menu-item>
|
|
</menu>
|
|
|
|
</menus>
|