Methods
can Receive()
Whether a receiver is currently accepting new objects.
can Receive Multiple Objects()
Whether the receiver is able to handle multiple objects.
can Receive Objects(objects)
Use this to determine if the objects being dropped can be received.
Parameters:
Name | Type | Description |
---|---|---|
objects |
Array | The list of object names about to passed to this receiver |
get Last Receive Failure Message()
This method is abstract and must be implemented by subclasses.
This method is used when module:ct-component/InstrumentReceiver#canReceiveObjects
returns false
and an error message is required to explain why the objects were not accepted.
get Success Message()
This method is abstract and must be implemented by subclasses.
This method is used when module:ct-component/InstrumentReceiver#canReceiveObjects
returns true
and a success message is required to explain when the objects are accepted.
receive Objects(objects, indexopt)
The callback method that is invoked when an object is dropped onto the implementing object.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
objects |
Array | The list of object names being passed to this receiver |
|
index |
number |
<optional> |
The index to insert the new objects at. If not included, objects should be appended to the end. |