You are viewing a plain text version of this content. The canonical link for it is here.
Posted to portalapps-dev@portals.apache.org by wo...@apache.org on 2010/05/03 18:18:57 UTC
svn commit: r940500 - in
/portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui:
csre-base.js csre-desktop.js csre-widget.js csre.js
Author: woonsan
Date: Mon May 3 16:18:57 2010
New Revision: 940500
URL: http://svn.apache.org/viewvc?rev=940500&view=rev
Log:
CSRE: splitting modules.
Added:
portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre-base.js (with props)
portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre-widget.js (with props)
Modified:
portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre-desktop.js
portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre.js
Added: portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre-base.js
URL: http://svn.apache.org/viewvc/portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre-base.js?rev=940500&view=auto
==============================================================================
--- portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre-base.js (added)
+++ portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre-base.js Mon May 3 16:18:57 2010
@@ -0,0 +1,167 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ *
+ * @version $Id$
+ */
+
+YUI.add('csre-base', function(Y) {
+
+ /**
+ * CSRE JavaScript Framework
+ * @module csre
+ */
+ Y.namespace("CSRE");
+
+ /**
+ * Create a component to represent a UI block.
+ * @class CSRE.Component
+ * @extends Base
+ * @constructor
+ */
+ Y.CSRE.Component = function() {
+ Y.CSRE.Component.superclass.constructor.apply(this, arguments);
+ };
+
+ Y.mix(Y.CSRE.Component, {
+ NAME : 'Component',
+ });
+
+ Y.CSRE.Component.ATTRS = {
+ /**
+ * The node object for this component.
+ * @attribute node
+ * @type Node
+ */
+ node: {
+ setter: function(node) {
+ node = Y.one(node);
+ this._node = node;
+ if (!node) {
+ }
+ return node;
+ },
+ getter: function() {
+ return this._node;
+ }
+ },
+ name: {
+ setter: function(name) {
+ this._name = name;
+ return name;
+ },
+ getter: function() {
+ return this._name;
+ }
+ }
+ };
+
+ Y.extend(Y.CSRE.Component, Y.Base, {
+ /**
+ * Initializer lifecycle implementation.
+ * @method initializer
+ * @param {Object} config Configuration object with property name/value pairs.
+ */
+ initializer : function(config) {
+ },
+
+ /**
+ * Destructor lifecycle implementation.
+ * @method destructor
+ */
+ destructor: function() {
+ }
+ });
+
+ /**
+ * Create a layout to represent a layout of a workspace.
+ * @class CSRE.Layout
+ * @extends Base
+ * @constructor
+ */
+ Y.CSRE.Layout = function() {
+ Y.CSRE.Layout.superclass.constructor.apply(this, arguments);
+ };
+
+ Y.mix(Y.CSRE.Layout, {
+ NAME : 'Layout',
+ });
+
+ Y.extend(Y.CSRE.Layout, Y.CSRE.Component, {
+ /**
+ * Initializer lifecycle implementation.
+ * @method initializer
+ * @param {Object} config Configuration object with property name/value pairs.
+ */
+ initializer : function(config) {
+ },
+
+ /**
+ * Destructor lifecycle implementation.
+ * @method destructor
+ */
+ destructor: function() {
+ }
+ });
+
+ /**
+ * Create a container to to hold components
+ * @class CSRE.Container
+ * @extends Base
+ * @constructor
+ */
+ Y.CSRE.Container = function() {
+ Y.CSRE.Container.superclass.constructor.apply(this, arguments);
+ };
+
+ Y.mix(Y.CSRE.Container, {
+ NAME : 'Container',
+ });
+
+ Y.CSRE.Container.ATTRS = {
+ /**
+ * The layout object for this container.
+ * @attribute layout
+ * @type Y.CSRE.Layout
+ */
+ layout: {
+ setter: function(layout) {
+ this._layout = layout;
+ return layout;
+ },
+ getter: function() {
+ return this._layout;
+ }
+ }
+ };
+
+ Y.extend(Y.CSRE.Container, Y.CSRE.Component, {
+ /**
+ * Initializer lifecycle implementation.
+ * @method initializer
+ * @param {Object} config Configuration object with property name/value pairs.
+ */
+ initializer : function(config) {
+ },
+
+ /**
+ * Destructor lifecycle implementation.
+ * @method destructor
+ */
+ destructor: function() {
+ }
+ });
+
+}, '3.1.0', {requires:['base-base']});
Propchange: portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre-base.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre-base.js
------------------------------------------------------------------------------
svn:keywords = Id
Propchange: portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre-base.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Modified: portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre-desktop.js
URL: http://svn.apache.org/viewvc/portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre-desktop.js?rev=940500&r1=940499&r2=940500&view=diff
==============================================================================
--- portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre-desktop.js (original)
+++ portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre-desktop.js Mon May 3 16:18:57 2010
@@ -26,176 +26,6 @@ YUI.add('csre-desktop', function(Y) {
Y.namespace("CSRE");
/**
- * Create a component to represent a UI block.
- * @class CSRE.Component
- * @extends Base
- * @constructor
- */
- Y.CSRE.Component = function() {
- Y.CSRE.Component.superclass.constructor.apply(this, arguments);
- };
-
- Y.mix(Y.CSRE.Component, {
- NAME : 'Component',
- });
-
- Y.CSRE.Component.ATTRS = {
- /**
- * The node object for this component.
- * @attribute node
- * @type Node
- */
- node: {
- setter: function(node) {
- node = Y.one(node);
- this._node = node;
- if (!node) {
- }
- return node;
- },
- getter: function() {
- return this._node;
- }
- },
- name: {
- setter: function(name) {
- this._name = name;
- return name;
- },
- getter: function() {
- return this._name;
- }
- }
- };
-
- Y.extend(Y.CSRE.Component, Y.Base, {
- /**
- * Initializer lifecycle implementation.
- * @method initializer
- * @param {Object} config Configuration object with property name/value pairs.
- */
- initializer : function(config) {
- },
-
- /**
- * Destructor lifecycle implementation.
- * @method destructor
- */
- destructor: function() {
- }
- });
-
- /**
- * Create a layout to represent a layout of a workspace.
- * @class CSRE.Layout
- * @extends Base
- * @constructor
- */
- Y.CSRE.Layout = function() {
- Y.CSRE.Layout.superclass.constructor.apply(this, arguments);
- };
-
- Y.mix(Y.CSRE.Layout, {
- NAME : 'Layout',
- });
-
- Y.extend(Y.CSRE.Layout, Y.CSRE.Component, {
- /**
- * Initializer lifecycle implementation.
- * @method initializer
- * @param {Object} config Configuration object with property name/value pairs.
- */
- initializer : function(config) {
- },
-
- /**
- * Destructor lifecycle implementation.
- * @method destructor
- */
- destructor: function() {
- }
- });
-
- /**
- * Create a container to to hold components
- * @class CSRE.Container
- * @extends Base
- * @constructor
- */
- Y.CSRE.Container = function() {
- Y.CSRE.Container.superclass.constructor.apply(this, arguments);
- };
-
- Y.mix(Y.CSRE.Container, {
- NAME : 'Container',
- });
-
- Y.CSRE.Container.ATTRS = {
- /**
- * The layout object for this container.
- * @attribute layout
- * @type Y.CSRE.Layout
- */
- layout: {
- setter: function(layout) {
- this._layout = layout;
- return layout;
- },
- getter: function() {
- return this._layout;
- }
- }
- };
-
- Y.extend(Y.CSRE.Container, Y.CSRE.Component, {
- /**
- * Initializer lifecycle implementation.
- * @method initializer
- * @param {Object} config Configuration object with property name/value pairs.
- */
- initializer : function(config) {
- },
-
- /**
- * Destructor lifecycle implementation.
- * @method destructor
- */
- destructor: function() {
- }
- });
-
- /**
- * Create a widget to represent a UI block.
- * @class CSRE.Widget
- * @extends Base
- * @constructor
- */
- Y.CSRE.Widget = function() {
- Y.CSRE.Widget.superclass.constructor.apply(this, arguments);
- };
-
- Y.mix(Y.CSRE.Widget, {
- NAME : 'Widget',
- });
-
- Y.extend(Y.CSRE.Widget, Y.CSRE.Component, {
- /**
- * Initializer lifecycle implementation.
- * @method initializer
- * @param {Object} config Configuration object with property name/value pairs.
- */
- initializer : function(config) {
- },
-
- /**
- * Destructor lifecycle implementation.
- * @method destructor
- */
- destructor: function() {
- }
- });
-
- /**
* Create a workspace to represent a unit of the screen.
* @class CSRE.Workspace
* @extends Base
@@ -357,10 +187,11 @@ YUI.add('csre-desktop', function(Y) {
* @method createWidget
*/
createWidget: function() {
+ Y.log("Y.CSRE.Widget: " + Y.CSRE.Widget);
var widget = new Y.CSRE.Widget();
return widget;
}
});
-}, '3.1.0', {requires:['base-base']});
+}, '3.1.0', {requires:['csre-base', 'csre-widget', 'base-base']});
Added: portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre-widget.js
URL: http://svn.apache.org/viewvc/portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre-widget.js?rev=940500&view=auto
==============================================================================
--- portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre-widget.js (added)
+++ portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre-widget.js Mon May 3 16:18:57 2010
@@ -0,0 +1,59 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ *
+ * @version $Id$
+ */
+
+YUI.add('csre-widget', function(Y) {
+
+ /**
+ * CSRE JavaScript Framework
+ * @module csre
+ */
+ Y.namespace("CSRE");
+
+ /**
+ * Create a widget to represent a UI block.
+ * @class CSRE.Widget
+ * @extends Base
+ * @constructor
+ */
+ Y.CSRE.Widget = function() {
+ Y.CSRE.Widget.superclass.constructor.apply(this, arguments);
+ };
+
+ Y.mix(Y.CSRE.Widget, {
+ NAME : 'Widget',
+ });
+
+ Y.extend(Y.CSRE.Widget, Y.Base, {
+ /**
+ * Initializer lifecycle implementation.
+ * @method initializer
+ * @param {Object} config Configuration object with property name/value pairs.
+ */
+ initializer : function(config) {
+ },
+
+ /**
+ * Destructor lifecycle implementation.
+ * @method destructor
+ */
+ destructor: function() {
+ }
+ });
+
+}, '3.1.0', {requires:['csre-base', 'base-base']});
Propchange: portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre-widget.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre-widget.js
------------------------------------------------------------------------------
svn:keywords = Id
Propchange: portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre-widget.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Modified: portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre.js
URL: http://svn.apache.org/viewvc/portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre.js?rev=940500&r1=940499&r2=940500&view=diff
==============================================================================
--- portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre.js (original)
+++ portals/applications/sandbox/csre/trunk/src/main/webapp/javascript/csre/yui/csre.js Mon May 3 16:18:57 2010
@@ -26,7 +26,9 @@ var csre_yui = {
useBrowserConsole: true,
config: csre_config,
modules: {
- 'csre-desktop': { fullpath: csre_config.base + "/javascript/csre/yui/csre-desktop.js" }
+ 'csre-base': { fullpath: csre_config.base + "/javascript/csre/yui/csre-base.js" },
+ 'csre-widget': { fullpath: csre_config.base + "/javascript/csre/yui/csre-widget.js", requires: ['csre-base', 'csre-widget'] },
+ 'csre-desktop': { fullpath: csre_config.base + "/javascript/csre/yui/csre-desktop.js", requires: ['csre-base', 'csre-widget'] }
}
};