Package com.uc4.communication
Class DefaultNotificationListener
- java.lang.Object
-
- com.uc4.communication.DefaultNotificationListener
-
- All Implemented Interfaces:
INotificationListener
public class DefaultNotificationListener extends java.lang.Object implements INotificationListener
Default Implementation of theINotificationListenerinterface. Subclasses can be created if only a few methods of theINotificationListenerare needed. The advantage of creating a sub class is that the code which uses the UC4 Application Interface does not need to be changed whenever a new method is added to theINotificationListenerinterface.
-
-
Constructor Summary
Constructors Constructor Description DefaultNotificationListener()
-
Method Summary
All Methods Instance Methods Concrete 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()This method is called if the activity list changed.voidasyncMessage(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()This method is called if a notification was added or removed for the current user.voidprocessingStarted()This method is called after the client state has changed to active.voidprocessingStopped()This method is called after the client state has changed to stop.voidpromptInputRequired(int runID)This method is called if prompt values are required in order to a execute an object.voidread(Form form)This method is called when activating an object which requires user input.voidtreeChanged()This method is called if the tree structure in UC4 has changed.
-
-
-
Method Detail
-
asyncMessage
public void asyncMessage(AsyncMessage message)
Description copied from interface:INotificationListenerThis method is called if a new message is available.- Specified by:
asyncMessagein interfaceINotificationListener- Parameters:
message- Message
-
read
public void read(Form form)
Description copied from interface:INotificationListenerThis 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.- Specified by:
readin interfaceINotificationListener- Parameters:
form-Formform
-
treeChanged
public void treeChanged()
Description copied from interface:INotificationListenerThis method is called if the tree structure in UC4 has changed.- Specified by:
treeChangedin interfaceINotificationListener
-
activityListChanged
public void activityListChanged()
Description copied from interface:INotificationListenerThis method is called if the activity list changed.- Specified by:
activityListChangedin interfaceINotificationListener
-
highestCallOperatorChanged
public void highestCallOperatorChanged()
Description copied from interface:INotificationListenerThis method is called if a notification was added or removed for the current user.- Specified by:
highestCallOperatorChangedin interfaceINotificationListener
-
processingStopped
public void processingStopped()
Description copied from interface:INotificationListenerThis method is called after the client state has changed to stop.- Specified by:
processingStoppedin interfaceINotificationListener
-
processingStarted
public void processingStarted()
Description copied from interface:INotificationListenerThis method is called after the client state has changed to active.- Specified by:
processingStartedin interfaceINotificationListener
-
activationMessages
public void activationMessages(int runNumner, UC4ObjectName task, TranslatedMessage[] messages)Description copied from interface:INotificationListenerThis method is called if there is an activation protocol for a task.- Specified by:
activationMessagesin interfaceINotificationListener- Parameters:
runNumner- RUN# of the tasktask- Name of the taskmessages- Array containing the messages
-
promptInputRequired
public void promptInputRequired(int runID)
Description copied from interface:INotificationListenerThis method is called if prompt values are required in order to a execute an object.- Specified by:
promptInputRequiredin interfaceINotificationListener- Parameters:
runID- Run ID of the Object.
-
handleIOException
public void handleIOException(java.io.IOException e)
Description copied from interface:INotificationListenerThis method is called if there was an I/O-error.- Specified by:
handleIOExceptionin interfaceINotificationListener- Parameters:
e- Exception describing the error
-
-