Class sap.uiext.inbox.composite.InboxTaskCommentsModule: sap/uiext/inbox/composite/InboxTaskComments
InboxTaskComments
sClassName
and enriches it with the information contained in oClassInfo
.fnFunction
to the 'commentSubmit' event of this sap.uiext.inbox.composite.InboxTaskComments
.fnFunction
from the 'commentSubmit' event of this sap.uiext.inbox.composite.InboxTaskComments
.sap.uiext.inbox.composite.InboxComment
in the aggregation named comments
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
- feederSender : string
- feederThumbnailSrc : sap.ui.core.URI
- showFeeder : boolean (default: true)
- showHeader : boolean (default: false)
- Aggregations
- comments : sap.uiext.inbox.composite.InboxComment[]
- Associations
- Events
- commentSubmit : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
{string} | sId? | id for the new control, generated automatically if no id is given |
{object} | mSettings? | initial settings for the new control |
{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 |
oComment
to the aggregation named comments
. {sap.uiext.inbox.composite.InboxComment} | oComment | the comment to add; if empty, nothing is inserted |
{sap.uiext.inbox.composite.InboxTaskComments} | this to allow method chaining |
fnFunction
to the 'commentSubmit' event of this sap.uiext.inbox.composite.InboxTaskComments
.. When called, the context of the event handler (its
this
) will be bound to oListener if specified otherwise to this sap.uiext.inbox.composite.InboxTaskComments
.
itself. Event is raised when submit on the feeder is pressed.
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.InboxTaskComments .itself. |
Returns:
{sap.uiext.inbox.composite.InboxTaskComments} | this to allow method chaining |
destroyComments(): sap.uiext.inbox.composite.InboxTaskComments Destroys all the comments in the aggregation named comments
. Returns:{sap.uiext.inbox.composite.InboxTaskComments} this
to allow method chaining
detachCommentSubmit(fnFunction, oListener): sap.uiext.inbox.composite.InboxTaskComments Detach event handler fnFunction
from the 'commentSubmit' event of this sap.uiext.inbox.composite.InboxTaskComments
.
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:{sap.uiext.inbox.composite.InboxTaskComments} this
to allow method chaining
fireCommentSubmit(mArguments?): sap.uiext.inbox.composite.InboxTaskComments Fire event commentSubmit to attached listeners. Parameters:{Map} mArguments? the arguments to pass along with the event.
Returns:{sap.uiext.inbox.composite.InboxTaskComments} this
to allow method chaining
getComments(): sap.uiext.inbox.composite.InboxComment[] Getter for aggregation comments
.
URL to the thumbnail image. Returns:{sap.uiext.inbox.composite.InboxComment[]}
getFeederSender(): string Getter for property feederSender
. Sender for the comment feeder Default value is empty/undefined
Returns:{string} the value of property feederSender
getFeederThumbnailSrc(): sap.ui.core.URI Getter for property feederThumbnailSrc
. URL to the thumbnail image for the comment feeder. Default value is empty/undefined
Returns:{sap.ui.core.URI} the value of property feederThumbnailSrc
getShowFeeder(): boolean Getter for property showFeeder
. Boolean value for visibilty of comment feeder Default value is true
Returns:{boolean} the value of property showFeeder
getShowHeader(): boolean Getter for property showHeader
. Boolean value for visibility of header Default value is false
Returns:{boolean} the value of property showHeader
indexOfComment(oComment): int Checks for the provided sap.uiext.inbox.composite.InboxComment
in the aggregation named comments
and returns its index if found or -1 otherwise. Parameters:{sap.uiext.inbox.composite.InboxComment} oComment the comment whose index is looked for.
Returns:{int} the index of the provided control in the aggregation if found, or -1 otherwise
insertComment(oComment, iIndex): sap.uiext.inbox.composite.InboxTaskComments Inserts a comment into the aggregation named comments
. Parameters:{sap.uiext.inbox.composite.InboxComment} oComment the comment to insert; if empty, nothing is inserted {int} iIndex the 0
-based index the comment should be inserted at; for a negative value of iIndex
, the comment is inserted at position 0; for a value greater than the current size of the aggregation, the comment is inserted at the last position
Returns:{sap.uiext.inbox.composite.InboxTaskComments} this
to allow method chaining
removeAllComments(): sap.uiext.inbox.composite.InboxComment[] Removes all the controls in the aggregation named comments
.
Additionally unregisters them from the hosting UIArea. Returns:{sap.uiext.inbox.composite.InboxComment[]} an array of the removed elements (might be empty)
removeComment(vComment): sap.uiext.inbox.composite.InboxComment Removes an comment from the aggregation named comments
. Parameters:{int|string|sap.uiext.inbox.composite.InboxComment} vComment the comment to remove or its index or id
Returns:{sap.uiext.inbox.composite.InboxComment} the removed comment or null
setFeederSender(sFeederSender): sap.uiext.inbox.composite.InboxTaskComments Setter for property feederSender
. Default value is empty/undefined
Parameters:{string} sFeederSender new value for property feederSender
Returns:{sap.uiext.inbox.composite.InboxTaskComments} this
to allow method chaining
setFeederThumbnailSrc(sFeederThumbnailSrc): sap.uiext.inbox.composite.InboxTaskComments Setter for property feederThumbnailSrc
. Default value is empty/undefined
Parameters:{sap.ui.core.URI} sFeederThumbnailSrc new value for property feederThumbnailSrc
Returns:{sap.uiext.inbox.composite.InboxTaskComments} this
to allow method chaining
setShowFeeder(bShowFeeder): sap.uiext.inbox.composite.InboxTaskComments Setter for property showFeeder
. Default value is true
Parameters:{boolean} bShowFeeder new value for property showFeeder
Returns:{sap.uiext.inbox.composite.InboxTaskComments} this
to allow method chaining
setShowHeader(bShowHeader): sap.uiext.inbox.composite.InboxTaskComments Setter for property showHeader
. Default value is false
Parameters:{boolean} bShowHeader new value for property showHeader
Returns:{sap.uiext.inbox.composite.InboxTaskComments} this
to allow method chaining