<?xml version="1.0" encoding="Windows-1255" ?><Component name="SmartForm" also="core.env:KitEditors!EDITOR_DEF core.env:KitEditors!EDITOR_GROUP core.env:KitEditors!EDITOR_ELEM" id="core.lib:SmartForm" sort="24" urn="core.lib:SmartForm.htc" toc="\"><Summary>A smart form display element for viewing and editing a collection of dynamic editors.</Summary><Remarks>&lt;h2&gt;Xml definition of smartform&lt;/h2&gt;
   &lt;pre&gt;
&amp;lt;SMARTFORM&amp;gt;

*  &amp;lt;EDITOR id=&amp;quot;com.sap.mypackage:editorId&amp;quot;&amp;gt;
      # For complete description of editor
      definition see &lt;q ref=&quot;core.env:KitEditors!EDITOR_DEF&quot;&gt;EDITOR_DEF&lt;/q&gt;
?     &amp;lt;PROPERTIES&amp;gt;
*        &amp;lt;propertyName type=&amp;quot;[function | ]&amp;quot;/&amp;gt;
            # Represent a property of the editor
            You can assign the 'type' attribute for
            evaluating the value of the property
            as a function
      &amp;lt;/PROPERTIES&amp;gt;
*     &amp;lt;GROUP id=&amp;quot;[elementId| ]&amp;quot;&amp;gt;
         # For complete description of group definition
         see &lt;q ref=&quot;core.env:KitEditors!EDITOR_GROUP&quot;&gt;EDITOR_GROUP&lt;/q&gt;
?        &amp;lt;PROPERTIES&amp;gt;
*           &amp;lt;propertyName type=&amp;quot;[function | ]&amp;quot;/&amp;gt;
               # Represent a property of the group
               You can assign the 'type' attribute for
               evaluating of the value of the property
               as a function
         &amp;lt;/PROPERTIES&amp;gt;
*        &amp;lt;editorElementType id=&amp;quot;editorElementId&amp;quot;&amp;gt;
               # For complete description of editor elements and
               properties see &lt;q ref=&quot;core.env:KitEditors!EDITOR_ELEM&quot;&gt;EDITOR_ELEM&lt;/q&gt;
*           &amp;lt;propertyName type=&amp;quot;[function | ]&amp;quot;/&amp;gt;
               # Represent a property of the editor element
               You can assign the 'type' attribute for
               evaluating of the value of the property
               as a function
         &amp;lt;/editorElementType&amp;gt;
      &amp;lt;/GROUP&amp;gt;

   &amp;lt;/EDITOR&amp;gt;
&amp;lt;/SMARTFORM&amp;gt;
   &lt;/pre&gt;

   &lt;h2&gt;Xml definition of smartform editor&lt;/h2&gt;
   &lt;pre&gt;
&amp;lt;EDITOR id=&amp;quot;com.sap.mypackage:editorId&amp;quot;&amp;gt;
   # For complete description of editor
   definition see &lt;q ref=&quot;core.env:KitEditors!EDITOR_DEF&quot;&gt;EDITOR_DEF&lt;/q&gt;
?     &amp;lt;PROPERTIES&amp;gt;
*        &amp;lt;propertyName type=&amp;quot;[function | ]&amp;quot;/&amp;gt;
         # Represent a property of the editor
         You can assign the 'type' attribute for
         evaluating the value of the property
         as a function
   &amp;lt;/PROPERTIES&amp;gt;
*     &amp;lt;GROUP id=&amp;quot;[elementId| ]&amp;quot;&amp;gt;
      # For complete description of group definition
      see &lt;q ref=&quot;core.env:KitEditors!EDITOR_GROUP&quot;&gt;EDITOR_GROUP&lt;/q&gt;
?        &amp;lt;PROPERTIES&amp;gt;
*           &amp;lt;propertyName type=&amp;quot;[function | ]&amp;quot;/&amp;gt;
            # Represent a property of the group
            You can assign the 'type' attribute for
            evaluating of the value of the property
            as a function
      &amp;lt;/PROPERTIES&amp;gt;
*        &amp;lt;editorElementType id=&amp;quot;editorElementId&amp;quot;&amp;gt;
            # For complete description of editor elements and
            properties see &lt;q ref=&quot;core.env:KitEditors!EDITOR_ELEM&quot;&gt;EDITOR_ELEM&lt;/q&gt;
*           &amp;lt;propertyName type=&amp;quot;[function | ]&amp;quot;/&amp;gt;
            # Represent a property of the editor element
            You can assign the 'type' attribute for
            evaluating of the value of the property
            as a function
      &amp;lt;/editorElementType&amp;gt;
   &amp;lt;/GROUP&amp;gt;
&amp;lt;/EDITOR&amp;gt;

   &lt;/pre&gt;

&lt;h2&gt;Example for xml definition of a smartform editor&lt;/h2&gt;
&lt;pre&gt;

&amp;lt;EDITOR id=&amp;quot;core.env:STODIO_OPTIONS&amp;quot;&amp;gt;
   &amp;lt;PROPERTIES&amp;gt;
      &amp;lt;category&amp;gt;OPTIONS&amp;lt;/category&amp;gt;
      &amp;lt;visible&amp;gt; true &amp;lt;/visible&amp;gt;
      &amp;lt;description&amp;gt;STUDIO_OPTIONS editor &amp;lt;/description&amp;gt;
   &amp;lt;/PROPERTIES&amp;gt;
   &amp;lt;GROUP&amp;gt;
      &amp;lt;PROPERTIES&amp;gt;
         &amp;lt;title&amp;gt;model&amp;lt;/title&amp;gt;
         &amp;lt;toggle&amp;gt;on&amp;lt;/toggle&amp;gt;
         &amp;lt;visible&amp;gt;true&amp;lt;/visible&amp;gt;
      &amp;lt;/PROPERTIES&amp;gt;
      &amp;lt;check id=&amp;quot;AutoOpen&amp;quot;&amp;gt;
         &amp;lt;label&amp;gt;Reload last model at startup&amp;lt;/label&amp;gt;
         &amp;lt;getter type=&amp;quot;function&amp;quot;&amp;gt;&amp;lt;![CDATA[
            function (context, def) { return GETVAR(def.id); }
            ]]&amp;gt;
         &amp;lt;/getter&amp;gt;
         &amp;lt;setter type=&amp;quot;function&amp;quot;&amp;gt;&amp;lt;![CDATA[
            function (value, context, def) { SETVAR(def.id, value); }
            ]]&amp;gt;
         &amp;lt;/setter&amp;gt;
      &amp;lt;/check&amp;gt;
   &amp;lt;/GROUP&amp;gt;
&amp;lt;/EDITOR&amp;gt;
&lt;/pre&gt;</Remarks><Copyright>(c) SAP AG 2003-2006. All rights reserved.</Copyright><SeeAlso>&lt;q ref=&quot;core.env:KitEditors!EDITOR_DEF&quot;&gt;EDITOR_DEF&lt;/q&gt; | &lt;q ref=&quot;core.env:KitEditors!EDITOR_GROUP&quot;&gt;EDITOR_GROUP&lt;/q&gt; | &lt;q ref=&quot;core.env:KitEditors!EDITOR_ELEM&quot;&gt;EDITOR_ELEM&lt;/q&gt;</SeeAlso>
<Topics>
<Property name="data" type="Object" access="RW" sortGroup="true" scope="public" id="core.lib:SmartForm!data" sort="34" group="Properties" seq="0000"><Summary>Gets or sets the data object attached to the form.</Summary><Remarks>If the data object is changed the form will not be repainted automatically. Use the &lt;q ref=&quot;core.lib:SmartForm!repaintAll&quot;&gt;repaintAll&lt;/q&gt; method
      to repaint the entire form and reflect any changes to the data object.</Remarks></Property>
<Property name="defaulting" type="Boolean" default="false" access="RW" sortGroup="true" scope="public" id="core.lib:SmartForm!defaulting" sort="34" group="Properties" seq="0001"><Summary>Gets or sets whether the form handles default/overriden property values.</Summary></Property>
<Property name="editors" type="env:KitEditors!EDITOR_DEF[]" access="RO" typeRef="&lt;q ref=&quot;core.env:KitEditors!EDITOR_DEF&quot;&gt;EDITOR_DEF&lt;/q&gt;[]" sortGroup="true" scope="public" id="core.lib:SmartForm!editors" sort="34" group="Properties" seq="0002"><Summary>Gets the list of all editor definitions in use.</Summary></Property>
<Property name="enabled" type="Boolean" default="true" access="RW" sortGroup="true" scope="public" id="core.lib:SmartForm!enabled" sort="34" group="Properties" seq="0003"><Summary>Gets or sets whether the form can respond to user interaction.</Summary></Property>
<Property name="paletteStyle" also="core.env:KitEditors!EDITOR_GROUP" type="Enum" access="RW" sortGroup="true" scope="public" id="core.lib:SmartForm!paletteStyle" sort="34" group="Properties" seq="0004"><Summary>Gets or sets the default palette style.</Summary><Remarks>The default palette style defines how drag elements in a palette group will be displayed by default.
      See &lt;q ref=&quot;core.env:KitEditors!EDITOR_GROUP&quot;&gt;EDITOR_GROUP&lt;/q&gt; for the possible values of this property.</Remarks><SeeAlso>&lt;q ref=&quot;core.env:KitEditors!EDITOR_GROUP&quot;&gt;EDITOR_GROUP&lt;/q&gt;</SeeAlso></Property>
<Property name="src" type="String" access="RW" sortGroup="true" scope="public" id="core.lib:SmartForm!src" sort="34" group="Properties" seq="0005"><Summary>Gets the urn for the Xml source file.</Summary></Property>
<Method name="appendEditor" sortGroup="true" scope="public" id="core.lib:SmartForm!appendEditor" sort="35" group="Methods" seq="0006"><Summary>Adds a given editor definition to the form.</Summary><Parameters signature="method:: &lt;i&gt;this&lt;/i&gt;.&lt;b&gt;appendEditor&lt;/b&gt;(&lt;i&gt;pdef&lt;/i&gt;) &amp;rarr; void"><Param name="pdef" type="env:KitEditors!EDITOR_DEF" typeRef="&lt;q ref=&quot;core.env:KitEditors!EDITOR_DEF&quot;&gt;EDITOR_DEF&lt;/q&gt;">The editor definition to add.</Param></Parameters><Return></Return><Remarks>The new editor definition is added to form but is not painted. Use the &lt;q ref=&quot;core.lib:SmartForm!repaintAll&quot;&gt;repaintAll&lt;/q&gt; method
      to repaint the entire form and show any new editor definition(s) that have been added.</Remarks></Method>
<Method name="findElements" also="core.lib:SmartForm!repaintElement" sortGroup="true" scope="public" id="core.lib:SmartForm!findElements" sort="35" group="Methods" seq="0007"><Summary>Returns definition of all editor elements that match given id and, optionally, bound gml object id.</Summary><Parameters signature="method:: &lt;i&gt;this&lt;/i&gt;.&lt;b&gt;findElements&lt;/b&gt;(&lt;i&gt;id&lt;/i&gt;, &lt;i&gt;gmlid&lt;/i&gt;) &amp;rarr; &lt;q ref=&quot;core.env:KitEditors!EDITOR_ELEM&quot;&gt;EDITOR_ELEM&lt;/q&gt;[]"><Param name="id">The id of the editor elements to find.</Param><Param name="gmlid">The id of the bound data object (optional).</Param></Parameters><Return type="env:KitEditors!EDITOR_ELEM[]" typeRef="&lt;q ref=&quot;core.env:KitEditors!EDITOR_ELEM&quot;&gt;EDITOR_ELEM&lt;/q&gt;[]">Array of editor elements that match given &lt;code&gt;id&lt;/code&gt; and &lt;code&gt;gmlid&lt;/code&gt;</Return><Remarks>Use this method when handling model updates and repaint correct editor elements.
		Element Id is unique per editor, so if the Smartform has more than one editor,
		there can be more than one element with the same &lt;code&gt;id&lt;/code&gt; and event same &lt;code&gt;gmlid.&lt;/code&gt;</Remarks><SeeAlso>&lt;q ref=&quot;core.lib:SmartForm!repaintElement&quot;&gt;repaintElement&lt;/q&gt;</SeeAlso></Method>
<Method name="hasEditor" sortGroup="true" scope="public" id="core.lib:SmartForm!hasEditor" sort="35" group="Methods" seq="0008"><Summary>Checks if an editor exists in the smartform.</Summary><Parameters signature="method:: &lt;i&gt;this&lt;/i&gt;.&lt;b&gt;hasEditor&lt;/b&gt;(&lt;i&gt;id&lt;/i&gt;) &amp;rarr; void"><Param name="id">The id of the editor.</Param></Parameters><Return>return true &lt;code&gt;iff&lt;/code&gt; the editor exist in the smartform.</Return></Method>
<Method name="loadEditor" sortGroup="true" scope="public" id="core.lib:SmartForm!loadEditor" sort="35" group="Methods" seq="0009"><Summary>Load editor from a given xml source file.</Summary><Parameters signature="method:: &lt;i&gt;this&lt;/i&gt;.&lt;b&gt;loadEditor&lt;/b&gt;(&lt;i&gt;xmlSrc&lt;/i&gt;) &amp;rarr; void"><Param name="xmlSrc" type="String">Url for the xml source file.</Param></Parameters><Return></Return></Method>
<Method name="loadSmartform" sortGroup="true" scope="public" id="core.lib:SmartForm!loadSmartform" sort="35" group="Methods" seq="0010"><Summary>Load smartform from a given xml source file.</Summary><Parameters signature="method:: &lt;i&gt;this&lt;/i&gt;.&lt;b&gt;loadSmartform&lt;/b&gt;(&lt;i&gt;xmlSrc&lt;/i&gt;) &amp;rarr; void"><Param name="xmlSrc" type="String">Url for the xml source file.</Param></Parameters><Return></Return></Method>
<Method name="removeEditor" sortGroup="true" scope="public" id="core.lib:SmartForm!removeEditor" sort="35" group="Methods" seq="0011"><Summary>Removes a specified editor from the form.</Summary><Parameters signature="method:: &lt;i&gt;this&lt;/i&gt;.&lt;b&gt;removeEditor&lt;/b&gt;(&lt;i&gt;id&lt;/i&gt;) &amp;rarr; void"><Param name="id">The id of the editor to remove.</Param></Parameters><Return></Return><Remarks>The editor is also immediately erased from view when it is removed from the form.</Remarks></Method>
<Method name="repaintAll" sortGroup="true" scope="public" id="core.lib:SmartForm!repaintAll" sort="35" group="Methods" seq="0012"><Summary>Repaints the entire form.</Summary><Parameters signature="method:: &lt;i&gt;this&lt;/i&gt;.&lt;b&gt;repaintAll&lt;/b&gt;() &amp;rarr; void"></Parameters><Return></Return><Remarks>Use this method to repaint the entire form to reflect any changes to the current data object or
      to the editor definitions.</Remarks></Method>
<Method name="repaintEditor" sortGroup="true" scope="public" id="core.lib:SmartForm!repaintEditor" sort="35" group="Methods" seq="0013"><Summary>Repaints a specified editor.</Summary><Parameters signature="method:: &lt;i&gt;this&lt;/i&gt;.&lt;b&gt;repaintEditor&lt;/b&gt;(&lt;i&gt;id&lt;/i&gt;) &amp;rarr; Boolean"><Param name="id">The id of the editor to repaint.</Param></Parameters><Return type="Boolean">Returns a boolean flag indicating whether the editor's visibility state has changed.</Return><Remarks>Use this method to repaint a specific editor to reflect any changes to the elements it contains.</Remarks></Method>
<Method name="repaintElement" sortGroup="true" scope="public" id="core.lib:SmartForm!repaintElement" sort="35" group="Methods" seq="0014"><Summary>Repaints a specified editor element.</Summary><Parameters signature="method:: &lt;i&gt;this&lt;/i&gt;.&lt;b&gt;repaintElement&lt;/b&gt;(&lt;i&gt;id&lt;/i&gt;) &amp;rarr; Boolean"><Param name="id">The id of the editor element to repaint.</Param></Parameters><Return type="Boolean">Returns a boolean flag indicating whether the element's visibility state has changed.</Return><Remarks>Use this method to repaint a specific editor element to reflect any changes to its value or state.</Remarks></Method>
<Method name="reset" sortGroup="true" scope="public" id="core.lib:SmartForm!reset" sort="35" group="Methods" seq="0015"><Summary>Resets the form by removing all editors and clearing the data object.</Summary><Parameters signature="method:: &lt;i&gt;this&lt;/i&gt;.&lt;b&gt;reset&lt;/b&gt;() &amp;rarr; void"></Parameters><Return></Return></Method>
<Method name="resetToDefaults" also="core.lib:SmartForm!defaulting" sortGroup="true" scope="public" id="core.lib:SmartForm!resetToDefaults" sort="35" group="Methods" seq="0016"><Summary>Resets GmlObject-bound properties of all visible elements to their default values.</Summary><Parameters signature="method:: &lt;i&gt;this&lt;/i&gt;.&lt;b&gt;resetToDefaults&lt;/b&gt;() &amp;rarr; void"></Parameters><Return></Return><SeeAlso>&lt;q ref=&quot;core.lib:SmartForm!defaulting&quot;&gt;defaulting&lt;/q&gt;</SeeAlso></Method>
</Topics>
</Component>