Class sap.ui.comp.smartform.flexibility.InputModule: sap/ui/comp/smartform/flexibility/Input

extends Input

Input field with special focus handling

Constructor Summary
new sap.ui.comp.smartform.flexibility.Input(sId?, mSettings?)Constructor for a new smartform/flexibility/Input.
Fields borrowed from class sap.m.InputBase
Event Summary
selectedByKeyboard(oControlEvent)Fired when the field is readonly, focused and user pressed Space
Events borrowed from class sap.m.InputBase
Events borrowed from class sap.ui.core.Control
Method Summary
sap.ui.comp.smartform.flexibility.Input.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.comp.smartform.flexibility.Input with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.comp.smartform.flexibility.Input.getMetadata()Returns a metadata object for class sap.ui.comp.smartform.flexibility.Input.
attachSelectedByKeyboard(oData?, fnFunction, oListener?)Attaches event handler fnFunction to the selectedByKeyboard event of this sap.ui.comp.smartform.flexibility.Input.
detachSelectedByKeyboard(fnFunction, oListener)Detaches event handler fnFunction from the selectedByKeyboard event of this sap.ui.comp.smartform.flexibility.Input.
fireSelectedByKeyboard(mArguments?)Fires event selectedByKeyboard to attached listeners.
Methods borrowed from class sap.m.Input
addSuggestionColumn, addSuggestionItem, addSuggestionRow, attachLiveChange, attachSubmit, attachSuggest, attachSuggestionItemSelected, attachValueHelpRequest, bindAggregation, bindSuggestionColumns, bindSuggestionRows, destroySuggestionColumns, destroySuggestionItems, destroySuggestionRows, detachLiveChange, detachSubmit, detachSuggest, detachSuggestionItemSelected, detachValueHelpRequest, fireLiveChange, fireSubmit, fireSuggest, fireSuggestionItemSelected, fireValueHelpRequest, getAccessibilityInfo, getDateFormat, getDescription, getFieldWidth, getFilterSuggests, getMaxLength, getMaxSuggestionWidth, getShowSuggestion, getShowTableSuggestionValueHelp, getShowValueHelp, getShowValueStateMessage, getStartSuggestion, getSuggestionColumns, getSuggestionItems, getSuggestionRows, getType, getValueHelpOnly, getValueLiveUpdate, getValueStateText, getWidth, indexOfSuggestionColumn, indexOfSuggestionItem, indexOfSuggestionRow, insertSuggestionColumn, insertSuggestionItem, insertSuggestionRow, ontap, removeAllSuggestionColumns, removeAllSuggestionItems, removeAllSuggestionRows, removeSuggestionColumn, removeSuggestionItem, removeSuggestionRow, setDateFormat, setDescription, setFieldWidth, setFilterFunction, setFilterSuggests, setMaxLength, setMaxSuggestionWidth, setRowResultFunction, setShowSuggestion, setShowTableSuggestionValueHelp, setShowValueHelp, setShowValueStateMessage, setStartSuggestion, setType, setValue, setValueHelpOnly, setValueLiveUpdate, setValueStateText, setWidth, unbindSuggestionColumns, unbindSuggestionRows
Constructor Detail
new sap.ui.comp.smartform.flexibility.Input(sId?, mSettings?)
Constructor for a new smartform/flexibility/Input.

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.

The supported settings are:

  • Events
    • selectedByKeyboard : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]

In addition, all settings applicable to the base type sap.m.Input can be used as well.

Parameters:
{string}sId? id for the new control, generated automatically if no id is given
{object}mSettings? initial settings for the new control
Event Detail
selectedByKeyboard(oControlEvent)
Fired when the field is readonly, focused and user pressed Space
Parameters:
{sap.ui.base.Event}oControlEvent
{sap.ui.base.EventProvider}oControlEvent.getSource
{object}oControlEvent.getParameters
Method Detail
sap.ui.comp.smartform.flexibility.Input.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.comp.smartform.flexibility.Input with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.m.Input.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.comp.smartform.flexibility.Input.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.comp.smartform.flexibility.Input.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
attachSelectedByKeyboard(oData?, fnFunction, oListener?): sap.ui.comp.smartform.flexibility.Input
Attaches event handler fnFunction to the selectedByKeyboard event of this sap.ui.comp.smartform.flexibility.Input.

When called, the context of the event handler (its this) will be bound to oListener if specified, otherwise it will be bound to this sap.ui.comp.smartform.flexibility.Input itself.

Fired when the field is readonly, focused and user pressed Space

Parameters:
{object}oData? An application-specific payload object that will be passed to the event handler along with the event object when firing the event
{function}fnFunction The function to be called when the event occurs
{object}oListener? Context object to call the event handler with. Defaults to this sap.ui.comp.smartform.flexibility.Input itself
Returns:
{sap.ui.comp.smartform.flexibility.Input} Reference to this in order to allow method chaining
detachSelectedByKeyboard(fnFunction, oListener): sap.ui.comp.smartform.flexibility.Input
Detaches event handler fnFunction from the selectedByKeyboard event of this sap.ui.comp.smartform.flexibility.Input.

The passed function and listener object must match the ones used for event registration.

Parameters:
{function}fnFunction The function to be called, when the event occurs
{object}oListener Context object on which the given function had to be called
Returns:
{sap.ui.comp.smartform.flexibility.Input} Reference to this in order to allow method chaining
fireSelectedByKeyboard(mArguments?): sap.ui.comp.smartform.flexibility.Input
Fires event selectedByKeyboard to attached listeners.
Parameters:
{Map}mArguments? The arguments to pass along with the event
Returns:
{sap.ui.comp.smartform.flexibility.Input} Reference to this in order to allow method chaining