Ext.NET  5.3.0
.NET Component Framework for Enterprise Level Apps
Ext.Net.NumberFieldBase.Builder< TNumberFieldBase, TBuilder > Class Template Reference

More...

Inheritance diagram for Ext.Net.NumberFieldBase.Builder< TNumberFieldBase, TBuilder >:
Ext.Net.SpinnerFieldBase.Builder< TNumberFieldBase, TBuilder >

Public Member Functions

 Builder (TNumberFieldBase component)
 
virtual TBuilder EmptyNumber (double emptyNumber)
 The fields null value. More...
 
virtual TBuilder Number (double number)
 The Number (double) to initialize this field with. More...
 
virtual TBuilder ConstrainEmptyValue (bool constrainEmptyValue)
 If true then EmptyValue will be constrained by MinValue More...
 
virtual TBuilder AllowExponential (bool allowExponential)
 Set to false to disallow Exponential number notation (defaults to true). More...
 
virtual TBuilder AllowDecimals (bool allowDecimals)
 False to disallow decimal values (defaults to true). More...
 
virtual TBuilder AutoStripChars (bool autoStripChars)
 True to automatically strip not allowed characters from the field. Defaults to false More...
 
virtual TBuilder BaseChars (string baseChars)
 The base set of characters to evaluate as valid numbers (defaults to '0123456789'). More...
 
virtual TBuilder DecimalPrecision (int decimalPrecision)
 The maximum precision to display after the decimal separator (defaults to 2). More...
 
virtual TBuilder DecimalSeparator (string decimalSeparator)
 Character(s) to allow as the decimal separator (defaults to '.'). More...
 
virtual TBuilder MaxText (string maxText)
 Error text to display if the maximum value validation fails (defaults to 'The maximum value for this field is {0}'). More...
 
virtual TBuilder MaxValue (Double maxValue)
 The maximum allowed value (defaults to Number.MAX_VALUE). Will be used by the field's validation logic, and for enabling/disabling the up spinner button. More...
 
virtual TBuilder MinText (string minText)
 Error text to display if the minimum value validation fails (defaults to 'The minimum value for this field is {0}'). More...
 
virtual TBuilder MinValue (Double minValue)
 The minimum allowed value (defaults to Number.NEGATIVE_INFINITY). Will be used by the field's validation logic, and for enabling/disabling the down spinner button. More...
 
virtual TBuilder NanText (string nanText)
 Error text to display if the value is not a valid number. For example, this can happen if a valid character like '.' or '-' is left in the field with no number (defaults to '{0} is not a valid number'). More...
 
virtual TBuilder NegativeText (string negativeText)
 Error text to display if the value is negative and minValue is set to 0. This is used instead of the minText in that circumstance only. Defaults to: "The value cannot be negative" More...
 
virtual TBuilder Step (double step)
 Specifies a numeric interval by which the field's value will be incremented or decremented when the user invokes the spinner. Defaults to 1. More...
 
virtual TBuilder TrimTrailedZeros (bool trimTrailedZeros)
 False to disallow trim trailed zeros. More...
 
virtual TBuilder SubmitLocaleSeparator (bool submitLocaleSeparator)
 False to ensure that the getSubmitValue method strips always uses . as the separator, regardless of the decimalSeparator configuration. Defaults to: true More...
 
- Public Member Functions inherited from Ext.Net.SpinnerFieldBase.Builder< TNumberFieldBase, TBuilder >
 Builder (TSpinnerFieldBase component)
 
virtual TBuilder KeyNavEnabled (bool keyNavEnabled)
 Specifies whether the up and down arrow keys should trigger spinning up and down. Defaults to true. More...
 
virtual TBuilder MouseWheelEnabled (bool mouseWheelEnabled)
 Specifies whether the mouse wheel should trigger spinning up and down while the field has focus. Defaults to true. More...
 
virtual TBuilder SpinDownEnabled (bool spinDownEnabled)
 Specifies whether the down spinner button is enabled. Defaults to true. To change this after the component is created, use the setSpinDownEnabled method. More...
 
virtual TBuilder SpinUpEnabled (bool spinUpEnabled)
 Specifies whether the up spinner button is enabled. Defaults to true. To change this after the component is created, use the setSpinUpEnabled method. More...
 
virtual TBuilder SetSpinDownEnabled (bool enabled)
 
virtual TBuilder SetSpinUpEnabled (bool enabled)
 
virtual TBuilder SpinDown ()
 
virtual TBuilder SpinUp ()
 

Detailed Description

Type Constraints
TNumberFieldBase :NumberFieldBase 
TBuilder :Builder 
TBuilder :TNumberFieldBase 
TBuilder :TBuilder 

Constructor & Destructor Documentation

◆ Builder()

Ext.Net.NumberFieldBase.Builder< TNumberFieldBase, TBuilder >.Builder ( TNumberFieldBase  component)
inline

Member Function Documentation

◆ AllowDecimals()

virtual TBuilder Ext.Net.NumberFieldBase.Builder< TNumberFieldBase, TBuilder >.AllowDecimals ( bool  allowDecimals)
inlinevirtual

False to disallow decimal values (defaults to true).

◆ AllowExponential()

virtual TBuilder Ext.Net.NumberFieldBase.Builder< TNumberFieldBase, TBuilder >.AllowExponential ( bool  allowExponential)
inlinevirtual

Set to false to disallow Exponential number notation (defaults to true).

◆ AutoStripChars()

virtual TBuilder Ext.Net.NumberFieldBase.Builder< TNumberFieldBase, TBuilder >.AutoStripChars ( bool  autoStripChars)
inlinevirtual

True to automatically strip not allowed characters from the field. Defaults to false

◆ BaseChars()

virtual TBuilder Ext.Net.NumberFieldBase.Builder< TNumberFieldBase, TBuilder >.BaseChars ( string  baseChars)
inlinevirtual

The base set of characters to evaluate as valid numbers (defaults to '0123456789').

◆ ConstrainEmptyValue()

virtual TBuilder Ext.Net.NumberFieldBase.Builder< TNumberFieldBase, TBuilder >.ConstrainEmptyValue ( bool  constrainEmptyValue)
inlinevirtual

If true then EmptyValue will be constrained by MinValue

◆ DecimalPrecision()

virtual TBuilder Ext.Net.NumberFieldBase.Builder< TNumberFieldBase, TBuilder >.DecimalPrecision ( int  decimalPrecision)
inlinevirtual

The maximum precision to display after the decimal separator (defaults to 2).

◆ DecimalSeparator()

virtual TBuilder Ext.Net.NumberFieldBase.Builder< TNumberFieldBase, TBuilder >.DecimalSeparator ( string  decimalSeparator)
inlinevirtual

Character(s) to allow as the decimal separator (defaults to '.').

◆ EmptyNumber()

virtual TBuilder Ext.Net.NumberFieldBase.Builder< TNumberFieldBase, TBuilder >.EmptyNumber ( double  emptyNumber)
inlinevirtual

The fields null value.

◆ MaxText()

virtual TBuilder Ext.Net.NumberFieldBase.Builder< TNumberFieldBase, TBuilder >.MaxText ( string  maxText)
inlinevirtual

Error text to display if the maximum value validation fails (defaults to 'The maximum value for this field is {0}').

◆ MaxValue()

virtual TBuilder Ext.Net.NumberFieldBase.Builder< TNumberFieldBase, TBuilder >.MaxValue ( Double  maxValue)
inlinevirtual

The maximum allowed value (defaults to Number.MAX_VALUE). Will be used by the field's validation logic, and for enabling/disabling the up spinner button.

◆ MinText()

virtual TBuilder Ext.Net.NumberFieldBase.Builder< TNumberFieldBase, TBuilder >.MinText ( string  minText)
inlinevirtual

Error text to display if the minimum value validation fails (defaults to 'The minimum value for this field is {0}').

◆ MinValue()

virtual TBuilder Ext.Net.NumberFieldBase.Builder< TNumberFieldBase, TBuilder >.MinValue ( Double  minValue)
inlinevirtual

The minimum allowed value (defaults to Number.NEGATIVE_INFINITY). Will be used by the field's validation logic, and for enabling/disabling the down spinner button.

◆ NanText()

virtual TBuilder Ext.Net.NumberFieldBase.Builder< TNumberFieldBase, TBuilder >.NanText ( string  nanText)
inlinevirtual

Error text to display if the value is not a valid number. For example, this can happen if a valid character like '.' or '-' is left in the field with no number (defaults to '{0} is not a valid number').

◆ NegativeText()

virtual TBuilder Ext.Net.NumberFieldBase.Builder< TNumberFieldBase, TBuilder >.NegativeText ( string  negativeText)
inlinevirtual

Error text to display if the value is negative and minValue is set to 0. This is used instead of the minText in that circumstance only. Defaults to: "The value cannot be negative"

◆ Number()

virtual TBuilder Ext.Net.NumberFieldBase.Builder< TNumberFieldBase, TBuilder >.Number ( double  number)
inlinevirtual

The Number (double) to initialize this field with.

◆ Step()

virtual TBuilder Ext.Net.NumberFieldBase.Builder< TNumberFieldBase, TBuilder >.Step ( double  step)
inlinevirtual

Specifies a numeric interval by which the field's value will be incremented or decremented when the user invokes the spinner. Defaults to 1.

◆ SubmitLocaleSeparator()

virtual TBuilder Ext.Net.NumberFieldBase.Builder< TNumberFieldBase, TBuilder >.SubmitLocaleSeparator ( bool  submitLocaleSeparator)
inlinevirtual

False to ensure that the getSubmitValue method strips always uses . as the separator, regardless of the decimalSeparator configuration. Defaults to: true

◆ TrimTrailedZeros()

virtual TBuilder Ext.Net.NumberFieldBase.Builder< TNumberFieldBase, TBuilder >.TrimTrailedZeros ( bool  trimTrailedZeros)
inlinevirtual

False to disallow trim trailed zeros.


The documentation for this class was generated from the following file: