Class DHTMLSuite.colorPalette

Object
   |
   +--DHTMLSuite.colorPalette

class DHTMLSuite.colorPalette


This class simply creates a color palette
Defined in dhtml-suite-for-applications.js

Author: Alf Magne Kalleland(www.dhtmlgoodies.com) css file used for this widget: color-widget.css Demo: (demo 1)
Version: 1.0


Field Summary
 Object colorHelper
          
 Object colors
          
 Object currentColor
          
 Object layoutCSS
          
 Object objectIndex
          
 
Constructor Summary
DHTMLSuite.colorPalette (propertyArray)
           
 
Method Summary
 void addAllNamedColors()
           Add all named colors to the palette
 void addAllWebColors()
           Add all 216 web colors to the palette.
 void addColor(color,name)
           Add a single color to the palette
 void addGrayScaleColors(numberOfColors,rangeFrom,rangeTo)
           Add gray scale colors to the palette
 Object getDivElement()
           Returns a reference to the div element for this widget.
 void init()
           Initializes the widget.
 void setCallbackOnColorClick(functionName)
           Specify callback function executed when user clicks on a color.
 void setLayoutCss(cssFileName)
           Specify name of css file.

Field Detail

colorHelper

Object colorHelper

colors

Object colors

currentColor

Object currentColor

layoutCSS

Object layoutCSS

objectIndex

Object objectIndex

Constructor Detail

DHTMLSuite.colorPalette

DHTMLSuite.colorPalette(propertyArray)

Method Detail

addAllNamedColors

void addAllNamedColors()

addAllWebColors

void addAllWebColors()

addColor

void addColor(color,name)

addGrayScaleColors

void addGrayScaleColors(numberOfColors,rangeFrom,rangeTo)

getDivElement

Object getDivElement()

init

void init()

setCallbackOnColorClick

void setCallbackOnColorClick(functionName)

setLayoutCss

void setLayoutCss(cssFileName)


Documentation generated by JSDoc on Mon Oct 8 10:17:27 2007