home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 May / PCWorld_2003-05_cd.bin / Komunik / phoenix / chrome / toolkit.jar / content / global / bindings / groupbox.xml < prev    next >
Extensible Markup Language  |  2002-04-13  |  2KB  |  51 lines

  1. <?xml version="1.0"?>
  2.  
  3. <bindings id="groupboxBindings"
  4.    xmlns="http://www.mozilla.org/xbl"
  5.    xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  6.    xmlns:xbl="http://www.mozilla.org/xbl">
  7.  
  8.   <binding id="groupbox-base">
  9.     <resources>
  10.       <stylesheet src="chrome://global/skin/groupbox.css"/>
  11.     </resources>
  12.   </binding>
  13.  
  14.   <binding id="groupbox" extends="chrome://global/content/bindings/groupbox.xml#groupbox-base">
  15.     <content>
  16.       <xul:hbox class="groupbox-title" align="center" pack="start">
  17.         <children includes="caption"/>
  18.       </xul:hbox>
  19.       <xul:box flex="1" class="groupbox-body" xbl:inherits="orient,align,pack">
  20.         <children/>
  21.       </xul:box>
  22.     </content>
  23.  
  24.     <implementation implements="nsIAccessibleProvider">
  25.       <property name="accessible">
  26.         <getter>
  27.           <![CDATA[
  28.             var accService = Components.classes["@mozilla.org/accessibilityService;1"].getService(Components.interfaces.nsIAccessibilityService);
  29.             return accService.createXULGroupboxAccessible(this);
  30.           ]]>
  31.         </getter>
  32.       </property>
  33.     </implementation>
  34.   </binding>
  35.  
  36.   <binding id="caption" extends="chrome://global/content/bindings/general.xml#basetext">
  37.     <resources>
  38.       <stylesheet src="chrome://global/skin/groupbox.css"/>
  39.     </resources>
  40.     
  41.     <content>
  42.       <children>
  43.         <xul:image class="caption-icon" xbl:inherits="src=image"/>
  44.         <xul:label class="caption-text" flex="1"
  45.                    xbl:inherits="default,value=label,crop,accesskey"/>
  46.       </children>
  47.     </content>
  48.   </binding>
  49.  
  50. </bindings>
  51.