Files
ofbiz-framework/framework/webtools/widget/CacheForms.xml
T
Nicolas Malin 484124f581 Improve widget-form with four elements : include-form, include-grid, include-menu, include-screen to offert more flexibility to define complex display. The main purpose is to complete the screen widget capacity to replace ftl screen.
With these elements, example component have a new FindExample search screen to select the display list type with a example of :
   * include-form : list examples with their features
   * include-screen : list examples with their items
   * include-grid : list examples with their status history
The element include-menu is present on FindUtilCache screen. Also a new CommonInlineBarMenu menu type to display menu with specific purpose (in-line) is now present and with this logic adding in-line-bar css class on themes thomawak and flatgrey.

This patch is combinate Issues : 
 * OFBIZ-6502 Add support for form/grid embedding within grids
 * OFBIZ-6501 Add support for screen embedding inside grids
 * OFBIZ-6404 Allow form/grid widget hyperlinks to be grouped into a single column
sub-tasks of master issue OFBIZ-6314 Widget Refactoring - Placeholder issue

Thanks to Christian and Adrian for their time

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686116 13f79535-47bb-0310-9956-ffa450edef68
2015-06-17 21:50:27 +00:00

80 lines
5.9 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.
-->
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
<form name="MemoryInfo" type="single" default-map-name="memoryInfo">
<field name="memory" title="${uiLabelMap.WebtoolsTotalMemory}"><display/></field>
<field name="maxMemory" title="${uiLabelMap.WebtoolsMaxMemory}"><display/></field>
<field name="freeMemory" title="${uiLabelMap.WebtoolsFreeMemory}"><display/></field>
<field name="usedMemory" title="${uiLabelMap.WebtoolsUsedMemory}"><display/></field>
<field name="totalCacheMemory" title="${uiLabelMap.WebtoolsCacheMemory}"><display/></field>
</form>
<form name="ListCache" type="list" list-name="cacheList" paginate-target="FindUtilCache" separate-columns="true" odd-row-style="alternate-row" default-table-style="basic-table hover-bar" header-row-style="header-row-2">
<field name="cacheName" title="${uiLabelMap.WebtoolsCacheName}" sort-field="true"><display/></field>
<field name="cacheSize" title="${uiLabelMap.WebtoolsSize}" sort-field="true"><display/></field>
<field name="hitCount" title="${uiLabelMap.WebtoolsHits}" sort-field="true"><display/></field>
<field name="misses" title="${uiLabelMap.WebtoolsMisses}" sort-field="true"><display description="${missCountTot}/${missCountNotFound}/${missCountExpired}/${missCountSoftRef}"/></field>
<field name="removes" title="${uiLabelMap.WebtoolsRemoves}" sort-field="true"><display description="${removeHitCount}/${removeMissCount}"/></field>
<field name="maxInMemory" title="${uiLabelMap.WebtoolsMaxInMemory}" sort-field="true"><display/></field>
<field name="expireTime" title="${uiLabelMap.WebtoolsExpireTime}" sort-field="true"><display/></field>
<field name="useSoftReference" title="${uiLabelMap.WebtoolsUseSoftRef}" sort-field="true"><display/></field>
<field name="useFileSystemStore" title="${uiLabelMap.WebtoolsUseFileStore}" sort-field="true"><display/></field>
<field name="cacheMemory" title="${uiLabelMap.WebtoolsCacheMemory}" sort-field="true"><display/></field>
<field name="cacheMenu" title=" " use-when="hasUtilCacheEdit"><include-menu name="ListCacheForm" location="component://webtools/widget/Menus.xml"/></field>
</form>
<form name="ListCacheElements" type="list" list-name="cacheElementsList" paginate-target="FindUtilCacheElements" separate-columns="true" odd-row-style="alternate-row" default-table-style="basic-table hover-bar" header-row-style="header-row-2">
<field name="elementKey" title="${uiLabelMap.WebtoolsCacheElementKey}" sort-field="true"><display/></field>
<field name="expireTimeMillis" title="${uiLabelMap.WebtoolsExpireTime}" sort-field="true"><display/></field>
<field name="lineSize" title="${uiLabelMap.WebtoolsBytes}" sort-field="true"><display/></field>
<field name="administration" title=" " widget-style="buttontext" use-when="hasUtilCacheEdit">
<hyperlink description="${uiLabelMap.CommonRemove}" target="FindUtilCacheElementsRemoveElement">
<parameter param-name="UTIL_CACHE_NAME" from-field="cacheName"/>
<parameter param-name="UTIL_CACHE_ELEMENT_NUMBER" from-field="keyNum"/>
</hyperlink>
</field>
</form>
<form name="EditCache" type="single" target="EditUtilCacheUpdate" default-map-name="cache">
<field name="UTIL_CACHE_NAME" entry-name="cacheName" title="${uiLabelMap.WebtoolsCacheName}"><display/></field>
<field name="cacheSize" title="${uiLabelMap.WebtoolsSize}"><display/></field>
<field name="hitCount" title="${uiLabelMap.WebtoolsHits}"><display/></field>
<field name="missCountTot" title="${uiLabelMap.WebtoolsMissesTotal}"><display/></field>
<field name="missCountNotFound" title="${uiLabelMap.WebtoolsMissesNotFound}"><display/></field>
<field name="missCountExpired" title="${uiLabelMap.WebtoolsMissesExpire}"><display/></field>
<field name="missCountSoftRef" title="${uiLabelMap.WebtoolsMissesSoftReference}"><display/></field>
<field name="removeHitCount" title="${uiLabelMap.WebtoolsRemovesHit}"><display/></field>
<field name="removeMissCount" title="${uiLabelMap.WebtoolsRemovesMisses}"><display/></field>
<field name="UTIL_CACHE_MAX_IN_MEMORY" entry-name="maxInMemory" title="${uiLabelMap.WebtoolsMaxInMemory}"><text/></field>
<field name="UTIL_CACHE_EXPIRE_TIME" entry-name="expireTime" title="${uiLabelMap.WebtoolsExpireTime}"><text/></field>
<field name="UTIL_CACHE_USE_SOFT_REFERENCE" entry-name="useSoftReference" title="${uiLabelMap.WebtoolsUseSoftRef}">
<drop-down allow-empty="false">
<option key="false" description="${uiLabelMap.CommonFalse}"/>
<option key="true" description="${uiLabelMap.CommonTrue}"/>
</drop-down>
</field>
<field name="useFileSystemStore" title="${uiLabelMap.WebtoolsUseFileStore}"><display/></field>
<field name="submitButton" title="${uiLabelMap.CommonApply}"><submit button-type="button"/></field>
</form>
</forms>