public interface INotificationListener
Listeners are called from a background thread which expects to get control back quickly. If a listener is going to perform a potentially time-consuming operation like processing a large document or doing something that may block, such as performing socket IO, it should arrange to do that work in another thread so it can return to its caller quickly.
Note: This interface may be extended with additional methods in future versions of the API.
Instead of implementing this interface directly we suggest to extend DefaultNotificationListener
instead.
This has the advantage that your subclass does not need to be changed whenever a new method is added to the INotificationListener
interface.
Modifier and Type | Method and Description |
---|---|
void |
activationMessages(int runNumner,
UC4ObjectName task,
TranslatedMessage[] messages)
This method is called if there is an activation protocol for a task.
|
void |
activityListChanged()
Deprecated.
use
IKickEventListener instead |
void |
asyncMessage(AsyncMessage message)
This method is called if a new message is available.
|
void |
handleIOException(java.io.IOException e)
This method is called if there was an I/O-error.
|
void |
highestCallOperatorChanged()
Deprecated.
use
IKickEventListener instead |
void |
processingStarted()
Deprecated.
use
IKickEventListener instead |
void |
processingStopped()
Deprecated.
use
IKickEventListener instead |
void |
promptInputRequired(int runID)
Deprecated.
use
IKickEventListener instead |
void |
read(Form form)
This method is called when activating an object which requires user input.
|
void |
treeChanged()
Deprecated.
use
IKickEventListener instead |
void asyncMessage(AsyncMessage message)
message
- Messagevoid read(Form form)
:READ
in the UC4 documentation.
The request SubmitForm
can be used to send the values to the Server and continue
with the activation of the object.
CancelForm
can be used to cancel the pending form.
This also cancels the action of the object.
form
- Form
form@Deprecated void treeChanged()
IKickEventListener
instead@Deprecated void activityListChanged()
IKickEventListener
instead@Deprecated void highestCallOperatorChanged()
IKickEventListener
instead@Deprecated void processingStopped()
IKickEventListener
instead@Deprecated void processingStarted()
IKickEventListener
insteadvoid activationMessages(int runNumner, UC4ObjectName task, TranslatedMessage[] messages)
runNumner
- RUN# of the tasktask
- Name of the taskmessages
- Array containing the messages@Deprecated void promptInputRequired(int runID)
IKickEventListener
insteadrunID
- Run ID of the Object.void handleIOException(java.io.IOException e)
e
- Exception describing the error