[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/framework/Web/UI/WebControls/ -> TColorPicker.php (sommaire)

TColorPicker class file

Author: Wei Zhuo
Copyright: Copyright © 2005 PradoSoft
License: http://www.pradosoft.com/license/
Version: $Id: TColorPicker.php 1397 2006-09-07 07:55:53Z wei $
Poids: 258 lignes (7 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 2 classes

TColorPicker:: (16 méthodes):
  getShowColorPicker()
  setShowColorPicker()
  setMode()
  getMode()
  setColorPickerStyle()
  getColorPickerStyle()
  getOKButtonText()
  setOKButtonText()
  getCancelButtonText()
  setCancelButtonText()
  getColorPickerOptions()
  onPreRender()
  publishColorPickerStyle()
  publishColorPickerImageAssets()
  addAttributesToRender()
  render()

TColorPickerMode:: (0 méthodes):


Classe: TColorPicker  - X-Ref

TColorPicker class.

Be aware, this control is EXPERIMENTAL and is not stablized yet.

getShowColorPicker()   X-Ref

return: boolean whether the color picker should pop up when the button is clicked.

setShowColorPicker($value)   X-Ref
Sets whether to pop up the color picker when the button is clicked.

param: boolean whether to show the color picker popup

setMode($value)   X-Ref

param: TColorPickerMode color picker UI mode

getMode()   X-Ref

return: TColorPickerMode current color picker UI mode. Defaults to TColorPickerMode::Basic.

setColorPickerStyle($value)   X-Ref

param: string set the color picker style

getColorPickerStyle()   X-Ref

return: string current color picker style

getOKButtonText()   X-Ref

return: string text for the color picker OK button. Default is "OK".

setOKButtonText($value)   X-Ref

param: string text for the color picker OK button

getCancelButtonText()   X-Ref

return: string text for the color picker Cancel button. Default is "Cancel".

setCancelButtonText($value)   X-Ref

param: string text for the color picker Cancel button

getColorPickerOptions()   X-Ref
Get javascript color picker options.

return: array color picker client-side options

onPreRender($param)   X-Ref
Publish the color picker Css asset files.


publishColorPickerStyle()   X-Ref
Publish the color picker style Css asset file.

return: string Css file url.

publishColorPickerImageAssets()   X-Ref
Publish the color picker image assets.

return: array list of  image URLs

addAttributesToRender($writer)   X-Ref
Registers the javascript code to initialize the color picker.
Must use "Event.OnLoad" to initialize the color picker when the
full page is loaded, otherwise IE will throw an error.

param: THtmlWriter writer

render($writer)   X-Ref
Renders body content.
This method overrides parent implementation by adding
additional color picker button.

param: THtmlWriter writer

Classe: TColorPickerMode  - X-Ref

TColorPickerMode class.
TColorPickerMode defines the enumerable type for the possible UI mode
that a {@link TColorPicker} control can take.

The following enumerable values are defined:
- Simple
- Basic
- Full



Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7