photonui.ColorPickerDialog Class
Color Picker Dialog.
wEvents:
- value-changed:
- description: the selected color changed.
- callback: function(widget, color)
Constructor
photonui.ColorPickerDialog
()
Item Index
Methods
- __internalDragging
- __onCancel
- __onColorChanged
- __onContextMenu
- __onLocaleChanged
- __onValidate
- _bindEvent
- _buildHtml
- _buildUi
- _callCallbacks
- _closeButtonClicked
- _moveDragEnd
- _moveDragging
- _moveDragStart
- _moveTouchEnd
- _moveTouchMove
- _moveTouchStart
- _registerWEvents
- _unbindEvent
- _updateButtons
- _updateProperties deprecated
- _updateUi
- _updateWindowList
- _visibilityChanged
- addButton
- addClass
- center
- destroy
- hide
- moveToBack
- moveToFront
- registerCallback
- removeButton
- removeCallback
- removeChild
- removeClass
- show
- unparent
Properties
- __callbacks
- __events
- __html
- absolutePosition
- buttons
- buttonsNames
- child
- childName
- closeButtonVisible
- color
- containerNode
- contextMenu
- contextMenuName
- data
- fullscreen
- height
- horizontalChildExpansion
- html
- layoutOptions
- maxHeight
- maxWidth
- minHeight
- minWidth
- modal
- movable
- name
- offsetHeight
- offsetWidth
- padding
- parent
- parentName
- position
- title
- tooltip
- value
- verticalChildExpansion
- visible
- width
- x
- y
Methods
__internalDragging
(
private
-
offsetX
-
offsetY
-
pageX
-
pageY
Move the window.
__onCancel
()
private
__onColorChanged
()
private
__onContextMenu
(
private
-
event
Called when the context menu should be displayed.
Parameters:
-
event
Object
__onLocaleChanged
()
private
Called when the locale is changed.
__onValidate
()
private
_bindEvent
(
private
-
id
-
element
-
evName
-
callback
-
[options]
Javascript event binding (for internal use).
Parameters:
_buildHtml
()
private
Build the widget HTML.
_buildUi
()
private
Make the UI.
_callCallbacks
(
private
-
wEvent
-
params
Call all callbacks for the given wEvent.
NOTE: the first argument passed to the callback is the current widget.
NOTEĀ²: if the thisArg of the callback is null, this will be binded to the current widget.
_moveDragging
(
private
-
offsetX
-
offsetY
-
event
Move the window.
_moveTouchMove
(
private
-
offsetX
-
offsetY
-
event
Move the window.
_updateButtons
()
private
Update dialog buttons.
_updateProperties
(
deprecated
private
-
properties
Force the update of the given properties.
This method is deprecated.
One should use '@photonui-update' abitbol's annotation on concerned properties.
Parameters:
-
properties
ArrayThe properties to update.
_updateUi
()
private
Update the fields of the UI.
_updateWindowList
()
private
Update all the windows.
_visibilityChanged
(
private
-
visibility
Called when the visibility changes.
Parameters:
-
visibility
BooleanCurrent visibility state (otptional, defaut=this.visible)
addButton
(
-
widget
Add a button to the dialog.
Parameters:
-
widget
photonui.WidgetThe button to add.
addClass
(
-
className
Add a class to the outer HTML element of the widget.
Parameters:
-
className
StringThe class to add.
center
()
Center the window.
destroy
()
Destroy the widget.
hide
()
Hide the widget (equivalent to widget.visible = false).
moveToBack
()
Bring the window to the back.
moveToFront
()
Bring the window to front.
registerCallback
(
-
id
-
wEvent
-
callback
-
thisArg
Register a callback for any PhotonUI/Widget event (called wEvent).
Callback signature:
function (Object(Base/Widget) [, arg1 [, arg2 [, ...]]])
removeButton
(
-
widget
Remove a button from the dialog.
Parameters:
-
widget
photonui.WidgetThe button to remove.
removeChild
(
-
widget
Remove the given child.
Parameters:
-
widget
photonui.WidgetThe widget to remove/
removeClass
(
-
className
Remove a class from the outer HTML element of the widget.
Parameters:
-
className
StringThe class to remove.
show
()
Display the widget (equivalent to widget.visible = true).
unparent
()
Detache the widget from its parent.
Properties
__events
Object
private
Object containing references javascript events binding (for widget
internal use).
closeButtonVisible
Boolean
default: true
Determine if the close button in the title bar is displayed or not.
contextMenuName
String
The name of the managed contextual menu (
photonui.PopupWindow().name
).
Default: null (= no context menu)