sap.ui.ux3.ThingInspector.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.ux3.ThingInspector 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.ux3.Overlay.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 |
Returns a metadata object for class sap.ui.ux3.ThingInspector.
Returns:
Adds some action to the aggregation actions
.
Parameters:
Returns:
Adds some facet to the aggregation facets
.
Parameters:
Returns:
Adds some facetContent to the aggregation facetContent
.
Parameters:
Returns:
Adds some headerContent to the aggregation headerContent
.
Parameters:
Returns:
Attaches event handler
fnFunction
to the
actionSelected
event of this
sap.ui.ux3.ThingInspector
.
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.ux3.ThingInspector
itself.
Further thing related Action selected
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.ux3.ThingInspector itself |
Returns:
Attaches event handler
fnFunction
to the
facetSelected
event of this
sap.ui.ux3.ThingInspector
.
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.ux3.ThingInspector
itself.
Event for facet selection. The application is responsible for displaying the correct content for the selected one. The ThingInspector will currently always mark the first facet as selected.
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.ux3.ThingInspector itself |
Returns:
Attaches event handler
fnFunction
to the
feedSubmit
event of this
sap.ui.ux3.ThingInspector
.
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.ux3.ThingInspector
itself.
Fired when a new feed entry is submitted.
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.ux3.ThingInspector itself |
Returns:
Destroys the actionBar in the aggregation actionBar
.
Returns:
Destroys all the actions in the aggregation actions
.
Returns:
Destroys all the facetContent in the aggregation facetContent
.
Returns:
Destroys all the facets in the aggregation facets
.
Returns:
Destroys all the headerContent in the aggregation headerContent
.
Returns:
Detaches event handler
fnFunction
from the
actionSelected
event of this
sap.ui.ux3.ThingInspector
.
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:
Detaches event handler
fnFunction
from the
facetSelected
event of this
sap.ui.ux3.ThingInspector
.
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:
Detaches event handler
fnFunction
from the
feedSubmit
event of this
sap.ui.ux3.ThingInspector
.
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:
Fires event
actionSelected
to attached listeners.
Expects the following event parameters:
id
of type string
Id of selected ThingActionaction
of type sap.ui.ux3.ThingAction
Selected ThingAction
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
fireFacetSelected(mArguments?): boolean
Fires event
facetSelected
to attached listeners.
Listeners may prevent the default action of this event by using the preventDefault
-method on the event object.
Expects the following event parameters:
id
of type string
Id of selected NavigationItemitem
of type sap.ui.ux3.NavigationItem
The selected NavigationItemkey
of type string
Key of selected NavigationItem
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
{boolean} | Whether or not to prevent the default action |
Fires event
feedSubmit
to attached listeners.
Expects the following event parameters:
text
of type string
Feed text
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Gets content of aggregation
actionBar
.
ActionBar. If no actionBar is set a default ActionBar will be created.
Returns:
Gets content of aggregation
actions
.
Actions of a Thing
Returns:
Gets content of aggregation
facetContent
.
ThingGroups for content of the selected facet
Returns:
Gets content of aggregation
facets
.
Thing Inspector facets
Returns:
getFavoriteActionEnabled(): boolean
Gets current value of property
favoriteActionEnabled
.
Favorite action enabled/disabled. If disabled the action will be invisible.
Default value is true
.
Returns:
{boolean} | Value of property favoriteActionEnabled |
getFavoriteState(): boolean
Gets current value of property
favoriteState
.
State Of favorite Action
Default value is false
.
Returns:
{boolean} | Value of property favoriteState |
getFirstTitle(): string
Gets current value of property
firstTitle
.
First Line of the Thing Inspector Title
Returns:
{string} | Value of property firstTitle |
getFlagActionEnabled(): boolean
Gets current value of property
flagActionEnabled
.
Flag action enabled/disabled. If disabled the action will be invisible.
Default value is true
.
Returns:
{boolean} | Value of property flagActionEnabled |
getFlagState(): boolean
Gets current value of property
flagState
.
State of Flag Action
Default value is false
.
Returns:
{boolean} | Value of property flagState |
getFollowActionEnabled(): boolean
Gets current value of property
followActionEnabled
.
Follow action enabled/disabled. If disabled the action will be invisible.
Default value is true
.
Returns:
{boolean} | Value of property followActionEnabled |
Gets current value of property
followState
.
Follow State of a Thing
Default value is Default
.
Returns:
Gets content of aggregation
headerContent
.
ThingGroups for the header content
Returns:
Gets current value of property
headerType
.
Defines which header type should be used.
Default value is Standard
.
- Since:
- 1.16.3
Returns:
Gets current value of property
icon
.
Thing Icon Url
Returns:
getSecondTitle(): string
Gets current value of property
secondTitle
.
Second Line of the Thing Inspector Title
Returns:
{string} | Value of property secondTitle |
ID of the element which is the current target of the association selectedFacet
, or null
.
Returns:
getType(): string
Gets current value of property
type
.
Thing type
Returns:
{string} | Value of property type |
getUpdateActionEnabled(): boolean
Gets current value of property
updateActionEnabled
.
Update action enabled/disabled. If disabled the action will be invisible.
Default value is true
.
Returns:
{boolean} | Value of property updateActionEnabled |
indexOfAction(oAction): int
Checks for the provided sap.ui.ux3.ThingAction
in the aggregation actions
. and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
indexOfFacet(oFacet): int
Checks for the provided sap.ui.ux3.NavigationItem
in the aggregation facets
. and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
indexOfFacetContent(oFacetContent): int
Checks for the provided sap.ui.ux3.ThingGroup
in the aggregation facetContent
. and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
indexOfHeaderContent(oHeaderContent): int
Checks for the provided sap.ui.ux3.ThingGroup
in the aggregation headerContent
. and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
Inserts a action into the aggregation actions
.
Parameters:
{sap.ui.ux3.ThingAction} | oAction | the action to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the action should be inserted at; for a negative value of iIndex , the action is inserted at position 0; for a value greater than the current size of the aggregation, the action is inserted at the last position |
Returns:
Inserts a facet into the aggregation facets
.
Parameters:
{sap.ui.ux3.NavigationItem} | oFacet | the facet to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the facet should be inserted at; for a negative value of iIndex , the facet is inserted at position 0; for a value greater than the current size of the aggregation, the facet is inserted at the last position |
Returns:
Inserts a facetContent into the aggregation facetContent
.
Parameters:
{sap.ui.ux3.ThingGroup} | oFacetContent | the facetContent to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the facetContent should be inserted at; for a negative value of iIndex , the facetContent is inserted at position 0; for a value greater than the current size of the aggregation, the facetContent is inserted at the last position |
Returns:
Inserts a headerContent into the aggregation headerContent
.
Parameters:
{sap.ui.ux3.ThingGroup} | oHeaderContent | the headerContent to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the headerContent should be inserted at; for a negative value of iIndex , the headerContent is inserted at position 0; for a value greater than the current size of the aggregation, the headerContent is inserted at the last position |
Returns:
open(initialFocusId?)
Opens this instance of ThingIspector
Parameters:
Removes a action from the aggregation actions
.
Parameters:
Returns:
Removes all the controls from the aggregation
actions
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes all the controls from the aggregation
facetContent
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes all the controls from the aggregation
facets
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes all the controls from the aggregation
headerContent
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes a facet from the aggregation facets
.
Parameters:
Returns:
Removes a facetContent from the aggregation facetContent
.
Parameters:
Returns:
Removes a headerContent from the aggregation headerContent
.
Parameters:
Returns:
Sets the aggregated actionBar
.
Parameters:
Returns:
Sets a new value for property
favoriteActionEnabled
.
Favorite action enabled/disabled. If disabled the action will be invisible.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bFavoriteActionEnabled | New value for property favoriteActionEnabled |
Returns:
Sets a new value for property
favoriteState
.
State Of favorite Action
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bFavoriteState | New value for property favoriteState |
Returns:
Sets a new value for property
firstTitle
.
First Line of the Thing Inspector Title
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sFirstTitle | New value for property firstTitle |
Returns:
Sets a new value for property
flagActionEnabled
.
Flag action enabled/disabled. If disabled the action will be invisible.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bFlagActionEnabled | New value for property flagActionEnabled |
Returns:
Sets a new value for property
flagState
.
State of Flag Action
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bFlagState | New value for property flagState |
Returns:
Sets a new value for property
followActionEnabled
.
Follow action enabled/disabled. If disabled the action will be invisible.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bFollowActionEnabled | New value for property followActionEnabled |
Returns:
Sets a new value for property
followState
.
Follow State of a Thing
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Default
.
Parameters:
Returns:
Sets a new value for property
headerType
.
Defines which header type should be used.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Standard
.
Parameters:
- Since:
- 1.16.3
Returns:
Sets a new value for property
icon
.
Thing Icon Url
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
Returns:
Sets a new value for property
secondTitle
.
Second Line of the Thing Inspector Title
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sSecondTitle | New value for property secondTitle |
Returns:
Sets the associated selectedFacet
.
Parameters:
{sap.ui.ux3.NavigationItem} | oSelectedFacet | Id of an element which becomes the new target of this selectedFacet association; alternatively, an element instance may be given |
Returns:
Sets a new value for property
type
.
Thing type
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sType | New value for property type |
Returns:
Sets a new value for property
updateActionEnabled
.
Update action enabled/disabled. If disabled the action will be invisible.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bUpdateActionEnabled | New value for property updateActionEnabled |
Returns: