[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/include/fckeditor/editor/_source/classes/ -> fckcontextmenuseparator.js (source)

   1  /*
   2   * FCKeditor - The text editor for internet
   3   * Copyright (C) 2003-2005 Frederico Caldeira Knabben
   4   * 
   5   * Licensed under the terms of the GNU Lesser General Public License:
   6   *         http://www.opensource.org/licenses/lgpl-license.php
   7   * 
   8   * For further information visit:
   9   *         http://www.fckeditor.net/
  10   * 
  11   * "Support Open Source software. What about a donation today?"
  12   * 
  13   * File Name: fckcontextmenuseparator.js
  14   *     FCKContextMenuSeparator Class: represents a separator in the toolbar.
  15   * 
  16   * File Authors:
  17   *         Frederico Caldeira Knabben (fredck@fckeditor.net)
  18   */
  19  
  20  var FCKContextMenuSeparator = function()
  21  {
  22  }
  23  
  24  FCKContextMenuSeparator.prototype.CreateTableRow = function( targetTable )
  25  {
  26      // Creates the <TR> element.
  27      this._Row = targetTable.insertRow(-1) ;
  28      this._Row.className = 'CM_Separator' ;
  29      
  30      var oCell = this._Row.insertCell(-1) ;
  31      oCell.className = 'CM_Icon' ;
  32      
  33      var oDoc = targetTable.ownerDocument || targetTable.document ;
  34      
  35      oCell = this._Row.insertCell(-1) ;
  36      oCell.className = 'CM_Label' ;
  37      oCell.appendChild( oDoc.createElement( 'DIV' ) ).className = 'CM_Separator_Line' ;
  38  }
  39  
  40  FCKContextMenuSeparator.prototype.SetVisible = function( isVisible )
  41  {
  42      this._Row.style.display = isVisible ? '' : 'none' ;
  43  }
  44  
  45  FCKContextMenuSeparator.prototype.RefreshState = function()
  46  {
  47      // Do nothing... its state doesn't change.
  48  } 
  49  
  50  /*
  51  Sample output.
  52  -----------------------------------------
  53  <tr class="CM_Separator">
  54      <td class="CM_Icon"></td>
  55      <td class="CM_Label"><div></div></td>
  56  </tr>
  57  */


Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7