Class sap.ui.model.type.TimeModule: sap/ui/model/type/Time
This class represents time simple types.
Constructor Summary
Method Summary
sap.ui.model.type.Time.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.model.type.Time with name
sClassName
and enriches it with the information contained in oClassInfo
.Methods borrowed from class sap.ui.model.type.Date
Methods borrowed from class sap.ui.model.SimpleType
Methods borrowed from class sap.ui.model.Type
Methods borrowed from class sap.ui.base.Object
Constructor Detail
new sap.ui.model.type.Time(oFormatOptions?, oConstraints?)
Constructor for a Time type.
Parameters:
{object} | oFormatOptions? | options used to create a DateFormat for formatting / parsing to/from external values and optionally for a second DateFormat to convert between the data source format (Model) and the internally used JavaScript Date.format. For both DateFormat objects, the same options are supported as for DateFormat.getTimeInstance. Note that this differs from the base type. |
{object} | oConstraints? | value constraints. Supports the same kind of constraints as its base type Date, but note the different format options (Date vs. Time) |
Method Detail
sap.ui.model.type.Time.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.model.type.Time 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.type.Date.extend.
Parameters:
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
Returns:
{function} | Created class / constructor function |
sap.ui.model.type.Time.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.model.type.Time.
Returns:
{sap.ui.base.Metadata} | Metadata object describing this class |