This control is used in UnifiedThingInspector to display the preview of the facet content.
Deprecated API:Since version 1.32. Deprecated. Object page should be used instead.
Event Summary
heightChange(oControlEvent)This event is fired when a new value to the heightType or height property is set. press(oControlEvent)The event is fired when the user chooses the control. Method Summary
sap.suite.ui.commons.FacetOverview.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.suite.ui.commons.FacetOverview with name sClassName
and enriches it with the information contained in oClassInfo
. attachHeightChange(oData?, fnFunction, oListener?)Attach event handler fnFunction
to the 'heightChange' event of this sap.suite.ui.commons.FacetOverview
. attachPress(oData?, fnFunction, oListener?)Attach event handler fnFunction
to the 'press' event of this sap.suite.ui.commons.FacetOverview
. destroyContent()Destroys the content in the aggregation named content
. detachHeightChange(fnFunction, oListener)Detach event handler fnFunction
from the 'heightChange' event of this sap.suite.ui.commons.FacetOverview
. detachPress(fnFunction, oListener)Detach event handler fnFunction
from the 'press' event of this sap.suite.ui.commons.FacetOverview
. firePress(mArguments?)Fire event press to attached listeners. setContent(oContent)Setter for the aggregated content
. setTitle(sTitle)Setter for property title
. setWidth(sWidth)Setter for property width
. setHeight(sHeight)Setter for property height
. addStyleClass,
allowTextSelection,
attachBrowserEvent,
attachValidateFieldGroup,
checkFieldGroupIds,
clone,
detachBrowserEvent,
detachValidateFieldGroup,
fireValidateFieldGroup,
getAccessibilityInfo,
getBusy,
getBusyIndicatorDelay,
getControlsByFieldGroupId,
getFieldGroupIds,
getIdForLabel,
getRenderer,
getVisible,
hasStyleClass,
invalidate,
isBusy,
onAfterRendering,
onBeforeRendering,
placeAt,
removeStyleClass,
rerender,
setBusy,
setBusyIndicatorDelay,
setFieldGroupIds,
setVisible,
toggleStyleClass,
triggerValidateFieldGroup $,
addCustomData,
addDependent,
addEventDelegate,
applyFocusInfo,
bindElement,
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,
insertCustomData,
insertDependent,
prop,
removeAllCustomData,
removeAllDependents,
removeCustomData,
removeDependent,
removeEventDelegate,
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,
isBound,
isInvalidateSuppressed,
isTreeBinding,
propagateMessages,
removeAggregation,
removeAllAggregation,
removeAllAssociation,
removeAssociation,
setAggregation,
setAssociation,
setBindingContext,
setModel,
setProperty,
unbindAggregation,
unbindContext,
unbindObject,
unbindProperty,
validateAggregation,
validateProperty Constructor Detail
new sap.suite.ui.commons.FacetOverview(sId?, mSettings?)
Constructor for a new FacetOverview.
Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers.
If the name of a setting is ambiguous (e.g. a property has the same name as an event), then the framework assumes property, aggregation, association, event in that order. To override this automatic resolution, one of the prefixes "aggregation:", "association:" or "event:" can be added to the name of the setting (such a prefixed name must be enclosed in single or double quotes).
The supported settings are:
- Properties
- title : string
- quantity : int (default: -1)
- width : sap.ui.core.CSSSize (default: 'auto')
- height : sap.ui.core.CSSSize (default: '10rem')
- rowSpan : int (default: 1)
- heightType : sap.suite.ui.commons.FacetOverviewHeight (default: sap.suite.ui.commons.FacetOverviewHeight.None)
- Aggregations
- Associations
- Events
- press : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
- heightChange : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
Parameters:
{string} | sId? | id for the new control, generated automatically if no id is given |
{object} | mSettings? | initial settings for the new control |
- Deprecated:
- Since version 1.32. Deprecated. Object page should be used instead.
Event Detail
heightChange(oControlEvent)
This event is fired when a new value to the heightType or height property is set.
Parameters:
press(oControlEvent)
The event is fired when the user chooses the control. Provides an event with parameter id, the ID of the chosen control.
Parameters:
Method Detail
sap.suite.ui.commons.FacetOverview.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.suite.ui.commons.FacetOverview with name
sClassName
and enriches it with the information contained in
oClassInfo
.
oClassInfo
might contain the same kind of informations as described in Element.extend.
Parameters:
{string} | sClassName | name of the class to be created |
{object} | oClassInfo? | object literal with informations about the class |
{function} | FNMetaImpl? | constructor function for the metadata object. If not given, it defaults to sap.ui.core.ElementMetadata. |
Returns:
{function} | the created class / constructor function |
Returns a metadata object for class sap.suite.ui.commons.FacetOverview.
Returns:
Attach event handler
fnFunction
to the 'heightChange' event of this
sap.suite.ui.commons.FacetOverview
.
. When called, the context of the event handler (its
this
) will be bound to
oListener if specified otherwise to this sap.suite.ui.commons.FacetOverview
.
itself. This event is fired when a new value to the heightType or height property is set.
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 call, when the event occurs. |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.suite.ui.commons.FacetOverview . itself. |
Returns:
Attach event handler
fnFunction
to the 'press' event of this
sap.suite.ui.commons.FacetOverview
.
. When called, the context of the event handler (its
this
) will be bound to
oListener if specified otherwise to this sap.suite.ui.commons.FacetOverview
.
itself. The event is fired when the user chooses the control. Provides an event with parameter id, the ID of the chosen control.
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 call, when the event occurs. |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.suite.ui.commons.FacetOverview . itself. |
Returns:
Destroys the content in the aggregation named content
.
Returns:
Detach event handler
fnFunction
from the 'heightChange' event of this
sap.suite.ui.commons.FacetOverview
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to call, when the event occurs. |
{object} | oListener | Context object on which the given function had to be called. |
Returns:
Detach event handler
fnFunction
from the 'press' event of this
sap.suite.ui.commons.FacetOverview
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to call, when the event occurs. |
{object} | oListener | Context object on which the given function had to be called. |
Returns:
Fire event heightChange to attached listeners.
Parameters:
{Map} | mArguments? | the arguments to pass along with the event. |
Returns:
Fire event press to attached listeners.
Expects following event parameters:
- 'id' of type
string
The control ID.
Parameters:
{Map} | mArguments? | the arguments to pass along with the event. |
Returns:
Getter for aggregation content
.
The content that appears in the left part of the control.
Returns:
Getter for property
heightType
. Indicates the height of the control in the predifened values. If set to None, then the height is defined by the depricated height property.
Default value is None
Returns:
getQuantity(): int
Getter for property
quantity
. Displays a label with the number of items in the right part of the control.
Default value is -1
Returns:
{int} | the value of property quantity |
getTitle(): string
Getter for property
title
. This property is shown in the upper left part of control.
Default value is empty/undefined
Returns:
{string} | the value of property title |
Getter for property
width
. Defines the width of the control. By default, the value is empty and the control inhertis the size from its content.
Default value is auto
Returns:
Setter for the aggregated content
.
Parameters:
Returns:
Setter for property
heightType
.
Default value is None
Parameters:
Returns:
Setter for property
quantity
.
Default value is -1
Parameters:
{int} | iQuantity | new value for property quantity |
Returns:
Setter for property
title
.
Default value is empty/undefined
Parameters:
{string} | sTitle | new value for property title |
Returns:
Setter for property
width
.
Default value is auto
Parameters:
Returns:
Getter for property
height
. Defines the height of the control only if the heightType prperty is set to None. Must be set in rems for the correct work in the UnifiedThingInspector.
Default value is 10rem
- Deprecated:
- Since version 1.17.1. This property was replaced by heightType property.
Returns:
getRowSpan(): int
Getter for property
rowSpan
. Defines the number of rows that the control represents in an external layout.
Default value is 1
- Deprecated:
- Since version 1.17.1. It is not used any more for the laoyut calculations in UnifiedThingInspector.
Returns:
{int} | the value of property rowSpan |
Setter for property
height
.
Default value is 10rem
Parameters:
- Deprecated:
- Since version 1.17.1. This property was replaced by heightType property.
Returns:
Setter for property
rowSpan
.
Default value is 1
Parameters:
{int} | iRowSpan | new value for property rowSpan |
- Deprecated:
- Since version 1.17.1. It is not used any more for the laoyut calculations in UnifiedThingInspector.
Returns: