~mortenoh/+junk/dhis2-detailed-import-export

« back to all changes in this revision

Viewing changes to gis/dhis-gis-geostat/mfbase/ext/source/widgets/menu/ColorMenu.js

  • Committer: larshelge at gmail
  • Date: 2009-03-03 16:46:36 UTC
  • Revision ID: larshelge@gmail.com-20090303164636-2sjlrquo7ib1gf7r
Initial check-in

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Ext JS Library 2.2
 
3
 * Copyright(c) 2006-2008, Ext JS, LLC.
 
4
 * licensing@extjs.com
 
5
 * 
 
6
 * http://extjs.com/license
 
7
 */
 
8
 
 
9
/**
 
10
 * @class Ext.menu.ColorMenu
 
11
 * @extends Ext.menu.Menu
 
12
 * A menu containing a {@link Ext.menu.ColorItem} component (which provides a basic color picker).
 
13
 * @constructor
 
14
 * Creates a new ColorMenu
 
15
 * @param {Object} config Configuration options
 
16
 */
 
17
Ext.menu.ColorMenu = function(config){
 
18
    Ext.menu.ColorMenu.superclass.constructor.call(this, config);
 
19
    this.plain = true;
 
20
    var ci = new Ext.menu.ColorItem(config);
 
21
    this.add(ci);
 
22
    /**
 
23
     * The {@link Ext.ColorPalette} instance for this ColorMenu
 
24
     * @type ColorPalette
 
25
     */
 
26
    this.palette = ci.palette;
 
27
    /**
 
28
     * @event select
 
29
     * @param {ColorPalette} palette
 
30
     * @param {String} color
 
31
     */
 
32
    this.relayEvents(ci, ["select"]);
 
33
};
 
34
Ext.extend(Ext.menu.ColorMenu, Ext.menu.Menu);
 
 
b'\\ No newline at end of file'