Zapatec.ColorPicker

Overview | File | Class | Tree | Index | Help

Zapatec Utils

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Class Zapatec.ColorPicker

    Object
       |
       +--Zapatec.EventDriven
             |
             +--Zapatec.Widget
                   |
                   +--Zapatec.ColorPicker

class Zapatec.ColorPicker
extends Zapatec.Widget

Defined in colorpicker.js

Field Summary
`Object` | `DEFAULT_SLIDER_WIDTH`

Fields inherited from class Zapatec.Widget
`config`

Constructor Summary
`Zapatec.ColorPicker(<object> objArgs)` ColorPicker class.

Method Summary
`void` | `calculateSize()`
`void` | `cellOnClick(<Object> color)` onClick handler for palette cell
`void` | `cellOnDoubleClick(color)` onDblClick handler for palette cell
`string` | `getColor()` Returns current color from picker.
`void` | `hide()` Hides ColorPicker
`void` | `init(<object> objArgs)` Initializes object.
`void` | `show()` Shows Color Picker

Methods inherited from class Zapatec.Widget
`reconfigure, getConfiguration, addCircularRef, createProperty, discard, defineConfigOption, addUserEventListeners, addStandardEventListeners, loadTheme, getClassName, formElementId, showContainer, hideContainer, showHideContainer, loadData, loadDataHtml, loadDataHtmlText, loadDataJson, loadDataXml, receiveData, replyData, replyDataCancel, replyDataReturn, acceptData, getMessage`

Methods inherited from class Zapatec.EventDriven
`addEventListener, unshiftEventListener, removeEventListener, getEventListeners, isEventListener, isEvent, removeEvent, fireEvent`

Field Detail

### DEFAULT_SLIDER_WIDTH

    Object DEFAULT_SLIDER_WIDTH

Constructor Detail

### Zapatec.ColorPicker

    Zapatec.ColorPicker(<object> objArgs)

ColorPicker class.

Parameters:

`objArgs` - User configuration

Method Detail

### calculateSize

    void calculateSize()

### cellOnClick

    void cellOnClick(<Object> color)

onClick handler for palette cell

Parameters:

`color` -

### cellOnDoubleClick

    void cellOnDoubleClick(color)

onDblClick handler for palette cell

### getColor

    string getColor()

Returns current color from picker.

Returns:

Current color, format '#FFFFFF'

### hide

    void hide()

Hides ColorPicker

### init

    void init(<object> objArgs)

Initializes object.

Parameters:

`objArgs` - User configuration

### show

    void show()

Shows Color Picker

Overview | File | Class | Tree | Index | Help

Zapatec Utils

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Documentation generated by JSDoc on Thu Aug 16 12:18:39 2007