sap.suite.ui.commons.FeedTile.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.suite.ui.commons.FeedTile 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.FeedTile.
Returns:
Adds some item oItem
to the aggregation named items
.
Parameters:
Returns:
Attach event handler
fnFunction
to the 'press' event of this
sap.suite.ui.commons.FeedTile
.
. When called, the context of the event handler (its
this
) will be bound to
oListener if specified otherwise to this sap.suite.ui.commons.FeedTile
.
itself. The event fired when the user clicks on the 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.FeedTile . itself. |
Returns:
Destroys all the items in the aggregation named items
.
Returns:
Detach event handler
fnFunction
from the 'press' event of this
sap.suite.ui.commons.FeedTile
.
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 press to attached listeners.
Parameters:
{Map} | mArguments? | the arguments to pass along with the event. |
Returns:
Getter for property
defaultImages
. A list of default images that is cycled by the control when no image is available for a feed item or when no feed items exist. After a random image is displayed first time, control cycles through this list of images.
Default value is empty/undefined
Returns:
getDisplayArticleImage(): boolean
Getter for property
displayArticleImage
. To display article Image or not. If it is true, the article Image will be displayed based on precedence. If it is false, the default image will be displayed.
Default value is true
Returns:
{boolean} | the value of property displayArticleImage |
getDisplayDuration(): int
Getter for property
displayDuration
. The length of time in seconds the control displays each feed item. Default value is 5 seconds.
Default value is 5
Returns:
{int} | the value of property displayDuration |
Getter for aggregation items
.
The feed items the control cycles through.
Returns:
getSource(): string
Getter for property
source
. The source of the feed item.
Default value is empty/undefined
Returns:
{string} | the value of property source |
indexOfItem(oItem): int
Checks for the provided sap.suite.ui.commons.FeedItem
in the aggregation named items
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 item into the aggregation named items
.
Parameters:
{sap.suite.ui.commons.FeedItem} | oItem | the item to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the item should be inserted at; for a negative value of iIndex , the item is inserted at position 0; for a value greater than the current size of the aggregation, the item is inserted at the last position |
Returns:
Removes all the controls in the aggregation named items
.
Additionally unregisters them from the hosting UIArea.
Returns:
Removes an item from the aggregation named items
.
Parameters:
Returns:
setDefaultImages(oDefaultImages)
Validate the array of URI first and then set the defaultImages property
Parameters:
Setter for property
displayArticleImage
.
Default value is true
Parameters:
{boolean} | bDisplayArticleImage | new value for property displayArticleImage |
Returns:
setDisplayDuration(iDisplayDuration)
Set displayDuration property for the control
Parameters:
Setter for property
source
.
Default value is empty/undefined
Parameters:
{string} | sSource | new value for property source |
Returns:
stageModel(oModel)
Set a new model of feed items, such as when a feed aggregator has collected the latest feed items. This model is staged (not immediately set on the control) to avoid re-rendering before the currently displayed article is faded out. Therefore a smooth transition between the display of feed items is always maintained.
Parameters:
| oModel | Model of new feed items. |