Added: 
portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/dojo/src/xml/domUtil.js
URL: 
http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/dojo/src/xml/domUtil.js?rev=354516&view=auto
==============================================================================
--- 
portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/dojo/src/xml/domUtil.js
 (added)
+++ 
portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/dojo/src/xml/domUtil.js
 Tue Dec  6 11:29:56 2005
@@ -0,0 +1,74 @@
+dojo.provide("dojo.xml.domUtil");
+dojo.require("dojo.graphics.color");
+dojo.require("dojo.dom");
+dojo.require("dojo.style");
+
+dj_deprecated("dojo.xml.domUtil is deprecated, use dojo.dom instead");
+
+// for loading script:
+dojo.xml.domUtil = new function(){
+       this.nodeTypes = {
+               ELEMENT_NODE                  : 1,
+               ATTRIBUTE_NODE                : 2,
+               TEXT_NODE                     : 3,
+               CDATA_SECTION_NODE            : 4,
+               ENTITY_REFERENCE_NODE         : 5,
+               ENTITY_NODE                   : 6,
+               PROCESSING_INSTRUCTION_NODE   : 7,
+               COMMENT_NODE                  : 8,
+               DOCUMENT_NODE                 : 9,
+               DOCUMENT_TYPE_NODE            : 10,
+               DOCUMENT_FRAGMENT_NODE        : 11,
+               NOTATION_NODE                 : 12
+       }
+       
+       this.dojoml = "http://www.dojotoolkit.org/2004/dojoml";;
+       this.idIncrement = 0;
+       
+       this.getTagName = function(){return dojo.dom.getTagName.apply(dojo.dom, 
arguments);}
+       this.getUniqueId = function(){return 
dojo.dom.getUniqueId.apply(dojo.dom, arguments);}
+       this.getFirstChildTag = function() {return 
dojo.dom.getFirstChildElement.apply(dojo.dom, arguments);}
+       this.getLastChildTag = function() {return 
dojo.dom.getLastChildElement.apply(dojo.dom, arguments);}
+       this.getNextSiblingTag = function() {return 
dojo.dom.getNextSiblingElement.apply(dojo.dom, arguments);}
+       this.getPreviousSiblingTag = function() {return 
dojo.dom.getPreviousSiblingElement.apply(dojo.dom, arguments);}
+
+       this.forEachChildTag = function(node, unaryFunc) {
+               var child = this.getFirstChildTag(node);
+               while(child) {
+                       if(unaryFunc(child) == "break") { break; }
+                       child = this.getNextSiblingTag(child);
+               }
+       }
+
+       this.moveChildren = function() {return 
dojo.dom.moveChildren.apply(dojo.dom, arguments);}
+       this.copyChildren = function() {return 
dojo.dom.copyChildren.apply(dojo.dom, arguments);}
+       this.clearChildren = function() {return 
dojo.dom.removeChildren.apply(dojo.dom, arguments);}
+       this.replaceChildren = function() {return 
dojo.dom.replaceChildren.apply(dojo.dom, arguments);}
+
+       this.getStyle = function() {return 
dojo.style.getStyle.apply(dojo.style, arguments);}
+       this.toCamelCase = function() {return 
dojo.style.toCamelCase.apply(dojo.style, arguments);}
+       this.toSelectorCase = function() {return 
dojo.style.toSelectorCase.apply(dojo.style, arguments);}
+
+       this.getAncestors = function(){return 
dojo.dom.getAncestors.apply(dojo.dom, arguments);}
+       this.isChildOf = function() {return 
dojo.dom.isDescendantOf.apply(dojo.dom, arguments);}
+       this.createDocumentFromText = function() {return 
dojo.dom.createDocumentFromText.apply(dojo.dom, arguments);}
+
+       if(dojo.render.html.capable || dojo.render.svg.capable) {
+               this.createNodesFromText = function(txt, wrap){return 
dojo.dom.createNodesFromText.apply(dojo.dom, arguments);}
+       }
+
+       this.extractRGB = function(color) { return 
dojo.graphics.color.extractRGB(color); }
+       this.hex2rgb = function(hex) { return dojo.graphics.color.hex2rgb(hex); 
}
+       this.rgb2hex = function(r, g, b) { return 
dojo.graphics.color.rgb2hex(r, g, b); }
+
+       this.insertBefore = function() {return 
dojo.dom.insertBefore.apply(dojo.dom, arguments);}
+       this.before = this.insertBefore;
+       this.insertAfter = function() {return 
dojo.dom.insertAfter.apply(dojo.dom, arguments);}
+       this.after = this.insertAfter
+       this.insert = function(){return 
dojo.dom.insertAtPosition.apply(dojo.dom, arguments);}
+       this.insertAtIndex = function(){return 
dojo.dom.insertAtIndex.apply(dojo.dom, arguments);}
+       this.textContent = function () {return 
dojo.dom.textContent.apply(dojo.dom, arguments);}
+       this.renderedTextContent = function () {return 
dojo.dom.renderedTextContent.apply(dojo.dom, arguments);}
+       this.remove = function (node) {return 
dojo.dom.removeNode.apply(dojo.dom, arguments);}
+}
+

Added: 
portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/dojo/src/xml/htmlUtil.js
URL: 
http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/dojo/src/xml/htmlUtil.js?rev=354516&view=auto
==============================================================================
--- 
portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/dojo/src/xml/htmlUtil.js
 (added)
+++ 
portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/dojo/src/xml/htmlUtil.js
 Tue Dec  6 11:29:56 2005
@@ -0,0 +1,111 @@
+dojo.provide("dojo.xml.htmlUtil");
+dojo.require("dojo.html");
+dojo.require("dojo.style");
+dojo.require("dojo.dom");
+
+dj_deprecated("dojo.xml.htmlUtil is deprecated, use dojo.html instead");
+
+dojo.xml.htmlUtil = new function(){
+       this.styleSheet = dojo.style.styleSheet;
+       
+       this._clobberSelection = function(){return 
dojo.html.clearSelection.apply(dojo.html, arguments);}
+       this.disableSelect = function(){return 
dojo.html.disableSelection.apply(dojo.html, arguments);}
+       this.enableSelect = function(){return 
dojo.html.enableSelection.apply(dojo.html, arguments);}
+       
+       this.getInnerWidth = function(){return 
dojo.style.getInnerWidth.apply(dojo.style, arguments);}
+       
+       this.getOuterWidth = function(node){
+               dj_unimplemented("dojo.xml.htmlUtil.getOuterWidth");
+       }
+
+       this.getInnerHeight = function(){return 
dojo.style.getInnerHeight.apply(dojo.style, arguments);}
+
+       this.getOuterHeight = function(node){
+               dj_unimplemented("dojo.xml.htmlUtil.getOuterHeight");
+       }
+
+       this.getTotalOffset = function(){return 
dojo.style.getTotalOffset.apply(dojo.style, arguments);}
+       this.totalOffsetLeft = function(){return 
dojo.style.totalOffsetLeft.apply(dojo.style, arguments);}
+
+       this.getAbsoluteX = this.totalOffsetLeft;
+
+       this.totalOffsetTop = function(){return 
dojo.style.totalOffsetTop.apply(dojo.style, arguments);}
+       
+       this.getAbsoluteY = this.totalOffsetTop;
+
+       this.getEventTarget = function(){return 
dojo.html.getEventTarget.apply(dojo.html, arguments);}
+       this.getScrollTop = function() {return 
dojo.html.getScrollTop.apply(dojo.html, arguments);}
+       this.getScrollLeft = function() {return 
dojo.html.getScrollLeft.apply(dojo.html, arguments);}
+
+       this.evtTgt = this.getEventTarget;
+
+       this.getParentOfType = function(){return 
dojo.html.getParentOfType.apply(dojo.html, arguments);}
+       this.getAttribute = function(){return 
dojo.html.getAttribute.apply(dojo.html, arguments);}
+       this.getAttr = function (node, attr) { // for backwards compat (may 
disappear!!!)
+               dj_deprecated("dojo.xml.htmlUtil.getAttr is deprecated, use 
dojo.xml.htmlUtil.getAttribute instead");
+               return dojo.xml.htmlUtil.getAttribute(node, attr);
+       }
+       this.hasAttribute = function(){return 
dojo.html.hasAttribute.apply(dojo.html, arguments);}
+
+       this.hasAttr = function (node, attr) { // for backwards compat (may 
disappear!!!)
+               dj_deprecated("dojo.xml.htmlUtil.hasAttr is deprecated, use 
dojo.xml.htmlUtil.hasAttribute instead");
+               return dojo.xml.htmlUtil.hasAttribute(node, attr);
+       }
+       
+       this.getClass = function(){return dojo.html.getClass.apply(dojo.html, 
arguments)}
+       this.hasClass = function(){return dojo.html.hasClass.apply(dojo.html, 
arguments)}
+       this.prependClass = function(){return 
dojo.html.prependClass.apply(dojo.html, arguments)}
+       this.addClass = function(){return dojo.html.addClass.apply(dojo.html, 
arguments)}
+       this.setClass = function(){return dojo.html.setClass.apply(dojo.html, 
arguments)}
+       this.removeClass = function(){return 
dojo.html.removeClass.apply(dojo.html, arguments)}
+
+       // Enum type for getElementsByClass classMatchType arg:
+       this.classMatchType = {
+               ContainsAll : 0, // all of the classes are part of the node's 
class (default)
+               ContainsAny : 1, // any of the classes are part of the node's 
class
+               IsOnly : 2 // only all of the classes are part of the node's 
class
+       }
+
+       this.getElementsByClass = function() {return 
dojo.html.getElementsByClass.apply(dojo.html, arguments)}
+       this.getElementsByClassName = this.getElementsByClass;
+       
+       this.setOpacity = function() {return 
dojo.style.setOpacity.apply(dojo.style, arguments)}
+       this.getOpacity = function() {return 
dojo.style.getOpacity.apply(dojo.style, arguments)}
+       this.clearOpacity = function() {return 
dojo.style.clearOpacity.apply(dojo.style, arguments)}
+       
+       this.gravity = function(){return dojo.html.gravity.apply(dojo.html, 
arguments)}
+       
+       this.gravity.NORTH = 1;
+       this.gravity.SOUTH = 1 << 1;
+       this.gravity.EAST = 1 << 2;
+       this.gravity.WEST = 1 << 3;
+       
+       this.overElement = function(){return 
dojo.html.overElement.apply(dojo.html, arguments)}
+
+       this.insertCssRule = function(){return 
dojo.style.insertCssRule.apply(dojo.style, arguments)}
+       
+       this.insertCSSRule = function(selector, declaration, index){
+               dj_deprecated("dojo.xml.htmlUtil.insertCSSRule is deprecated, 
use dojo.xml.htmlUtil.insertCssRule instead");
+               return dojo.xml.htmlUtil.insertCssRule(selector, declaration, 
index);
+       }
+       
+       this.removeCssRule = function(){return 
dojo.style.removeCssRule.apply(dojo.style, arguments)}
+
+       this.removeCSSRule = function(index){
+               dj_deprecated("dojo.xml.htmlUtil.removeCSSRule is deprecated, 
use dojo.xml.htmlUtil.removeCssRule instead");
+               return dojo.xml.htmlUtil.removeCssRule(index);
+       }
+
+       this.insertCssFile = function(){return 
dojo.style.insertCssFile.apply(dojo.style, arguments)}
+
+       this.insertCSSFile = function(URI, doc, checkDuplicates){
+               dj_deprecated("dojo.xml.htmlUtil.insertCSSFile is deprecated, 
use dojo.xml.htmlUtil.insertCssFile instead");
+               return dojo.xml.htmlUtil.insertCssFile(URI, doc, 
checkDuplicates);
+       }
+
+       this.getBackgroundColor = function() {return 
dojo.style.getBackgroundColor.apply(dojo.style, arguments)}
+
+       this.getUniqueId = function() { return dojo.dom.getUniqueId(); }
+
+       this.getStyle = function() {return 
dojo.style.getStyle.apply(dojo.style, arguments)}
+}

Added: 
portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/dojo/src/xml/svgUtil.js
URL: 
http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/dojo/src/xml/svgUtil.js?rev=354516&view=auto
==============================================================================
--- 
portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/dojo/src/xml/svgUtil.js
 (added)
+++ 
portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/dojo/src/xml/svgUtil.js
 Tue Dec  6 11:29:56 2005
@@ -0,0 +1,22 @@
+dojo.provide("dojo.xml.svgUtil");
+// FIXME: add imports for deps!
+
+dojo.xml.svgUtil = new function(){
+
+       this.getInnerWidth = function(node){
+               // FIXME: need to find out from dylan how to 
+       }
+
+       this.getOuterWidth = function(node){
+               
+       }
+
+       this.getInnerHeight = function(node){
+               
+       }
+
+       this.getOuterHeight = function(node){
+               
+       }
+
+}

Added: 
portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/dojo/test_Layout.html
URL: 
http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/dojo/test_Layout.html?rev=354516&view=auto
==============================================================================
--- 
portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/dojo/test_Layout.html 
(added)
+++ 
portals/jetspeed-2/trunk/applications/j2-admin/src/webapp/dojo/test_Layout.html 
Tue Dec  6 11:29:56 2005
@@ -0,0 +1,133 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
"http://www.w3.org/TR/html4/strict.dtd";>
+<html>
+<head>
+<title>Application facade Demo</title>
+
+<script type="text/javascript">
+
+       var djConfig = {isDebug: true};
+
+       //djConfig.debugAtAllCosts = true;
+
+</script>
+<script type="text/javascript" src="dojo.js"></script>
+<script language="JavaScript" type="text/javascript">
+
+       dojo.require("dojo.widget.HtmlLayoutPane");
+       dojo.require("dojo.widget.HtmlSplitPane");
+       dojo.require("dojo.widget.HtmlColorPalette");
+       dojo.require("dojo.widget.Accordion");
+       dojo.require("dojo.jetspeed.JetspeedAjax");
+       dojo.hostenv.writeIncludes();   
+       
+</script>
+<script type="text/javascript">
+
+       function byId(id)
+       {
+               return document.getElementById(id);
+       }
+
+       function init()
+       {
+               portlets = byId("portlets");
+               alert("portlets = " + portlets);
+               dojo.jetspeed.getFragments(portlets);
+       }
+</script>
+  <style>
+    html, body{        
+               width: 100%;    /* make the body expand to fill the visible 
window */
+               height: 100%;
+               overflow: hidden;       /* erase window level scrollbars */
+               /*border: dotted blue;  /* for debugging */
+               padding: 0 0 0 0;
+               margin: 0 0 0 0;
+    }
+   </style>
+</head>
+<body >
+<div dojoType="LayoutPane"
+       layoutChildPriority='top-bottom'
+       style="border: 2px solid black; width: 100%; height: 100%;">
+       <div dojoType="LayoutPane" layoutAlign="top" style="background-color: 
#274383; color: white;">
+               <b>Jetspeed Site Customizer</b>
+       </div>
+       <div dojoType="LayoutPane" layoutAlign="bottom" 
style="background-color: #274383; color: white;">
+               Status:
+       </div>
+       <div dojoType="LayoutPane" layoutAlign="client">
+               <div dojoType="SplitPane"
+                       orientation="horizontal"
+                       sizerWidth="5"
+                       activeSizing="0"
+                       style="width: 100%; height: 100%;"
+               >
+               
+<!-- Folders 
-------------------------------------------------------------------- -->        
  
+                       <div dojoType="SplitPanePanel" sizeMin="20" 
sizeShare="20">
+                           <b>Site</b>
+                               <div dojoType="Accordion"
+                                       orientation="vertical"
+                                       activeSizing="1"
+                                       style="border: 2px solid black; float: 
left; margin-right: 30px;  width: 300px; height: 600px;"
+                               >
+                                       <div dojoType="AccordionPanel" 
open="true">
+                                               <div dojoType="Label">
+                                                 Folders       
+                                               </div>
+                                               <div dojoType="InitialContent">
+                                                       this is some initial 
content
+                                               </div>
+                                               
+                                   General Folders go here...
+                               </div>
+                                       <div dojoType="AccordionPanel" 
open="true">
+                                               <div dojoType="Label">
+                                                 Users 
+                                               </div>
+                                   Users go here...
+                               </div>
+                                       <div dojoType="AccordionPanel" 
open="true">
+                                               <div dojoType="Label">
+                                                 Roles
+                                               </div>
+                                   Roles go here...
+                               </div>
+                                       <div dojoType="AccordionPanel" 
open="true">
+                                               <div dojoType="Label">
+                                                 Groups
+                                               </div>
+                                   Groups go here...
+                               </div>                          
+                           </div>                              
+                       </div>
+                       
+<!-- Portlets 
-------------------------------------------------------------------- -->        
                         
+                       <div dojoType="SplitPanePanel" sizeMin="20" 
sizeShare="20">
+                           <b>Portlets</b>
+                               <select id="portlets" name="portlets">
+                                 <option name='1'>one</option>
+                               </select>
+                       </div>                  
+                       <div dojoType="SplitPanePanel" sizeMin="50" 
sizeShare="50">
+                               <div dojoType="SplitPane"
+                                       orientation="vertical"
+                                       sizerWidth="5"
+                                       activeSizing="0"
+                                       style="width: 100%; height: 100%;"
+                               >
+                                       <div dojoType="SplitPanePanel" 
sizeMin="20" sizeShare="70">
+                                               Page Customization
+                                       </div>
+                                       <div dojoType="SplitPanePanel" 
sizeMin="20" sizeShare="30">
+                                               Pages
+                                               <div 
dojoType="ColorPalette"></div>
+                                       </div>
+                               </div>
+                       </div>
+               </div>
+       </div>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: portals/jetspeed-2/trunk/src/webapp/WEB-INF/pages/customizer.psml
URL: 
http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/src/webapp/WEB-INF/pages/customizer.psml?rev=354516&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/src/webapp/WEB-INF/pages/customizer.psml (added)
+++ portals/jetspeed-2/trunk/src/webapp/WEB-INF/pages/customizer.psml Tue Dec  
6 11:29:56 2005
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright 2004 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<page >
+  <defaults
+     hidden='true'
+     skin="light-blue"
+     layout-decorator="clear"
+     portlet-decorator="clear"
+  />
+  <title>Customizer</title>
+  <fragment id="customizer-2.0" type="layout" 
name="jetspeed-layouts::VelocityOneColumnNoActions">
+  
+    <fragment id="customizer-2.1" type="portlet" 
name="j2-admin::CustomizerPortlet"/>
+
+  </fragment>
+      
+</page>
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to