Accessors for class IlvNumberField

Properties

Description

An IlvNumberField is a specialized text field gadget that is used to enter a number in different formats. This subclass of IlvTextField only allows you to type characters you need to edit the number. You can also specify the minimum and maximum value. The validate callback is only invoked if the text represents a number and this number is within the limits specified.

TypeNameDescriptionNotes
StringdecimalPointChanges or returns the character for the decimal separator. The default value is `.'.
BooleanfloatModeSets the float mode to true or false. Returns true if the float mode is active. If the float mode is set, the number field represents a float number.
DoublefloatValueSets or gets the value of the text field. If floatmode is not set when the value overflows the limits (see minFloat, maxFloat), or if the value in the field is not a float, this property can not be accessed.
IntintValueSets or returns the value of the text field. If floatmode is set or if the value overflows the limits (see minInt, maxInt), this property can not be accessed.
DoublemaxFloatSets or returns the maximum float value. This only works if floatmode is set. Note that the minimum and maximum values are tested when floatValue is accessed.
IntmaxIntSets or returns the maximum int value. This only works if floatmode is not set. Note that the minimum and maximum values are tested when intValue is accessed.
DoubleminFloatSets or returns the minimum float value. This only works if floatmode is set. Note that the minimum and maximum values are tested when floatValue is accessed.
IntminIntSets or returns the minimum int value. This only works if floatmode is not set. The minimum and maximum values are tested when intValue is accessed.
BooleanpadrightGets or sets the padright mode. Use this mode to add the trailing zeros after the decimal point. This only works when the float mode is set.
UIntprecisionSets or returns the precision of the floatValue when the mode floatMode is set. The meaning of precision depends on whether the mode scientific is set or not (see scientificMode). The default value is 6.
BooleanscientificModeGets or sets the scientific mode. This mode works only if floatMode is set.
BooleanshowPointShows or hides the point separator.
BooleanshowThousandShows or hides the thousand separator.
StringthousandSeparatorChanges or returns the thousand separator. The default is `,'. This character is displayed only when the showThousand mode is set.