Class sap.ca.ui.PictureViewerModule: sap/ca/ui/PictureViewer
Picture viewer control relying on the TileContainer control
Deprecated API:Since version 1.22. 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.
sClassName
and enriches it with the information contained in oClassInfo
.fnFunction
to the 'pictureDeleted' event of this sap.ca.ui.PictureViewer
.fnFunction
from the 'pictureDeleted' event of this sap.ca.ui.PictureViewer
.sap.ca.ui.PictureViewerItem
in the aggregation named items
and returns its index if found or -1 otherwise. 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
- tileScaling : float (default: 0.95)
- removable : boolean (default: false)
- Aggregations
- items(default aggregation) : sap.ca.ui.PictureViewerItem[]
- Associations
- Events
- pictureDeleted : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
In addition, all settings applicable to the base type sap.m.TileContainer can be used as well.
{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. 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.
{sap.ui.base.Event} | oControlEvent | |
{sap.ui.base.EventProvider} | oControlEvent.getSource | |
{object} | oControlEvent.getParameters |
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of informations as described in Element.extend.
{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. |
{function} | the created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
fnFunction
to the 'pictureDeleted' event of this sap.ca.ui.PictureViewer
.. When called, the context of the event handler (its
this
) will be bound to oListener if specified otherwise to this sap.ca.ui.PictureViewer
.
itself. Thrown when user delete an image
{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.ca.ui.PictureViewer .itself. |
{sap.ca.ui.PictureViewer} | this to allow method chaining |
iIndex
from the items
aggregation. {sap.ca.ui.PictureViewerItem} | iIndex | the index of the picture to delete; if empty, the current picture is deleted |
{int} | iIndex | the 0 -based index of the picture collection to delete; if iIndex is out of range or empty, the current image will be deleted. |
{sap.ca.ui.PictureViewer} | this to allow method chaining |
items
. {sap.ca.ui.PictureViewer} | this to allow method chaining |
fnFunction
from the 'pictureDeleted' event of this sap.ca.ui.PictureViewer
.The passed function and listener object must match the ones used for event registration.
{function} | fnFunction | The function to call, when the event occurs. |
{object} | oListener | Context object on which the given function had to be called. |
{sap.ca.ui.PictureViewer} | this to allow method chaining |
{Map} | mArguments? | the arguments to pass along with the event. |
{sap.ca.ui.PictureViewer} | this to allow method chaining |
{sap.ca.ui.PictureViewer} | the current picture index |
items
.Aggregation of PictureViewerItem that contains either a picture URI or the actual Image control.
Note: this is the default aggregation for PictureViewer.
{sap.ca.ui.PictureViewerItem[]} |
removable
. Defines whether or not you can remove a picture Default value is false
{boolean} | the value of property removable |
tileScaling
. Percentage of the space occupied by the image in the picture viewer control. Please note that if the factor is too close to 1, the navigation arrows usually displayed in desktop mode will not be available Default value is 0.95
{float} | the value of property tileScaling |
sap.ca.ui.PictureViewerItem
in the aggregation named items
and returns its index if found or -1 otherwise. {sap.ca.ui.PictureViewerItem} | oItem | the item whose index is looked for. |
{int} | the index of the provided control in the aggregation if found, or -1 otherwise |
items
.Additionally unregisters them from the hosting UIArea.
{sap.ca.ui.PictureViewerItem[]} | an array of the removed elements (might be empty) |
items
. {int|string|sap.ca.ui.PictureViewerItem} | vItem | the item to remove or its index or id |
{sap.ca.ui.PictureViewerItem} | the removed item or null |
iIndex
from the items
aggregation. {sap.ca.ui.PictureViewerItem} | iIndex | the index of the picture to select; if empty, the first picture is selected |
{int} | iIndex | the 0 -based index of the aggregation to select; for a negative value of iIndex , the picture at position 0 is selected; for a value greater than the current size of the aggregation, the selected picture at the last position is selected |
{sap.ca.ui.PictureViewer} | this to allow method chaining |
fTileScale |
oItem
to the aggregation named items
. {sap.ca.ui.PictureViewerItem} | oItem | the item to add; if empty, nothing is inserted |
- Deprecated:
- Use aggregation "tiles"
{sap.ca.ui.PictureViewer} | this to allow method chaining |
items
. When adding a new item to the aggregation, a sap.ca.ui.PictureTile is actually created with its own ID and added to the internal TileContainer. {sap.ca.ui.PictureViewerItem} | 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 |
- Deprecated:
- Use aggregation "tiles"
{sap.ca.ui.PictureViewer} | this to allow method chaining |