<?xml version="1.0" encoding="Windows-1255" ?><Component name="Toolbar" id="core.lib:Toolbar" sort="24" urn="core.lib:Toolbar.htc" toc="\"><Summary>A toolbar/menubar element.</Summary><Copyright>(c) SAP AG 2003-2006. All rights reserved.</Copyright>
<Topics>
<Property name="current" access="RO" sortGroup="true" scope="public" id="core.lib:Toolbar!current" sort="34" group="Properties" seq="0000"><Summary>Gets the key of the currently displayed toolbar, if any.</Summary></Property>
<Property name="glyph" default="TABSTRIP" access="RW" sortGroup="true" scope="public" id="core.lib:Toolbar!glyph" sort="34" group="Properties" seq="0001"><Summary>Gets or sets the control styling glyph.</Summary></Property>
<Property name="groupMode" type="ALL|ONE|NONE" access="RW" sortGroup="true" scope="public" id="core.lib:Toolbar!groupMode" sort="34" group="Properties" seq="0002"><Summary>Gets or sets the buttons grouping mode.</Summary><Remarks>Property values:
      &lt;ul&gt;&lt;li&gt;ALL:  All button groups can be expanded / collapsed independently &lt;/li&gt;&lt;li&gt;ONE:  Exactly one button groups can be expanded at any time &lt;/li&gt;&lt;li&gt;NONE: The button groups are always expanded &lt;/li&gt;&lt;/ul&gt;</Remarks></Property>
<Method name="build" sortGroup="true" scope="public" id="core.lib:Toolbar!build" sort="35" group="Methods" seq="0003"><Summary>Builds a toolbar from the given arguments.</Summary><Parameters signature="method:: &lt;i&gt;this&lt;/i&gt;.&lt;b&gt;build&lt;/b&gt;(&lt;i&gt;items&lt;/i&gt;, &lt;i&gt;key&lt;/i&gt;, &lt;i&gt;showIcon&lt;/i&gt;, &lt;i&gt;showText&lt;/i&gt;, &lt;i&gt;exclude&lt;/i&gt;) &amp;rarr; void"><Param name="items" type="itemObj[]">The toolbar items (see remarks).</Param><Param name="key" type="String">Toolbar key that can be later used for selectively showing/hiding the toolbar.</Param><Param name="showIcon" type="Boolean" default="false">Indicates whether to display button icons.</Param><Param name="showText" type="Boolean" default="false">Indicates whether to display button labels.</Param><Param name="exclude" default="" type="RegExp">A regular expression for defining which toolbar items should be excluded from view.</Param></Parameters><Return type=""></Return><Remarks>The &lt;i&gt;items&lt;/i&gt; parameter is an array of objects, each representing a toolbar button, group, or separator.
      The order of items in the list defines their display and grouping order in the toolbar.
      Each item is an object of the following structure:
      &lt;table class=&quot;BOTH&quot;&gt;&lt;tr&gt;&lt;td class=&quot;H V&quot;&gt;Name &lt;/td&gt;&lt;td class=H&gt;Type &lt;/td&gt;&lt;td class=H&gt;Description &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=V&gt;type &lt;/td&gt;&lt;td&gt;enum &lt;/td&gt;&lt;td&gt;Values: GRP=group start, MNU=menu button, BTN=push button, SPC=separator, INP=input field &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=V&gt;id &lt;/td&gt;&lt;td&gt;String &lt;/td&gt;&lt;td&gt;Unique identifier within the toolbar &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=V&gt;text &lt;/td&gt;&lt;td&gt;String &lt;/td&gt;&lt;td&gt;Text of label to display (type=GRP &lt;/td&gt;&lt;td&gt;BTN &lt;/td&gt;&lt;td&gt;MNU) &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=V&gt;icon &lt;/td&gt;&lt;td&gt;String &lt;/td&gt;&lt;td&gt;Url of icon to display, relative to dev&lt;code&gt;skin:visuals.buttons&lt;/code&gt; (type=BTN) &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=V&gt;menu &lt;/td&gt;&lt;td&gt;String &lt;/td&gt;&lt;td&gt;Name of popup menu associated with a menu button (type=MNU) &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=V&gt;signal &lt;/td&gt;&lt;td&gt;String &lt;/td&gt;&lt;td&gt;Signal to raise when a button is clicked (type=BTN &lt;/td&gt;&lt;td&gt;INP) &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=V&gt;show &lt;/td&gt;&lt;td&gt;Boolean &lt;/td&gt;&lt;td&gt;Indicates whether to initially show (expand) a group (type=GRP) &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=V&gt;style &lt;/td&gt;&lt;td&gt;String &lt;/td&gt;&lt;td&gt;Additional CSS attributes to apply to the toolbar item &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</Remarks></Method>
<Method name="clear" sortGroup="true" scope="public" id="core.lib:Toolbar!clear" sort="35" group="Methods" seq="0004"><Summary>Clears the toolbar.</Summary><Parameters signature="method:: &lt;i&gt;this&lt;/i&gt;.&lt;b&gt;clear&lt;/b&gt;() &amp;rarr; void"></Parameters><Return></Return></Method>
<Method name="getItem" sortGroup="true" scope="public" id="core.lib:Toolbar!getItem" sort="35" group="Methods" seq="0005"><Summary>Returns a specified button object.</Summary><Parameters signature="method:: &lt;i&gt;this&lt;/i&gt;.&lt;b&gt;getItem&lt;/b&gt;(&lt;i&gt;id&lt;/i&gt;) &amp;rarr; HtmlElement"><Param name="id">Id of the requested button.</Param></Parameters><Return type="HtmlElement">The requested button object.</Return></Method>
<Method name="hide" sortGroup="true" scope="public" id="core.lib:Toolbar!hide" sort="35" group="Methods" seq="0006"><Summary>Hides the toolbar with the given key.</Summary><Parameters signature="method:: &lt;i&gt;this&lt;/i&gt;.&lt;b&gt;hide&lt;/b&gt;(&lt;i&gt;key&lt;/i&gt;) &amp;rarr; Boolean"><Param name="key" default="" type="String">Key of toolbar to hide; if omitted, the current toolbar will be hidden.</Param></Parameters><Return type="Boolean">Returns true if the specified toolbar was found and hidden; otherwise, returns false.</Return></Method>
<Method name="show" sortGroup="true" scope="public" id="core.lib:Toolbar!show" sort="35" group="Methods" seq="0007"><Summary>Shows the toolbar with the given key.</Summary><Parameters signature="method:: &lt;i&gt;this&lt;/i&gt;.&lt;b&gt;show&lt;/b&gt;(&lt;i&gt;key&lt;/i&gt;) &amp;rarr; Boolean"><Param name="key" type="String">Key of toolbar to show.</Param></Parameters><Return type="Boolean">Returns true if the specified toolbar was found and shown; otherwise, returns false.</Return></Method>
<Method name="toggleItem" sortGroup="true" scope="public" id="core.lib:Toolbar!toggleItem" sort="35" group="Methods" seq="0008"><Summary>Toggles a specified button between &lt;code&gt;normal&lt;/code&gt; and &lt;code&gt;pressed&lt;/code&gt; states.</Summary><Parameters signature="method:: &lt;i&gt;this&lt;/i&gt;.&lt;b&gt;toggleItem&lt;/b&gt;(&lt;i&gt;id&lt;/i&gt;) &amp;rarr; void"><Param name="id">Id of button to toggle.</Param></Parameters><Return></Return></Method>
</Topics>
</Component>