sap.uiext.inbox.composite.InboxAttachmentsTileContainer.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.uiext.inbox.composite.InboxAttachmentsTileContainer 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.uiext.inbox.composite.InboxAttachmentsTileContainer.
Returns:
Adds some attachment oAttachment
to the aggregation named attachments
.
Parameters:
Returns:
addUploadHeader(): void
method to add a header parameter while uploading a file. This method takes header name and header value as input.
Attach event handler
fnFunction
to the 'uploadButtonPress' event of this
sap.uiext.inbox.composite.InboxAttachmentsTileContainer
.
. When called, the context of the event handler (its
this
) will be bound to
oListener if specified otherwise to this sap.uiext.inbox.composite.InboxAttachmentsTileContainer
.
itself. event is fired to add all the header parameters just before uploading a file
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.uiext.inbox.composite.InboxAttachmentsTileContainer . itself. |
Returns:
Attach event handler
fnFunction
to the 'uploadFailed' event of this
sap.uiext.inbox.composite.InboxAttachmentsTileContainer
.
. When called, the context of the event handler (its
this
) will be bound to
oListener if specified otherwise to this sap.uiext.inbox.composite.InboxAttachmentsTileContainer
.
itself. event is fired when uploading a file has failed
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.uiext.inbox.composite.InboxAttachmentsTileContainer . itself. |
Returns:
Attach event handler
fnFunction
to the 'uploadSuccess' event of this
sap.uiext.inbox.composite.InboxAttachmentsTileContainer
.
. When called, the context of the event handler (its
this
) will be bound to
oListener if specified otherwise to this sap.uiext.inbox.composite.InboxAttachmentsTileContainer
.
itself. event is fired when uploading a file is completed successfully
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.uiext.inbox.composite.InboxAttachmentsTileContainer . itself. |
Returns:
Destroys all the attachments in the aggregation named attachments
.
Returns:
Detach event handler
fnFunction
from the 'uploadButtonPress' event of this
sap.uiext.inbox.composite.InboxAttachmentsTileContainer
.
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 'uploadFailed' event of this
sap.uiext.inbox.composite.InboxAttachmentsTileContainer
.
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 'uploadSuccess' event of this
sap.uiext.inbox.composite.InboxAttachmentsTileContainer
.
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 uploadButtonPress to attached listeners.
Parameters:
{Map} | mArguments? | the arguments to pass along with the event. |
Returns:
Fire event uploadFailed to attached listeners.
Parameters:
{Map} | mArguments? | the arguments to pass along with the event. |
Returns:
Fire event uploadSuccess to attached listeners.
Parameters:
{Map} | mArguments? | the arguments to pass along with the event. |
Returns:
Getter for aggregation attachments
.
aggregation for attachments tile
Returns:
getEnteredDescription(): string
Getter for property
enteredDescription
. description string entered by user while uploading a file
Default value is empty/undefined
Returns:
{string} | the value of property enteredDescription |
getFileName(): string
Getter for property
fileName
. name of the selected file for uploading
Default value is empty/undefined
Returns:
{string} | the value of property fileName |
getFileType(): string
Getter for property
fileType
. type of the selected file for uploading
Default value is empty/undefined
Returns:
{string} | the value of property fileType |
getIsFileSelected(): boolean
Getter for property
isFileSelected
. boolean property to indicate if user has selected a file to upload
Default value is empty/undefined
Returns:
{boolean} | the value of property isFileSelected |
getShowAddTile(): boolean
Getter for property
showAddTile
. boolean value to indicate whether to show Add Attachment tile
Default value is true
Returns:
{boolean} | the value of property showAddTile |
getUploadUrl(): string
Getter for property
uploadUrl
. URL to upload the selected file
Default value is empty/undefined
Returns:
{string} | the value of property uploadUrl |
indexOfAttachment(oAttachment): int
Checks for the provided sap.uiext.inbox.composite.InboxAttachmentTile
in the aggregation named attachments
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 attachment into the aggregation named attachments
.
Parameters:
{sap.uiext.inbox.composite.InboxAttachmentTile} | oAttachment | the attachment to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the attachment should be inserted at; for a negative value of iIndex , the attachment is inserted at position 0; for a value greater than the current size of the aggregation, the attachment is inserted at the last position |
Returns:
Removes all the controls in the aggregation named attachments
.
Additionally unregisters them from the hosting UIArea.
Returns:
Removes an attachment from the aggregation named attachments
.
Parameters:
Returns:
removeUploadHeader(): void
method to remove a headerParameter of fileUploader
Setter for property
enteredDescription
.
Default value is empty/undefined
Parameters:
{string} | sEnteredDescription | new value for property enteredDescription |
Returns:
Setter for property
fileName
.
Default value is empty/undefined
Parameters:
{string} | sFileName | new value for property fileName |
Returns:
Setter for property
fileType
.
Default value is empty/undefined
Parameters:
{string} | sFileType | new value for property fileType |
Returns:
Setter for property
isFileSelected
.
Default value is empty/undefined
Parameters:
{boolean} | bIsFileSelected | new value for property isFileSelected |
Returns:
Setter for property
showAddTile
.
Default value is true
Parameters:
{boolean} | bShowAddTile | new value for property showAddTile |
Returns:
Setter for property
uploadUrl
.
Default value is empty/undefined
Parameters:
{string} | sUploadUrl | new value for property uploadUrl |
Returns: