Interface INotificationListener
-
- All Known Implementing Classes:
DefaultNotificationListener
public interface INotificationListenerListener can implement this interface to be notified on events.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
DefaultNotificationListenerinstead. This has the advantage that your subclass does not need to be changed whenever a new method is added to theINotificationListenerinterface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidactivationMessages(int runNumner, UC4ObjectName task, TranslatedMessage[] messages)This method is called if there is an activation protocol for a task.voidactivityListChanged()Deprecated.useIKickEventListenerinsteadvoidasyncMessage(AsyncMessage message)This method is called if a new message is available.voidhandleIOException(java.io.IOException e)This method is called if there was an I/O-error.voidhighestCallOperatorChanged()Deprecated.useIKickEventListenerinsteadvoidprocessingStarted()Deprecated.useIKickEventListenerinsteadvoidprocessingStopped()Deprecated.useIKickEventListenerinsteadvoidpromptInputRequired(int runID)Deprecated.useIKickEventListenerinsteadvoidread(Form form)This method is called when activating an object which requires user input.voidtreeChanged()Deprecated.useIKickEventListenerinstead
-
-
-
Method Detail
-
asyncMessage
void asyncMessage(AsyncMessage message)
This method is called if a new message is available.- Parameters:
message- Message
-
read
void read(Form form)
This method is called when activating an object which requires user input. See also:READin the UC4 documentation.The request
SubmitFormcan be used to send the values to the Server and continue with the activation of the object.CancelFormcan be used to cancel the pending form. This also cancels the action of the object.- Parameters:
form-Formform
-
treeChanged
@Deprecated void treeChanged()
Deprecated.useIKickEventListenerinsteadThis method is called if the tree structure in UC4 has changed.
-
activityListChanged
@Deprecated void activityListChanged()
Deprecated.useIKickEventListenerinsteadThis method is called if the activity list changed.
-
highestCallOperatorChanged
@Deprecated void highestCallOperatorChanged()
Deprecated.useIKickEventListenerinsteadThis method is called if a notification was added or removed for the current user.
-
processingStopped
@Deprecated void processingStopped()
Deprecated.useIKickEventListenerinsteadThis method is called after the client state has changed to stop.
-
processingStarted
@Deprecated void processingStarted()
Deprecated.useIKickEventListenerinsteadThis method is called after the client state has changed to active.
-
activationMessages
void activationMessages(int runNumner, UC4ObjectName task, TranslatedMessage[] messages)This method is called if there is an activation protocol for a task.- Parameters:
runNumner- RUN# of the tasktask- Name of the taskmessages- Array containing the messages
-
promptInputRequired
@Deprecated void promptInputRequired(int runID)
Deprecated.useIKickEventListenerinsteadThis method is called if prompt values are required in order to a execute an object.- Parameters:
runID- Run ID of the Object.
-
handleIOException
void handleIOException(java.io.IOException e)
This method is called if there was an I/O-error.- Parameters:
e- Exception describing the error
-
-