User Header Action Item of the Shell.
Since: 1.22.0. 
Event Summary
press(oControlEvent)Event is fired when the user presses the button. Method Summary
sap.ui.unified.ShellHeadUserItem.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.unified.ShellHeadUserItem with name sClassName and enriches it with the information contained in oClassInfo. addAriaLabelledBy(vAriaLabelledBy)Adds some ariaLabelledBy into the association ariaLabelledBy. attachPress(oData?, fnFunction, oListener?)Attaches event handler fnFunction to the press event of this sap.ui.unified.ShellHeadUserItem. detachPress(fnFunction, oListener)Detaches event handler fnFunction from the press event of this sap.ui.unified.ShellHeadUserItem. firePress(mArguments?)Fires event press to attached listeners. getAriaLabelledBy()Returns array of IDs of the elements which are the current targets of the association ariaLabelledBy. getImage()Gets current value of property image. removeAriaLabelledBy(vAriaLabelledBy)Removes an ariaLabelledBy from the association named ariaLabelledBy. setImage(sImage)Sets a new value for property image. setUsername(sUsername)Sets a new value for property username. $, 
addCustomData, 
addDependent, 
addEventDelegate, 
applyFocusInfo, 
bindElement, 
clone, 
data, 
destroy, 
destroyCustomData, 
destroyDependents, 
destroyLayoutData, 
destroyTooltip, 
enhanceAccessibilityState, 
exit, 
findElements, 
fireEvent, 
focus, 
getCustomData, 
getDependents, 
getDomRef, 
getElementBinding, 
getFocusDomRef, 
getFocusInfo, 
getInterface, 
getLayoutData, 
getMetadata, 
getTooltip, 
getTooltip_AsString, 
getTooltip_Text, 
indexOfCustomData, 
indexOfDependent, 
init, 
insertCustomData, 
insertDependent, 
prop, 
removeAllCustomData, 
removeAllDependents, 
removeCustomData, 
removeDependent, 
removeEventDelegate, 
rerender, 
setLayoutData, 
setTooltip, 
toString, 
unbindElement addAggregation, 
addAssociation, 
applySettings, 
attachFormatError, 
attachModelContextChange, 
attachParseError, 
attachValidationError, 
attachValidationSuccess, 
bindAggregation, 
bindContext, 
bindObject, 
bindProperty, 
destroyAggregation, 
detachFormatError, 
detachModelContextChange, 
detachParseError, 
detachValidationError, 
detachValidationSuccess, 
findAggregatedObjects, 
fireFormatError, 
fireModelContextChange, 
fireParseError, 
fireValidationError, 
fireValidationSuccess, 
getAggregation, 
getAssociation, 
getBinding, 
getBindingContext, 
getBindingInfo, 
getBindingPath, 
getEventingParent, 
getId, 
getModel, 
getObjectBinding, 
getOriginInfo, 
getParent, 
getProperty, 
hasModel, 
indexOfAggregation, 
insertAggregation, 
invalidate, 
isBound, 
isInvalidateSuppressed, 
isTreeBinding, 
propagateMessages, 
removeAggregation, 
removeAllAggregation, 
removeAllAssociation, 
removeAssociation, 
setAggregation, 
setAssociation, 
setBindingContext, 
setModel, 
setProperty, 
unbindAggregation, 
unbindContext, 
unbindObject, 
unbindProperty, 
validateAggregation, 
validateProperty  Constructor Detail 
 new sap.ui.unified.ShellHeadUserItem(sId?, mSettings?) 
 Constructor for a new ShellHeadUserItem. 
 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: 
- Properties 
- Events - press : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
 
 In addition, all settings applicable to the base type sap.ui.core.Element 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 
 press(oControlEvent)
 Event is fired when the user presses the button. 
Parameters:
 Method Detail 
 sap.ui.unified.ShellHeadUserItem.extend(sClassName, oClassInfo?, FNMetaImpl?): function
 Creates a new subclass of class sap.ui.unified.ShellHeadUserItem 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.core.Element.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.unified.ShellHeadUserItem. 
Returns:
 Adds some ariaLabelledBy into the association ariaLabelledBy. 
Parameters:
| {string|sap.ui.core.Control} | vAriaLabelledBy | the ariaLabelledBy to add; if empty, nothing is inserted | 
Returns:
 Attaches event handler 
fnFunction to the 
press event of this 
sap.ui.unified.ShellHeadUserItem. 
 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.unified.ShellHeadUserItem itself. 
 Event is fired when the user presses the button. 
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.unified.ShellHeadUserItemitself | 
Returns:
 Detaches event handler 
fnFunction from the 
press event of this 
sap.ui.unified.ShellHeadUserItem. 
 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 press to attached listeners. 
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event | 
Returns:
 Returns array of IDs of the elements which are the current targets of the association ariaLabelledBy. 
Returns:
 Gets current value of property 
image. 
 An image of the user, normally an URI to a image but also an icon from the sap.ui.core.IconPool is possible. 
Returns:
 getShowPopupIndicator(): boolean
 Gets current value of property 
showPopupIndicator. 
 The user item is intended to be used for user settings. Normally these settings are done via a Menu or Dialog. If this property is set to true an indicator for such a popup mechanismn is shown in the item. 
 Default value is true. 
- Since:
- 1.27.0
Returns:
| {boolean} | Value of property showPopupIndicator | 
 getUsername(): string
 Gets current value of property 
username. 
 The name of the user. 
 Default value is 
Returns:
| {string} | Value of property username | 
 Removes all the controls in the association named ariaLabelledBy. 
Returns:
 Removes an ariaLabelledBy from the association named ariaLabelledBy. 
Parameters:
| {int|string|sap.ui.core.Control} | vAriaLabelledBy | The ariaLabelledByto be removed or its index or ID | 
Returns:
 Sets a new value for property 
image. 
 An image of the user, normally an URI to a image but also an icon from the sap.ui.core.IconPool is possible. 
 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 
showPopupIndicator. 
 The user item is intended to be used for user settings. Normally these settings are done via a Menu or Dialog. If this property is set to true an indicator for such a popup mechanismn is shown in the item. 
 When called with a value of null or undefined, the default value of the property will be restored. 
 Default value is true. 
Parameters:
| {boolean} | bShowPopupIndicator | New value for property showPopupIndicator | 
- Since:
- 1.27.0
Returns:
 Sets a new value for property 
username. 
 The name of the user. 
 When called with a value of null or undefined, the default value of the property will be restored. 
 Default value is 
Parameters:
| {string} | sUsername | New value for property username | 
Returns: