Class ecm.widget.RangeBoundTextBox
Extends
dijit.form.RangeBoundTextBox.
Provides a widget that contains a text box for which a range of valid values is specified.
This class extends the Dojo dijit.form.RangeBoundTextBox
class to support range checking
for large exponents.
Defined in: <ecm\widget\RangeBoundTextBox.js>.
Constructor Summary
Constructor Attributes | Constructor Name and Description |
---|---|
Field Summary
Field Attributes | Field Name and Description |
---|---|
Indicates whether the value is validated regardless if the field has received focus or the value has changed.
|
|
The validation pattern.
|
Method Summary
Method Attributes | Method Name and Description |
---|---|
getErrorMessage(isFocused)
Retrieves the error message.
|
|
getValue()
Retrieves the value.
|
|
isValid(isFocused)
Determines if the value is valid.
|
|
rangeCheck(primitive, constraints)
Checks the range.
|
|
setCustomValidationError(errorMessage)
Sets a custom validation error message string.
|
|
setDecimalPoint(decimalPoint)
Sets the value used for the decimal point.
|
|
validate(isFocused)
Validates the value.
|
Field Detail
alwaysValidate
Indicates whether the value is validated regardless if the field has received focus or the value has changed.
- Since:
- 2.0.2.3
pattern
The validation pattern.
Method Detail
getErrorMessage(isFocused)
Retrieves the error message.
- Parameters:
- isFocused
- Returns:
- The error message string.
getValue()
Retrieves the value.
- Returns:
- The value.
isValid(isFocused)
Determines if the value is valid.
- Parameters:
- isFocused
- A value of
true
if this field has focus, otherwise false.
- Returns:
- A boolean value indicating if the value is valid. A value of
true
if the value is valid, otherwise false.
postCreate()
rangeCheck(primitive, constraints)
Checks the range.
- Parameters:
- primitive
- The number value.
- constraints
- The value constraints. See
dijit.form.RangeBoundTextBox.__Constraints
.
setCustomValidationError(errorMessage)
Sets a custom validation error message string.
- Parameters:
- errorMessage
- The error message string.
setDecimalPoint(decimalPoint)
Sets the value used for the decimal point. For example, in English, it is a period (
.
), and in French, it is a comma (
,
).
- Parameters:
- decimalPoint
- The decimal point string.
validate(isFocused)
Validates the value. Includes error handling.
- Parameters:
- isFocused
- A value of
true
if this field has focus, otherwisefalse
.
- Returns:
- A boolean value indicating if the value is valid. A value of
true
if the value is valid, otherwisefalse
.