Class pvr.widget.editors._DropDownEditor


Extends dijit._Widget, dijit._TemplatedMixin, dijit._WidgetsInTemplateMixin, idx.form._CompositeMixin, idx.form._CssStateMixin, pvr.widget.editors.mixins._EditorMixin.
Provides an abstract base class for an editor widget that is rendered as a button or a link which when clicked provides a popup dialog within which the user can edit the property value.

The editor widget can be configured to be rendered as a button or a link. A summary of the exiting property value(s) is rendered as the label of the button or link. The extended class must overload the getSummary method to compute the summary value.

A popup dialog is used for editing the value(s) of the property. The extended class much override the following methods to provide a content widget rendered within this dialog for editing the property value(s).

In addition, your content widget can provide a resize method to resize its content before the dialog is opened.


Defined in: <pvr\widget\editors\_DropDownEditor.js>.

Constructor Summary

Constructor Attributes Constructor Name and Description
 

Field Summary

Field Attributes Field Name and Description
 
Indicates whether the control will be rendered as a button or a link.
 
The duplicates error (only relevant for multi-value properties).
 
The external error.
 
The internal error.
 
Indicates whether the control is read-only.
 
value 
The values.

Method Summary

Method Attributes Method Name and Description
 
 
 
 
adjustWidth(widthSettings)
 
 
 
displayMessage(message, force)
 
 
getErrorMessage(isFocused)
 
Get's the value summary.
 
 
isValid(isFocused)
 
onChange(value)
 
 
 
 
validate(isFocused)

Constructor Detail

pvr.widget.editors._DropDownEditor()

Field Detail

dropDownStyle

Indicates whether the control will be rendered as a button or a link.

Possible values are "button", "link" or "default". If default, the the default style is determined by the value of the _dropDownControl member.


duplicatesError

The duplicates error (only relevant for multi-value properties).

externalError

The external error.

internalError

The internal error.

readOnly

Indicates whether the control is read-only.

value

The values.

Method Detail

adjustDuplicatesError()


adjustPendingError(error)

Parameters:
error

adjustPendingValue(value)

Parameters:
value

adjustWidth(widthSettings)

Parameters:
widthSettings

allowDuplicates()


buildRendering()


displayMessage(message, force)

Parameters:
message
force

focus()


getErrorMessage(isFocused)

Parameters:
isFocused

getSummary()

Get's the value summary.

Your extended class must override this method to compute the actual summary.


initializeEditor()


isValid(isFocused)

Parameters:
isFocused

onChange(value)

Parameters:
value

postCreate()


postMixInProperties()


resetWidth()


validate(isFocused)

Parameters:
isFocused