This class represents integer simple types.
Constructor for an Integer type.
new sap.ui.model.type.Integer(oFormatOptions?, oConstraints?)
Param | Type | Default Value | Description |
---|---|---|---|
oFormatOptions? | object | Formatting options. For a list of all available options, see NumberFormat. |
|
source? | object | Additional set of format options to be used if the property in the model is not of type string and needs formatting as well. If an empty object is given, the grouping is disabled and a dot is used as decimal separator. |
|
oConstraints? | object | Value constraints |
|
minimum? | int | Smallest value allowed for this type |
|
maximum? | int | Largest value allowed for this type |
Method | Description |
---|---|
sap.ui.model.type.Integer.extend |
Creates a new subclass of class sap.ui.model.type.Integer with name
|
sap.ui.model.type.Integer.getMetadata |
Returns a metadata object for class sap.ui.model.type.Integer. |
Creates a new subclass of class sap.ui.model.type.Integer with name sClassName
and enriches it with the information contained in oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.ui.model.SimpleType.extend.
Param | Type | DefaultValue | Description |
---|---|---|---|
sClassName | string |
Name of the class being created |
|
oClassInfo | object |
Object literal with information about the class |
|
FNMetaImpl | function |
Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class |