This class represents file size simple types.
Constructor for a FileSize type.
new sap.ui.model.type.FileSize(oFormatOptions?, oConstraints?)
Param | Type | Default Value | Description |
---|---|---|---|
oFormatOptions? | object | formatting options. Supports the same options as FileSizeFormat.getInstance |
|
source? | object | additional set of options used to create a second FileSizeFormat object for conversions between string values in the data source (e.g. model) and a numeric byte representation. This second format object is used to convert from a model string to numeric bytes before converting to string with the primary format object. Vice versa, this 'source' format is also used to format an already parsed external value (e.g. user input) into the string format expected by the data source. Supports the same set of options as FileSizeFormat.getInstance. |
|
oConstraints? | object | value constraints. |
|
minimum? | float | smallest value allowed for this type |
|
maximum? | float | largest value allowed for this type |
Method | Description |
---|---|
sap.ui.model.type.FileSize.extend |
Creates a new subclass of class sap.ui.model.type.FileSize with name
|
sap.ui.model.type.FileSize.getMetadata |
Returns a metadata object for class sap.ui.model.type.FileSize. |
Creates a new subclass of class sap.ui.model.type.FileSize 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 |