home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / AIMP2 / aimp_2.61.583.exe / $TEMP / YandexPackSetup.msi / fil2D9F94AF6028AEB7DF4E5F67FEE303C8 < prev    next >
Extensible Markup Language  |  2010-07-12  |  4KB  |  117 lines

  1. <?xml version="1.0"?>
  2. <!DOCTYPE bindings [
  3.     <!ENTITY % locale SYSTEM "chrome://yasearch/locale/package-management/package-management.dtd">
  4.     %locale;
  5. ]>
  6.  
  7. <bindings xmlns="http://www.mozilla.org/xbl"
  8.           xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  9.           xmlns:xbl="http://www.mozilla.org/xbl"
  10.           xmlns:html="http://www.w3.org/1999/xhtml">
  11.     
  12.     <binding id="head"
  13.              inheritstyle="false">
  14.         <resources>
  15.             <stylesheet src="head.css"/>
  16.             <image src="exclamation.png"/>
  17.         </resources>
  18.         
  19.         <content>
  20.             <xul:hbox class="box">
  21.                 <xul:vbox class="image">
  22.                     <xul:image xbl:inherits="src=image" onerror="this.removeAttribute('src');"/>
  23.                 </xul:vbox>
  24.                 <xul:vbox class="content">
  25.                     <xul:label class="title" xbl:inherits="crop"/>
  26.                     <xul:label class="description" xbl:inherits="crop"/>
  27.                 </xul:vbox>
  28.             </xul:hbox>
  29.         </content>
  30.         
  31.         <implementation>
  32.             <field name="_nodeTitle">document.getAnonymousElementByAttribute(this, "class", "title")</field>
  33.             <field name="_nodeDescription">document.getAnonymousElementByAttribute(this, "class", "description")</field>
  34.             
  35.             <constructor><![CDATA[
  36.                 this.crop = this.getAttribute("crop") || null;
  37.                 this.title = this.getAttribute("title") || "";
  38.                 this.description = this.getAttribute("description") || "";
  39.             ]]></constructor>
  40.             
  41.             <property name="image">
  42.                 <getter><![CDATA[
  43.                     return this.getAttribute("image");
  44.                 ]]></getter>
  45.                 <setter><![CDATA[
  46.                     if (val)
  47.                         this.setAttribute("image", val);
  48.                     else
  49.                         this.removeAttribute("image");
  50.                     return val;
  51.                 ]]></setter>
  52.             </property>
  53.             
  54.             <property name="title">
  55.                 <getter><![CDATA[
  56.                     return this._title;
  57.                 ]]></getter>
  58.                 <setter><![CDATA[
  59.                     this.set(this._nodeTitle, this._title = val);
  60.                     return val;
  61.                 ]]></setter>
  62.             </property>
  63.             
  64.             <property name="description">
  65.                 <getter><![CDATA[
  66.                     return this._description;
  67.                 ]]></getter>
  68.                 <setter><![CDATA[
  69.                     this.set(this._nodeDescription, this._description = val);
  70.                     return val;
  71.                 ]]></setter>
  72.             </property>
  73.             
  74.             <property name="crop">
  75.                 <getter><![CDATA[
  76.                     return this.getAttribute("crop") || null;
  77.                 ]]></getter>
  78.                 <setter><![CDATA[
  79.                     if (val)
  80.                         this.setAttribute("crop", val);
  81.                     else
  82.                         this.removeAttribute("crop");
  83.                     return val;
  84.                 ]]></setter>
  85.             </property>
  86.             
  87.             <property name="info">
  88.                 <getter><![CDATA[
  89.                     return this._info;
  90.                 ]]></getter>
  91.                 <setter><![CDATA[
  92.                     this._info = val;
  93.                     this.image = this._info.image;
  94.                     this.title = this._info.title;
  95.                     this.description = this._info.description;
  96.                     return val;
  97.                 ]]></setter>
  98.             </property>
  99.             
  100.             <method name="set">
  101.                 <parameter name="node"/>
  102.                 <parameter name="value"/>
  103.                 <body><![CDATA[
  104.                     if (this.crop) {
  105.                         node.textContent = "";
  106.                         node.setAttribute("value", value);
  107.                     }
  108.                     else {
  109.                         node.textContent = value;
  110.                         node.removeAttribute("value");
  111.                     }
  112.                 ]]></body>
  113.             </method>
  114.         </implementation>
  115.     </binding>
  116. </bindings>
  117.