Class sap.ushell.components.factsheet.controls.PictureViewerItemModule: sap/ushell/components/factsheet/controls/PictureViewerItem

extends Control

Picture viewer control relying on the TileContainer control

Deprecated API:Since version 1.22.

PictureViewerItem is used in PictureViewer control and is not meant to be consumed outside of PictureViewer usage. PictureViewer was replacing the Carousel as it wasn't supporting some versions of MS Internet Explorer. Now, the sap.m.Carousel is fully functional, please use sap.m.Carousel instead. This control will not be supported anymore.

Constructor Summary
new sap.ushell.components.factsheet.controls.PictureViewerItem(sId?, mSettings?)Constructor for a new components/factsheet/controls/PictureViewerItem.
Events borrowed from class sap.ui.core.Control
Method Summary
sap.ushell.components.factsheet.controls.PictureViewerItem.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ushell.components.factsheet.controls.PictureViewerItem with name sClassName and enriches it with the information contained in oClassInfo.
sap.ushell.components.factsheet.controls.PictureViewerItem.getMetadata()Returns a metadata object for class sap.ushell.components.factsheet.controls.PictureViewerItem.
destroyImage()Destroys the image in the aggregation named image.
getImage()Getter for aggregation image.
getSrc()Getter for property src.
setImage(oImage)Setter for the aggregated image.
setSrc(sSrc)Setter for property src.
Constructor Detail
new sap.ushell.components.factsheet.controls.PictureViewerItem(sId?, mSettings?)
Constructor for a new components/factsheet/controls/PictureViewerItem.

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
  • Aggregations
  • Associations
    • Events
      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.22.

      PictureViewerItem is used in PictureViewer control and is not meant to be consumed outside of PictureViewer usage. PictureViewer was replacing the Carousel as it wasn't supporting some versions of MS Internet Explorer. Now, the sap.m.Carousel is fully functional, please use sap.m.Carousel instead. This control will not be supported anymore.

      Method Detail
      sap.ushell.components.factsheet.controls.PictureViewerItem.extend(sClassName, oClassInfo?, FNMetaImpl?): function
      Creates a new subclass of class sap.ushell.components.factsheet.controls.PictureViewerItem 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
      sap.ushell.components.factsheet.controls.PictureViewerItem.getMetadata(): sap.ui.base.Metadata
      Returns a metadata object for class sap.ushell.components.factsheet.controls.PictureViewerItem.
      Returns:
      {sap.ui.base.Metadata} Metadata object describing this class
      Destroys the image in the aggregation named image.
      Returns:
      {sap.ushell.components.factsheet.controls.PictureViewerItem}this to allow method chaining
      getImage(): sap.m.Image
      Getter for aggregation image.
      Pass in an existing Image control to be used inside the PictureViewer
      Returns:
      {sap.m.Image}
      getSrc(): string
      Getter for property src. Image source url.

      Default value is empty/undefined

      Returns:
      {string} the value of property src
      Setter for the aggregated image.
      Parameters:
      {sap.m.Image}oImage
      Returns:
      {sap.ushell.components.factsheet.controls.PictureViewerItem}this to allow method chaining
      Setter for property src.

      Default value is empty/undefined

      Parameters:
      {string}sSrc new value for property src
      Returns:
      {sap.ushell.components.factsheet.controls.PictureViewerItem}this to allow method chaining