click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r727095 - in /incubator/click/trunk/click/extras/src: ./ META-INF/web/click/colorpicker/ META-INF/web/click/colorpicker/images/ net/sf/click/extras/control/ net/sf/click/extras/control/colorpicker/
Date Tue, 16 Dec 2008 17:33:14 GMT
Author: sabob
Date: Tue Dec 16 09:33:11 2008
New Revision: 727095

URL: http://svn.apache.org/viewvc?rev=727095&view=rev
Log:
added new ColorPicker

Added:
    incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/
    incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/colorpicker.css
    incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/colorpicker.js
    incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/
    incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/clear.png   (with props)
    incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/close.png   (with props)
    incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/color-picker.png   (with props)
    incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/crosshairs.png   (with props)
    incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/h.png   (with props)
    incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/position.png   (with props)
    incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/sv.png   (with props)
Removed:
    incubator/click/trunk/click/extras/src/net/sf/click/extras/control/colorpicker/
Modified:
    incubator/click/trunk/click/extras/src/extras-controls.xml
    incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker.htm
    incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker.java
    incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker.properties
    incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_cs.properties
    incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_de.properties
    incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_en.properties
    incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_fr.properties
    incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_it.properties
    incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_ja.properties
    incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_nl.properties
    incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_ro.properties
    incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_tr.properties
    incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_zh_CN.properties

Added: incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/colorpicker.css
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/colorpicker.css?rev=727095&view=auto
==============================================================================
--- incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/colorpicker.css (added)
+++ incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/colorpicker.css Tue Dec 16 09:33:11 2008
@@ -0,0 +1,31 @@
+/*
+ * 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.
+ */
+.colorPicker{
+	position:absolute;
+	width:224px;
+	padding-bottom:1px;
+	background-color:#FFF;
+	border:1px solid #317082;
+}
+.colorPickerClearImg, .colorPickerCloseImg {
+    padding: 1px;
+}
+.colorPickerClearImg:hover, .colorPickerCloseImg:hover {
+    border: 1px solid #CCCCCC;
+}

Added: incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/colorpicker.js
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/colorpicker.js?rev=727095&view=auto
==============================================================================
--- incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/colorpicker.js (added)
+++ incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/colorpicker.js Tue Dec 16 09:33:11 2008
@@ -0,0 +1,636 @@
+// Copyright 2008 Sebo Zoltan <iamzoli@yahoo.com>
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject
+// to the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+// BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+/**
+ * Click specific extensions.
+ */
+
+// Make sure that the Click namespace exists
+if( typeof Click == 'undefined' )
+    Click = {};
+
+// Make sure that the Click.colorPicker namespace exists
+if( typeof Click.colorPicker == 'undefined' )
+    Click.colorPicker = {};
+
+/*
+ * Validates the ColorPicker.
+ */
+function validateColorPicker(id, required, msgs){
+    var field = document.getElementById(id);
+    if(field){
+        var value = field.value;
+        if(value.length == 0){
+            if(required){
+                setFieldErrorColor(field);
+                return msgs[0];
+            }
+        } else if(!field.value.match(new RegExp("^#[a-fA-F0-9]{3}([a-fA-F0-9]{3})?$"))){
+            setFieldErrorColor(field);
+            return msgs[1];
+        }
+
+        setFieldValidColor(field);
+        return null;
+
+    } else {
+        return 'Field ' + id + ' not found.';
+    }
+}
+
+// Create closure
+(function() {
+
+    // override these in your code to change the default behavior and style
+    Click.colorPicker.defaults = {
+        CROSSHAIRS_LOCATION: '/click/colorpicker/images/crosshairs.png',
+        HUE_SLIDER_LOCATION: '/click/colorpicker/images/h.png',
+        HUE_SLIDER_ARROWS_LOCATION: '/click/colorpicker/images/position.png',
+        SAT_VAL_SQUARE_LOCATION: '/click/colorpicker/images/sv.png',
+        BUTTON_CLOSE_LOCATION: '/click/colorpicker/images/close.png',
+        BUTTON_CLEAR_LOCATION: '/click/colorpicker/images/clear.png',
+        colorPickerInputObjId: null,
+        colorPickerId: null,
+        colorPickerCloseMsg: 'Close',
+        colorPickerClearMsg: 'Clear color',
+        colorPickerResourcePath: '.'
+    }
+
+    // Here are some boring utility functions. The real code comes later.
+    var is_div_init=false;
+    var options={};
+    function hexToRgb(hex_string, default_) {
+        if (default_ == undefined) {
+            default_ = null;
+        }
+
+        if (hex_string.substr(0, 1) == '#') {
+            hex_string = hex_string.substr(1);
+        }
+
+        var r;
+        var g;
+        var b;
+        if (hex_string.length == 3) {
+            r = hex_string.substr(0, 1);
+            r += r;
+            g = hex_string.substr(1, 1);
+            g += g;
+            b = hex_string.substr(2, 1);
+            b += b;
+        }
+        else if (hex_string.length == 6) {
+            r = hex_string.substr(0, 2);
+            g = hex_string.substr(2, 2);
+            b = hex_string.substr(4, 2);
+        }
+        else {
+            return default_;
+        }
+
+        r = parseInt(r, 16);
+        g = parseInt(g, 16);
+        b = parseInt(b, 16);
+        if (isNaN(r) || isNaN(g) || isNaN(b)) {
+            return default_;
+        }
+        else {
+            return {
+                r: r / 255,
+                g: g / 255,
+                b: b / 255
+            };
+        }
+    }
+
+    function rgbToHex(r, g, b, includeHash) {
+        r = Math.round(r * 255);
+        g = Math.round(g * 255);
+        b = Math.round(b * 255);
+        if (includeHash == undefined) {
+            includeHash = true;
+        }
+
+        r = r.toString(16);
+        if (r.length == 1) {
+            r = '0' + r;
+        }
+        g = g.toString(16);
+        if (g.length == 1) {
+            g = '0' + g;
+        }
+        b = b.toString(16);
+        if (b.length == 1) {
+            b = '0' + b;
+        }
+        return ((includeHash ? '#' : '') + r + g + b).toUpperCase();
+    }
+
+    var arVersion = navigator.appVersion.split("MSIE");
+    var version = parseFloat(arVersion[1]);
+
+    function fixPNG(myImage) {
+        if ((version >= 5.5) && (version < 7) && (document.body.filters)) {
+            var node = document.createElement('span');
+            node.id = myImage.id;
+            node.className = myImage.className;
+            node.title = myImage.title;
+            node.style.cssText = myImage.style.cssText;
+            node.style.setAttribute('filter', "progid:DXImageTransform.Microsoft.AlphaImageLoader"
+                + "(src=\'" + myImage.src + "\', sizingMethod='scale')");
+            node.style.fontSize = '0';
+            node.style.width = myImage.width.toString() + 'px';
+            node.style.height = myImage.height.toString() + 'px';
+            node.style.display = 'inline-block';
+            return node;
+        }
+        else {
+            return myImage.cloneNode(false);
+        }
+    }
+
+    function trackDrag(node, handler) {
+        function fixCoords(x, y) {
+            var nodePageCoords = pageCoords(node);
+            x = (x - nodePageCoords.x) + document.documentElement.scrollLeft;
+            y = (y - nodePageCoords.y) + document.documentElement.scrollTop;
+            if (x < 0) x = 0;
+            if (y < 0) y = 0;
+            if (x > node.offsetWidth - 1) x = node.offsetWidth - 1;
+            if (y > node.offsetHeight - 1) y = node.offsetHeight - 1;
+            return {
+                x: x,
+                y: y
+            };
+        }
+        function mouseDown(ev) {
+            var coords = fixCoords(ev.clientX, ev.clientY);
+            var lastX = coords.x;
+            var lastY = coords.y;
+            handler(coords.x, coords.y);
+
+            function moveHandler(ev) {
+                var coords = fixCoords(ev.clientX, ev.clientY);
+                if (coords.x != lastX || coords.y != lastY)
+                {
+                    lastX = coords.x;
+                    lastY = coords.y;
+                    handler(coords.x, coords.y);
+                }
+            }
+            function upHandler(ev) {
+                myRemoveEventListener(document, 'mouseup', upHandler);
+                myRemoveEventListener(document, 'mousemove', moveHandler);
+                myAddEventListener(node, 'mousedown', mouseDown);
+            }
+            myAddEventListener(document, 'mouseup', upHandler);
+            myAddEventListener(document, 'mousemove', moveHandler);
+            myRemoveEventListener(node, 'mousedown', mouseDown);
+            if (ev.preventDefault) ev.preventDefault();
+        }
+        myAddEventListener(node, 'mousedown', mouseDown);
+        node.onmousedown = function(e) {
+            return false;
+        };
+        node.onselectstart = function(e) {
+            return false;
+        };
+        node.ondragstart = function(e) {
+            return false;
+        };
+    }
+
+    var eventListeners = [];
+
+    function findEventListener(node, event, handler) {
+        var i;
+        for (i in eventListeners) {
+            if (eventListeners[i].node == node && eventListeners[i].event == event
+                && eventListeners[i].handler == handler) {
+                return i;
+            }
+        }
+        return null;
+    }
+    function myAddEventListener(node, event, handler) {
+        if (findEventListener(node, event, handler) != null) {
+            return;
+        }
+
+        if (!node.addEventListener) {
+            node.attachEvent('on' + event, handler);
+        }
+        else {
+            node.addEventListener(event, handler, false);
+        }
+
+        eventListeners.push({
+            node: node,
+            event: event,
+            handler: handler
+        });
+    }
+
+    function removeEventListenerIndex(index) {
+        var eventListener = eventListeners[index];
+        delete eventListeners[index];
+
+        if (!eventListener.node.removeEventListener) {
+            eventListener.node.detachEvent('on' + eventListener.event,
+                eventListener.handler);
+        }
+        else {
+            eventListener.node.removeEventListener(eventListener.event,
+                eventListener.handler, false);
+        }
+    }
+
+    function myRemoveEventListener(node, event, handler) {
+        removeEventListenerIndex(findEventListener(node, event, handler));
+    }
+
+    function cleanupEventListeners() {
+        var i;
+        for (i = eventListeners.length; i > 0; i--) {
+            if (eventListeners[i] != undefined) {
+                removeEventListenerIndex(i);
+            }
+        }
+    }
+    myAddEventListener(window, 'unload', cleanupEventListeners);
+
+    // This copyright statement applies to the following two functions,
+    // which are taken from MochiKit.
+    //
+    // Copyright 2005 Bob Ippolito <bob@redivi.com>
+    //
+    // Permission is hereby granted, free of charge, to any person obtaining
+    // a copy of this software and associated documentation files (the
+    // "Software"), to deal in the Software without restriction, including
+    // without limitation the rights to use, copy, modify, merge, publish,
+    // distribute, sublicense, and/or sell copies of the Software, and to
+    // permit persons to whom the Software is furnished to do so, subject
+    // to the following conditions:
+    //
+    // The above copyright notice and this permission notice shall be
+    // included in all copies or substantial portions of the Software.
+    //
+    // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+    // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+    // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+    // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+    // BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+    // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+    // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+    function hsvToRgb(hue, saturation, value) {
+        var red;
+        var green;
+        var blue;
+        if (value == 0.0) {
+            red = 0;
+            green = 0;
+            blue = 0;
+        }
+        else {
+            var i = Math.floor(hue * 6);
+            var f = (hue * 6) - i;
+            var p = value * (1 - saturation);
+            var q = value * (1 - (saturation * f));
+            var t = value * (1 - (saturation * (1 - f)));
+            switch (i) {
+                case 1: red = q; green = value; blue = p; break;
+                case 2: red = p; green = value; blue = t; break;
+                case 3: red = p; green = q; blue = value; break;
+                case 4: red = t; green = p; blue = value; break;
+                case 5: red = value; green = p; blue = q; break;
+                case 6: // fall through
+                case 0: red = value; green = t; blue = p; break;
+            }
+        }
+        return {
+            r: red,
+            g: green,
+            b: blue
+        };
+    }
+
+    function rgbToHsv(red, green, blue) {
+        var max = Math.max(Math.max(red, green), blue);
+        var min = Math.min(Math.min(red, green), blue);
+        var hue;
+        var saturation;
+        var value = max;
+        if (min == max) {
+            hue = 0;
+            saturation = 0;
+        }
+        else {
+            var delta = (max - min);
+            saturation = delta / max;
+            if (red == max) {
+                hue = (green - blue) / delta;
+            }
+            else if (green == max) {
+                hue = 2 + ((blue - red) / delta);
+            }
+            else {
+                hue = 4 + ((red - green) / delta);
+            }
+            hue /= 6;
+            if (hue < 0) {
+                hue += 1;
+            }
+            if (hue > 1) {
+                hue -= 1;
+            }
+        }
+        return {
+            h: hue,
+            s: saturation,
+            v: value
+        };
+    }
+
+    function pageCoords(node) {
+        var x = node.offsetLeft;
+        var y = node.offsetTop;
+        var parent = node.offsetParent;
+        while (parent != null) {
+            x += parent.offsetLeft;
+            y += parent.offsetTop;
+            parent = parent.offsetParent;
+        }
+        return {
+            x: x,
+            y: y
+        };
+    }
+
+    function makeColorSelector(inputBox) {
+        var path = options.colorPickerResourcePath;
+
+        // The real code begins here.
+        var huePositionImg = document.createElement('img');
+        huePositionImg.galleryImg = false;
+        huePositionImg.width = 35;
+        huePositionImg.height = 11;
+        huePositionImg.src = path + options.HUE_SLIDER_ARROWS_LOCATION;
+        huePositionImg.style.position = 'absolute';
+
+        var hueSelectorImg = document.createElement('img');
+        hueSelectorImg.galleryImg = false;
+        hueSelectorImg.width = 35;
+        hueSelectorImg.height = 200;
+        hueSelectorImg.src = path + options.HUE_SLIDER_LOCATION;
+        hueSelectorImg.style.display = 'block';
+
+        var satValImg = document.createElement('img');
+        satValImg.galleryImg = false;
+        satValImg.width = 200;
+        satValImg.height = 200;
+        satValImg.src = path + options.SAT_VAL_SQUARE_LOCATION;
+        satValImg.style.display = 'block';
+
+        var crossHairsImg = document.createElement('img');
+        crossHairsImg.galleryImg = false;
+        crossHairsImg.width = 21;
+        crossHairsImg.height = 21;
+        crossHairsImg.src = path + options.CROSSHAIRS_LOCATION;
+        crossHairsImg.style.position = 'absolute';
+
+        var buttonCloseImg = document.createElement('img');
+        buttonCloseImg.galleryImg = false;
+        buttonCloseImg.width = 17;
+        buttonCloseImg.height = 17;
+        buttonCloseImg.src = path + options.BUTTON_CLOSE_LOCATION;
+        buttonCloseImg.title = options.colorPickerCloseMsg;
+        buttonCloseImg.style.position = 'absolute';
+        buttonCloseImg.style.cursor='pointer';
+        buttonCloseImg.className='colorPickerCloseImg';
+        buttonCloseImg.onclick=hideColorPicker;
+
+        var buttonClearImg = document.createElement('img');
+        buttonClearImg.galleryImg = false;
+        buttonClearImg.width = 17;
+        buttonClearImg.height = 17;
+        buttonClearImg.src = path + options.BUTTON_CLEAR_LOCATION;
+        buttonClearImg.title = options.colorPickerClearMsg;
+        buttonClearImg.style.position = 'absolute';
+        buttonClearImg.style.cursor='pointer';
+        buttonClearImg.className='colorPickerClearImg';
+        buttonClearImg.onclick=clearColorAndHideColorPicker;
+
+        var rgb, hsv;
+
+        function colorChanged() {
+            is_div_init=false;
+            var hex = rgbToHex(rgb.r, rgb.g, rgb.b);
+
+            var hueRgb = hsvToRgb(hsv.h, 1, 1);
+            var hueHex = rgbToHex(hueRgb.r, hueRgb.g, hueRgb.b);
+            inputBox.value=hex;
+            /*
+        // popox idea
+        inputBox.style.background = hex;
+        if(((rgb.r*100+rgb.g*100+rgb.b*100)/3)<65) //change text color to white if the background color is to dark
+            inputBox.style.color="#fff";
+        else inputBox.style.color="#000";
+        */
+
+            satValDiv.style.background = hueHex;
+            crossHairs.style.left = ((hsv.v*199)-10).toString() + 'px';
+            crossHairs.style.top = (((1-hsv.s)*199)-10).toString() + 'px';
+            huePos.style.top = ((hsv.h*199)-5).toString() + 'px';
+            is_div_init=true;
+        }
+        function rgbChanged() {
+            hsv = rgbToHsv(rgb.r, rgb.g, rgb.b);
+            colorChanged();
+        }
+        function hsvChanged() {
+            rgb = hsvToRgb(hsv.h, hsv.s, hsv.v);
+            colorChanged();
+        }
+
+        var colorSelectorDiv = document.createElement('div');
+        colorSelectorDiv.style.paddingLeft = '5px';
+        colorSelectorDiv.style.paddingRight = '5px';
+        colorSelectorDiv.style.paddingBottom = '5px';
+        colorSelectorDiv.style.position = 'relative';
+        colorSelectorDiv.style.diplay="inline";
+        colorSelectorDiv.style.height = '227px';
+        colorSelectorDiv.style.width = '210px';
+
+        var clearButton = document.createElement('div');
+        clearButton.style.position = 'absolute';
+        clearButton.style.diplay="inline";
+        clearButton.style.height = '17px';
+        clearButton.style.width = '17px';
+        clearButton.style.top="2px";
+        clearButton.style.left="6px";
+
+        clearButton.appendChild(buttonClearImg);
+
+        colorSelectorDiv.appendChild(clearButton);
+
+        var buttonclose = document.createElement('div');
+        buttonclose.style.position = 'absolute';
+        buttonclose.style.diplay="inline";
+        buttonclose.style.height = '17px';
+        buttonclose.style.width = '17px';
+        buttonclose.style.top="2px";
+        buttonclose.style.left="224px";
+
+        buttonclose.appendChild(buttonCloseImg);
+
+        colorSelectorDiv.appendChild(buttonclose);
+
+        var satValDiv = document.createElement('div');
+        satValDiv.style.position = 'absolute';
+        satValDiv.style.diplay="inline";
+        satValDiv.style.top = '28px';
+        satValDiv.style.width = '200px';
+        satValDiv.style.height = '200px';
+        var newSatValImg = fixPNG(satValImg);
+        satValDiv.appendChild(newSatValImg);
+        var crossHairs = crossHairsImg.cloneNode(false);
+        satValDiv.appendChild(crossHairs);
+        function satValDragged(x, y) {
+            hsv.s = 1-(y/199);
+            hsv.v = (x/199);
+            hsvChanged();
+        }
+        trackDrag(satValDiv, satValDragged)
+
+        colorSelectorDiv.appendChild(satValDiv);
+
+        var hueDiv = document.createElement('div');
+        hueDiv.style.position = 'absolute';
+        hueDiv.style.diplay="inline";
+        hueDiv.style.left = '210px';
+        hueDiv.style.top = '28px';
+        hueDiv.style.width = '35px';
+        hueDiv.style.height = '200px';
+        var huePos = fixPNG(huePositionImg);
+        hueDiv.appendChild(hueSelectorImg.cloneNode(false));
+        hueDiv.appendChild(huePos);
+        function hueDragged(x, y) {
+            is_div_init=false;
+            hsv.h = y/199;
+            hsvChanged();
+        }
+        trackDrag(hueDiv, hueDragged);
+        colorSelectorDiv.appendChild(hueDiv);
+
+        function inputBoxChanged() {
+            rgb = hexToRgb(inputBox.value, {
+                r: 0,
+                g: 0,
+                b: 0
+            });
+            rgbChanged();
+        }
+        //myAddEventListener(inputBox, 'change', inputBoxChanged);
+
+        inputBoxChanged();
+
+        return colorSelectorDiv;
+    }
+
+    function colorPickerGetTopPos(inputObj) {
+        var returnValue = inputObj.offsetTop-inputObj.offsetHeight;
+        while((inputObj = inputObj.offsetParent) != null) {
+            returnValue += inputObj.offsetTop;
+        }
+        return returnValue;
+    }
+
+    function colorPickerGetLeftPos(inputObj) {
+        var returnValue = inputObj.offsetLeft+inputObj.offsetWidth;
+        while((inputObj = inputObj.offsetParent) != null)returnValue += inputObj.offsetLeft;
+        return returnValue;
+    }
+
+    function overrideDefaults() {
+        var length = arguments.length, options, target = {};
+        for (var i = 0; i < length; i++ ) {
+            if ( (options = arguments[ i ]) != null ) {
+                for ( var name in options ) {
+                    var copy = options[ name ];
+                    if ( copy !== undefined ) {
+                        target[name] = copy;
+                    }
+                }
+            }
+        }
+        return target;
+    }
+
+    /**
+     * Public API.
+     */
+    Click.colorPicker.showColorPicker = function(opts) {
+        var inputObj = document.getElementById(opts.colorPickerInputObjId);
+        if (inputObj) {
+            hideColorPicker();
+            options = overrideDefaults(Click.colorPicker.defaults, opts);
+            options.colorPickerId=options.colorPickerInputObjId+'_cp';
+            var color_picker_div = document.createElement('DIV');
+            color_picker_div.style.left = colorPickerGetLeftPos(inputObj) + 'px';
+            color_picker_div.style.width='250px';
+            color_picker_div.style.heigth='190px';
+            color_picker_div.style.top = colorPickerGetTopPos(inputObj) + inputObj.offsetHeight + 2 + 'px';
+            color_picker_div.id = options.colorPickerId;
+            color_picker_div.className = 'colorPicker';
+            color_picker_div.style.display='block';
+            color_picker_div.appendChild(makeColorSelector(inputObj));
+            document.body.appendChild(color_picker_div);
+            is_div_init=true;
+        } else {
+            alert('Field ' + id + ' not found.');
+        }
+    }
+    function clearColorAndHideColorPicker() {
+        if (options.colorPickerId && is_div_init) {
+            var colorInputObj = document.getElementById(options.colorPickerInputObjId);
+            if(colorInputObj) {
+                colorInputObj.value='';
+            }
+            hideColorPicker();
+        }
+    }
+    function hideColorPicker() {
+        if (options.colorPickerId && is_div_init){
+            is_div_init=false;
+            var colorPicker = document.getElementById(options.colorPickerId);
+            if (colorPicker) {
+                document.body.removeChild(colorPicker);
+            }
+            options={};
+        }
+    }
+
+    function maskedHex(input) {
+        var mask = '#[0-9a-fA-F]{7}';
+        input.value=input.value.replace(mask,"");
+    }
+})();

Added: incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/clear.png
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/clear.png?rev=727095&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/clear.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/close.png
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/close.png?rev=727095&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/close.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/color-picker.png
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/color-picker.png?rev=727095&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/color-picker.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/crosshairs.png
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/crosshairs.png?rev=727095&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/crosshairs.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/h.png
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/h.png?rev=727095&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/h.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/position.png
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/position.png?rev=727095&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/position.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/sv.png
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/sv.png?rev=727095&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/click/trunk/click/extras/src/META-INF/web/click/colorpicker/images/sv.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: incubator/click/trunk/click/extras/src/extras-controls.xml
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/extras-controls.xml?rev=727095&r1=727094&r2=727095&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/extras-controls.xml (original)
+++ incubator/click/trunk/click/extras/src/extras-controls.xml Tue Dec 16 09:33:11 2008
@@ -1,9 +1,26 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<!--
+ 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.
+-->
 <click-app>
 
   <controls>
     <control classname="net.sf.click.extras.control.CheckList"/>
-    <control classname="net.sf.click.extras.control.ColorPicker"/>
     <control classname="net.sf.click.extras.control.CreditCardField"/>
     <control classname="net.sf.click.extras.control.EmailField"/>
     <control classname="net.sf.click.extras.control.IntegerField"/>

Modified: incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker.htm
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker.htm?rev=727095&r1=727094&r2=727095&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker.htm (original)
+++ incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker.htm Tue Dec 16 09:33:11 2008
@@ -1,23 +1,26 @@
+<!--
+   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.
+-->
+
 #if($field.showTextField)
 <input id="$id" type="text" name="$field.name" value="$value" $attributes/>
 #else
 <input id="$id" type="hidden" name="$field.name" value="$value" $attributes/>
 #end
 
-<span id="${id}_c" style="border: 1px solid #333; background-color:${back_color};vertical-align:middle;"><img id="${id}_c_i" title="${chooseColorMsg}" style="cursor:pointer"
- #if($value != "") 
-  src="${path}/click/colorpicker/arrowdown.gif" width="30px;" height="12px;"
- #else
-  src="${path}/click/colorpicker/nocolor.gif" width="30px;" height="12px;"
- #end
-  onclick="new ColorPicker('${id}','${path}/click/colorpicker').toggle()"/>
-</span>
-<div id="${id}_p_d" style="border: 2px solid #333;position: absolute; display: none; cursor: crosshair; z-index: 1; background-color:#fff">
-<table cellspacing="0" cellpadding="0" width="100px">
- <tr>
-  <td align="left"> #if($field.required == false) <img src="${path}/click/colorpicker/nocolorchoose.gif" height="16px" widht="16px" style="cursor:pointer" onclick="new ColorPicker('${id}','${path}/click/colorpicker').blank()" title="${noColorMsg}"/> #end </td>
-  <td align="right"> <img src="${path}/click/colorpicker/close.gif" height="16px" widht="16px" style="cursor:pointer" onclick="$('${id}_p_d').style.display='none'" title="${closeMsg}"/> </td>
- </tr>
-</table>
-<img id="${id}_p_d_i" src="${path}/click/colorpicker/colorscale.png" height="192px" widht="100px"/> <div id="${id}_p_d_s" style="margin: 2px;padding:2px; text-align:center; font-family: Verdana, sans-serif; background-color:${back_color}">${back_color}</div>
-</div>
+<img align="top" class="colorPickerImg" onclick="Click.colorPicker.showColorPicker({colorPickerInputObjId:'${id}', colorPickerCloseMsg:'${closeMsg}', colorPickerClearMsg: '${noColorMsg}', colorPickerResourcePath:'${path}'})" title="${chooseColorMsg}" src="${path}/click/colorpicker/images/color-picker.png"/>
\ No newline at end of file

Modified: incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker.java?rev=727095&r1=727094&r2=727095&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker.java (original)
+++ incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker.java Tue Dec 16 09:33:11 2008
@@ -1,16 +1,20 @@
- /* Copyright 2004-2008 Malcolm A. Edgar
+/*
+ * 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
  *
- * 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
  *
- *     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.
+ * 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.
  */
 package net.sf.click.extras.control;
 
@@ -20,8 +24,6 @@
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
-import javax.servlet.ServletContext;
-
 import net.sf.click.Context;
 import net.sf.click.control.Field;
 import net.sf.click.util.ClickUtils;
@@ -73,19 +75,10 @@
 
     private static final long serialVersionUID = 1L;
 
-    /** The ColorPicker resource file names. */
-    static final String[] COLOR_PICKER_RESOURCES = {
-        "/net/sf/click/extras/control/colorpicker/colorpicker.js",
-        "/net/sf/click/extras/control/colorpicker/colorscale.png",
-        "/net/sf/click/extras/control/colorpicker/arrowdown.gif",
-        "/net/sf/click/extras/control/colorpicker/close.gif",
-        "/net/sf/click/extras/control/colorpicker/nocolor.gif",
-        "/net/sf/click/extras/control/colorpicker/nocolorchoose.gif"
-    };
-
     /** The HTML imports statements. */
     static final String HTML_IMPORTS =
-        "<script type=\"text/javascript\" src=\"{0}/click/prototype/prototype{1}.js\"></script>\n"
+        "<link type=\"text/css\" rel=\"stylesheet\" href=\"{0}/click/colorpicker/colorpicker{1}.css\"/>\n"
+        + "<script type=\"text/javascript\" src=\"{0}/click/prototype/prototype{1}.js\"></script>\n"
         + "<script type=\"text/javascript\" src=\"{0}/click/colorpicker/colorpicker{1}.js\"></script>\n";
 
     /** The color validation hexidecimal pattern. */
@@ -263,20 +256,6 @@
     // --------------------------------------------------------- Public Methods
 
     /**
-     * Deploy the static resource files in the colorpicker package.
-     *
-     * @see net.sf.click.control.Field#onDeploy(javax.servlet.ServletContext)
-     * @param servletContext the ServletContext
-     */
-    public void onDeploy(ServletContext servletContext) {
-        for (int i = 0; i < COLOR_PICKER_RESOURCES.length; i++) {
-            ClickUtils.deployFile(servletContext,
-                                  COLOR_PICKER_RESOURCES[i],
-                                  "click/colorpicker");
-        }
-    }
-
-    /**
      * @see net.sf.click.control.AbstractControl#getControlSizeEst()
      *
      * @return the estimated rendered control size in characters

Modified: incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker.properties
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker.properties?rev=727095&r1=727094&r2=727095&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker.properties (original)
+++ incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker.properties Tue Dec 16 09:33:11 2008
@@ -1,4 +1,21 @@
-no-color-value={0} is no valid color.
+# 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.
+
+no-color-value={0} is not a valid color.
 choose-color=choose color
 no-color=no color
 close=close
\ No newline at end of file

Modified: incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_cs.properties
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_cs.properties?rev=727095&r1=727094&r2=727095&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_cs.properties (original)
+++ incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_cs.properties Tue Dec 16 09:33:11 2008
@@ -1,3 +1,20 @@
+# 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.
+
 no-color-value={0} nen&#237; platn&#225; barva.
 choose-color=vyberte barvu
 no-color=&#382;&#225;dn&#225; barva

Modified: incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_de.properties
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_de.properties?rev=727095&r1=727094&r2=727095&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_de.properties (original)
+++ incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_de.properties Tue Dec 16 09:33:11 2008
@@ -1,4 +1,21 @@
-no-color-value={0} ist keine gültige Farbe.
-choose-color=Farbe wählen
+# 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.
+
+no-color-value={0} ist keine g\u00FCltige Farbe.
+choose-color=Farbe w\u00E4hlen
 no-color=Keine Farbe
-close=Schließen
\ No newline at end of file
+close=Schlie\u00DFen
\ No newline at end of file

Modified: incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_en.properties
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_en.properties?rev=727095&r1=727094&r2=727095&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_en.properties (original)
+++ incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_en.properties Tue Dec 16 09:33:11 2008
@@ -1 +1,18 @@
+# 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.
+
 # Will inherit properties from ColorPicker.properties
\ No newline at end of file

Modified: incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_fr.properties
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_fr.properties?rev=727095&r1=727094&r2=727095&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_fr.properties (original)
+++ incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_fr.properties Tue Dec 16 09:33:11 2008
@@ -1,3 +1,20 @@
+# 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.
+
 no-color-value={0} n'est pas une couleur valide.
 choose-color=choisir une couleur
 no-color=aucune couleur

Modified: incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_it.properties
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_it.properties?rev=727095&r1=727094&r2=727095&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_it.properties (original)
+++ incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_it.properties Tue Dec 16 09:33:11 2008
@@ -1,4 +1,21 @@
-no-color-value={0} non è un colore valido.
+# 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.
+
+no-color-value={0} non \u00E8 un colore valido.
 choose-color=scegliere colore
 no-color=nessun colore
 close=chiudere
\ No newline at end of file

Modified: incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_ja.properties
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_ja.properties?rev=727095&r1=727094&r2=727095&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_ja.properties (original)
+++ incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_ja.properties Tue Dec 16 09:33:11 2008
@@ -1,4 +1,21 @@
-no-color-value={0} \u306f\u4e0d\u6b63\u306a\u8272\u3067\u3059\u3002
-choose-color=\u8272\u306e\u9078\u629e
-no-color=\u306a\u3057
-close=\u9589\u3058\u308b
+# 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.
+
+no-color-value={0} \u306F\u4E0D\u6B63\u306A\u8272\u3067\u3059\u3002
+choose-color=\u8272\u306E\u9078\u629E
+no-color=\u306A\u3057
+close=\u9589\u3058\u308B

Modified: incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_nl.properties
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_nl.properties?rev=727095&r1=727094&r2=727095&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_nl.properties (original)
+++ incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_nl.properties Tue Dec 16 09:33:11 2008
@@ -1,3 +1,20 @@
+# 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.
+
 no-color-value={0} is geen geldige kleur.
 choose-color=kies kleur
 no-color=geen kleur

Modified: incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_ro.properties
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_ro.properties?rev=727095&r1=727094&r2=727095&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_ro.properties (original)
+++ incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_ro.properties Tue Dec 16 09:33:11 2008
@@ -1,4 +1,21 @@
+# 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.
+
 no-color-value={0} nu e o culoare valabil\u0103.
 choose-color=alege culoarea
 no-color=incolor
-close=\u00eenchide
+close=\u00EEnchide

Modified: incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_tr.properties
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_tr.properties?rev=727095&r1=727094&r2=727095&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_tr.properties (original)
+++ incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_tr.properties Tue Dec 16 09:33:11 2008
@@ -1,4 +1,21 @@
-no-color-value={0} ge\u00e7erli bir renk de\u011fil.
-choose-color=renk se\u00e7
+# 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.
+
+no-color-value={0} ge\u00E7erli bir renk de\u011Fil.
+choose-color=renk se\u00E7
 no-color=renk yok
 close=kapat
\ No newline at end of file

Modified: incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_zh_CN.properties
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_zh_CN.properties?rev=727095&r1=727094&r2=727095&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_zh_CN.properties (original)
+++ incubator/click/trunk/click/extras/src/net/sf/click/extras/control/ColorPicker_zh_CN.properties Tue Dec 16 09:33:11 2008
@@ -1,3 +1,20 @@
+# 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.
+
 choose-color = \u9009\u62E9\u989C\u8272
 close = \u5173\u95ED
 no-color = \u6CA1\u6709\u989C\u8272



Mime
View raw message