svn commit: samba r20927 - in branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse: .

idra at samba.org idra at samba.org
Sat Jan 20 23:53:18 GMT 2007


Author: idra
Date: 2007-01-20 23:53:17 +0000 (Sat, 20 Jan 2007)
New Revision: 20927

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20927

Log:

Remove leftovers
Add Docs


Modified:
   branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/LdifViewer.js


Changeset:
Modified: branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/LdifViewer.js
===================================================================
--- branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/LdifViewer.js	2007-01-20 23:38:46 UTC (rev 20926)
+++ branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/LdifViewer.js	2007-01-20 23:53:17 UTC (rev 20927)
@@ -7,9 +7,8 @@
  */
 
 /**
- * Swat LDB Browser class graphical user interface
+ * Ldif Viewer Class
  */
-
 qx.OO.defineClass("swat.module.ldbbrowse.LdifViewer", qx.ui.embed.HtmlEmbed,
 function()
 {
@@ -26,25 +25,35 @@
 
 qx.OO.addProperty({ name : "innerText", type : "string" });
 
-qx.Class.empty = {
-  html : "",
-  innerText : ""
+qx.Proto._update = function() {
+  this.setHtml("<pre>" + this.innerText + "</pre>");
 }
 
+/**
+ * Reset the ldif contents and return to an empty page
+ */
 qx.Proto.reset = function() {
   this.innerText = "";
   this.setHtml("");
 }
 
-qx.Proto._update = function() {
-  this.setHtml("<pre>" + this.innerText + "</pre>");
-}
-
+/**
+ * Add a comment to the ldif output
+ *
+ * @param aText {String}
+ *   A string to show up as an ldif Comment
+ */
 qx.Proto.appendComment = function(aText) {
   this.innerText = this.innerText + "# " + a Text + "\n\n";
   this._update();
 }
 
+/**
+ * Append an object to be shown
+ *
+ * @param o {Object}
+ *   An Object returned by an ldb search
+ */
 qx.Proto.appendObject = function(o) {
 
   // First print the Object name as comment



More information about the samba-cvs mailing list