home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-cocoon-addon-1.4.9-installer.exe / form_model_gui_model.xml < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  7.3 KB  |  230 lines

  1. <?xml version="1.0"?>
  2. <!--
  3.   Copyright 1999-2004 The Apache Software Foundation
  4.  
  5.   Licensed under the Apache License, Version 2.0 (the "License");
  6.   you may not use this file except in compliance with the License.
  7.   You may obtain a copy of the License at
  8.  
  9.       http://www.apache.org/licenses/LICENSE-2.0
  10.  
  11.   Unless required by applicable law or agreed to in writing, software
  12.   distributed under the License is distributed on an "AS IS" BASIS,
  13.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.   See the License for the specific language governing permissions and
  15.   limitations under the License.
  16. -->
  17. <fd:form
  18.   xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"
  19.   xmlns:i18n="http://apache.org/cocoon/i18n/2.1">
  20.   <fd:widgets>
  21.  
  22.     <!--
  23.       CVS $Id: form_model_gui_model.xml,v 1.3 2004/04/12 14:05:09 tim Exp $
  24.     -->
  25.  
  26.     <!--
  27.     TODO:
  28.       Add features to "widgets-class" (e.g. move-up, move-down, add-before, add-after).
  29.     -->
  30.  
  31.     <fd:new id="widgets-class"/>
  32.  
  33.     <!--
  34.     <fd:struct id="form">
  35.       <fd:widgets>
  36.         <fd:new id="widgets-class"/>
  37.       </fd:widgets>
  38.     </fd:struct>
  39.     -->
  40.  
  41.     <fd:class id="widgets-class">
  42.       <fd:widgets>
  43.         <fd:repeater id="widgets" initial-size="1">
  44.           <fd:label>Widgets</fd:label>
  45.           <fd:widgets>
  46.             <fd:new id="widget-row-class"/>
  47.           </fd:widgets>
  48.         </fd:repeater>
  49.         <fd:repeater-action id="addWidget" action-command="add-row" repeater="widgets">
  50.           <fd:label>New</fd:label>
  51.         </fd:repeater-action>
  52.         <fd:repeater-action id="removeWidgets" action-command="delete-rows" repeater="widgets" select="select">
  53.           <fd:label>Delete</fd:label>
  54.         </fd:repeater-action>
  55.       </fd:widgets>
  56.     </fd:class>
  57.  
  58.     <fd:class id="widget-row-class">
  59.       <fd:widgets>
  60.         <fd:booleanfield id="select"><fd:label>Select</fd:label></fd:booleanfield>
  61.         <fd:field id="type">
  62.           <fd:label>Widget Type</fd:label>
  63.           <fd:datatype base="string"/>
  64.           <fd:selection-list>
  65.             <fd:item value=""><fd:label>Nothing</fd:label></fd:item>
  66.             <fd:item value="action"><fd:label>Action</fd:label></fd:item>
  67.             <fd:item value="aggregatefield"><fd:label>AggregateField</fd:label></fd:item>
  68.             <fd:item value="booleanfield"><fd:label>BooleanField</fd:label></fd:item>
  69.             <fd:item value="class"><fd:label>Class</fd:label></fd:item>
  70.             <fd:item value="field"><fd:label>Field</fd:label></fd:item>
  71.             <fd:item value="new"><fd:label>New</fd:label></fd:item>
  72.             <fd:item value="output"><fd:label>Output</fd:label></fd:item>
  73.             <fd:item value="repeater"><fd:label>Repeater</fd:label></fd:item>
  74.             <fd:item value="row-action"><fd:label>RowAction</fd:label></fd:item>
  75.             <fd:item value="struct"><fd:label>Struct</fd:label></fd:item>
  76.             <fd:item value="submit"><fd:label>Submit</fd:label></fd:item>
  77.             <fd:item value="union"><fd:label>Union</fd:label></fd:item>
  78.           </fd:selection-list>
  79.         </fd:field>
  80.         <fd:union id="union" default="" case="type">
  81.           <fd:datatype base="string"/>
  82.           <fd:label>Type</fd:label>
  83.           <fd:widgets>
  84.  
  85.             <fd:struct id="action">
  86.               <fd:label>Action</fd:label>
  87.               <fd:widgets>
  88.                 <fd:new id="id-class"/>
  89.                 <fd:new id="label-class"/>
  90.               </fd:widgets>
  91.             </fd:struct>
  92.  
  93.             <fd:struct id="aggregatefield">
  94.               <fd:label>AggregateField</fd:label>
  95.               <fd:widgets>
  96.                 <fd:new id="id-class"/>
  97.                 <fd:new id="label-class"/>
  98.                 <fd:new id="required-class"/>
  99.                 <fd:new id="widgets-class"/>
  100.               </fd:widgets>
  101.             </fd:struct>
  102.  
  103.             <fd:struct id="booleanfield">
  104.               <fd:label>BooleanField</fd:label>
  105.               <fd:widgets>
  106.                 <fd:new id="id-class"/>
  107.                 <fd:new id="label-class"/>
  108.               </fd:widgets>
  109.             </fd:struct>
  110.  
  111.             <fd:struct id="class">
  112.               <fd:label>Class</fd:label>
  113.               <fd:widgets>
  114.                 <fd:new id="id-class"/>
  115.                 <fd:new id="widgets-class"/>
  116.               </fd:widgets>
  117.             </fd:struct>
  118.  
  119.             <fd:struct id="field">
  120.               <fd:label>Field</fd:label>
  121.               <fd:widgets>
  122.                 <fd:new id="id-class"/>
  123.                 <fd:new id="label-class"/>
  124.                 <fd:new id="required-class"/>
  125.               </fd:widgets>
  126.             </fd:struct>
  127.  
  128.             <fd:struct id="new">
  129.               <fd:label>New</fd:label>
  130.               <fd:widgets>
  131.                 <fd:new id="id-class"/>
  132.               </fd:widgets>
  133.             </fd:struct>
  134.  
  135.             <fd:struct id="output">
  136.               <fd:label>Output</fd:label>
  137.               <fd:widgets>
  138.                 <fd:new id="id-class"/>
  139.                 <fd:new id="label-class"/>
  140.               </fd:widgets>
  141.             </fd:struct>
  142.  
  143.             <fd:struct id="repeater">
  144.               <fd:label>Repeater</fd:label>
  145.               <fd:widgets>
  146.                 <fd:new id="id-class"/>
  147.                 <fd:new id="label-class"/>
  148.                 <fd:new id="initial-size-class"/>
  149.                 <fd:new id="widgets-class"/>
  150.               </fd:widgets>
  151.             </fd:struct>
  152.  
  153.             <fd:struct id="row-action">
  154.                 <fd:label>RowAction</fd:label>
  155.               <fd:widgets>
  156.                 <fd:new id="id-class"/>
  157.                 <fd:new id="label-class"/>
  158.               </fd:widgets>
  159.             </fd:struct>
  160.  
  161.             <fd:struct id="struct">
  162.               <fd:label>Struct</fd:label>
  163.               <fd:widgets>
  164.                 <fd:new id="id-class"/>
  165.                 <fd:new id="label-class"/>
  166.                 <fd:new id="widgets-class"/>
  167.               </fd:widgets>
  168.             </fd:struct>
  169.  
  170.             <fd:struct id="submit">
  171.               <fd:label>Submit</fd:label>
  172.               <fd:widgets>
  173.                 <fd:new id="id-class"/>
  174.                 <fd:new id="label-class"/>
  175.               </fd:widgets>
  176.             </fd:struct>
  177.  
  178.             <fd:struct id="union">
  179.               <fd:label>Union</fd:label>
  180.               <fd:widgets>
  181.                 <fd:new id="id-class"/>
  182.                 <fd:new id="label-class"/>
  183.                 <fd:new id="widgets-class"/>
  184.               </fd:widgets>
  185.             </fd:struct>
  186.  
  187.           </fd:widgets>
  188.  
  189.         </fd:union>
  190.       </fd:widgets>
  191.     </fd:class>
  192.  
  193.     <fd:class id="id-class">
  194.       <fd:widgets>
  195.         <fd:field id="id" required="true">
  196.           <fd:label>Id</fd:label>
  197.           <fd:datatype base="string"/>
  198.         </fd:field>
  199.       </fd:widgets>
  200.     </fd:class>
  201.  
  202.     <fd:class id="label-class">
  203.       <fd:widgets>
  204.         <fd:field id="label">
  205.           <fd:label>Label</fd:label>
  206.           <fd:datatype base="string"/>
  207.         </fd:field>
  208.       </fd:widgets>
  209.     </fd:class>
  210.  
  211.     <fd:class id="required-class">
  212.       <fd:widgets>
  213.         <fd:booleanfield id="required">
  214.           <fd:label>Required</fd:label>
  215.         </fd:booleanfield>
  216.       </fd:widgets>
  217.     </fd:class>
  218.  
  219.     <fd:class id="initial-size-class">
  220.       <fd:widgets>
  221.         <fd:field id="initial-size">
  222.           <fd:label>Initial Size</fd:label>
  223.           <fd:datatype base="long"/>
  224.         </fd:field>
  225.       </fd:widgets>
  226.     </fd:class>
  227.  
  228.   </fd:widgets>
  229. </fd:form>
  230.