summaryrefslogtreecommitdiff
path: root/webapps/swat
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2007-01-20 23:53:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:43:54 -0500
commit7fba2dbf9a7b387fb5a975b528d880da55da1560 (patch)
tree757559797f4df0aab915195f65a9ac4fe0c67422 /webapps/swat
parentdfb9407c963025f102f508d9c006f43fd67ff9aa (diff)
downloadsamba-7fba2dbf9a7b387fb5a975b528d880da55da1560.tar.gz
samba-7fba2dbf9a7b387fb5a975b528d880da55da1560.tar.bz2
samba-7fba2dbf9a7b387fb5a975b528d880da55da1560.zip
r20927: Remove leftovers
Add Docs (This used to be commit 4bb77dd918b516efc3a9cd6b07adb47849e1ded7)
Diffstat (limited to 'webapps/swat')
-rw-r--r--webapps/swat/source/class/swat/module/ldbbrowse/LdifViewer.js27
1 files changed, 18 insertions, 9 deletions
diff --git a/webapps/swat/source/class/swat/module/ldbbrowse/LdifViewer.js b/webapps/swat/source/class/swat/module/ldbbrowse/LdifViewer.js
index 6b7819ae16..5732b9427f 100644
--- a/webapps/swat/source/class/swat/module/ldbbrowse/LdifViewer.js
+++ b/webapps/swat/source/class/swat/module/ldbbrowse/LdifViewer.js
@@ -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 @@ function()
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