You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by mt...@apache.org on 2006/08/03 19:38:51 UTC

svn commit: r428495 - /incubator/xap/trunk/src/xap/bridges/dojo/DojoColorPaletteBridge.js

Author: mturyn
Date: Thu Aug  3 12:38:50 2006
New Revision: 428495

URL: http://svn.apache.org/viewvc?rev=428495&view=rev
Log:
Bridge class wrappering a Dojo ColorPalette instance; lightweight subclass of DojoWidgetBridge.

Added:
    incubator/xap/trunk/src/xap/bridges/dojo/DojoColorPaletteBridge.js   (with props)

Added: incubator/xap/trunk/src/xap/bridges/dojo/DojoColorPaletteBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/bridges/dojo/DojoColorPaletteBridge.js?rev=428495&view=auto
==============================================================================
--- incubator/xap/trunk/src/xap/bridges/dojo/DojoColorPaletteBridge.js (added)
+++ incubator/xap/trunk/src/xap/bridges/dojo/DojoColorPaletteBridge.js Thu Aug  3 12:38:50 2006
@@ -0,0 +1,74 @@
+
+/*
+ * Copyright  2006 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.
+ *
+ */
+Xap.provide("xap.bridges.dojo.DojoColorPaletteBridge");
+Xap.require("xap.util.LogFactory");
+Xap.require("xap.bridges.dojo.DojoWidgetBridge");
+Xap.require("dojo.widget.ColorPalette");
+
+/**
+ * @fileoverview
+ * 
+ * A wrapper for a Dojo DojoColorPalette, treated as a black box.
+ */
+/**
+ * Creates a xap.bridges.basic.DojoColorPaletteBridge.
+ * 
+ * 
+ * @class xap.bridges.basic.DojoColorPaletteBridge is the bridge between an XML element
+ * representing a control and a subclass of DojoColorPalette. This class 
+ * is typically not used directly but is extended by other classes 
+ * for its subclasses.
+ * 
+ * @author mturyn
+ */
+xap.bridges.dojo.DojoColorPaletteBridge = function(){
+	xap.bridges.dojo.DojoWidgetBridge.call(this);
+};
+
+Xap.setupClassAsSubclassOf(
+	"xap.bridges.dojo.DojoColorPaletteBridge",
+	"xap.bridges.dojo.DojoWidgetBridge"
+);
+
+
+
+
+xap.bridges.dojo.DojoColorPaletteBridge.prototype._peer = null ;
+
+
+
+
+
+
+xap.bridges.dojo.DojoColorPaletteBridge.prototype.attributeSet = function(){
+	//TO_DO anything useful here?  format-string?
+};
+
+xap.bridges.dojo.DojoColorPaletteBridge.prototype.getPeerString = function(){
+	return "ColorPalette" ;
+}
+
+
+xap.bridges.dojo.DojoColorPaletteBridge.prototype.getPeerOnCommandEvent = function(){
+	return "onColorSelect" ;
+}
+
+
+xap.bridges.dojo.DojoColorPaletteBridge.prototype.getRootDomNode= function(){
+	return this._peer.domNode ;
+}

Propchange: incubator/xap/trunk/src/xap/bridges/dojo/DojoColorPaletteBridge.js
------------------------------------------------------------------------------
    svn:eol-style = native