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).
- createContentWidget - Creates the content widget.
- prepareContentWidget - Called before the dialog is opened to allow the content widget to update its state.
- commitContentWidget = Called when the OK button is clicked to retrieve the value(s) from the content widget.
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.
|
|
The values.
|
Method Summary
Method Attributes | Method Name and Description |
---|---|
adjustPendingError(error)
|
|
adjustPendingValue(value)
|
|
adjustWidth(widthSettings)
|
|
displayMessage(message, force)
|
|
focus()
|
|
getErrorMessage(isFocused)
|
|
Get's the value summary.
|
|
isValid(isFocused)
|
|
onChange(value)
|
|
validate(isFocused)
|
Field Detail
dropDownStyle
Possible values are "button", "link" or "default". If default, the the default style is determined by the value of the _dropDownControl member.
duplicatesError
externalError
internalError
readOnly
value
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()
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