public class DefaultNotificationListener extends java.lang.Object implements INotificationListener
INotificationListener
interface.
Subclasses can be created if only a few methods of the INotificationListener
are 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 the INotificationListener
interface.Constructor and Description |
---|
DefaultNotificationListener() |
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()
This method is called if the activity list changed.
|
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()
This method is called if a notification was added or removed for the current user.
|
void |
processingStarted()
This method is called after the client state has changed to active.
|
void |
processingStopped()
This method is called after the client state has changed to stop.
|
void |
promptInputRequired(int runID)
This method is called if prompt values are required in order to a execute an object.
|
void |
read(Form form)
This method is called when activating an object which requires user input.
|
void |
treeChanged()
This method is called if the tree structure in UC4 has changed.
|
public void asyncMessage(AsyncMessage message)
INotificationListener
asyncMessage
in interface INotificationListener
message
- Messagepublic void read(Form form)
INotificationListener
: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.
read
in interface INotificationListener
form
- Form
formpublic void treeChanged()
INotificationListener
treeChanged
in interface INotificationListener
public void activityListChanged()
INotificationListener
activityListChanged
in interface INotificationListener
public void highestCallOperatorChanged()
INotificationListener
highestCallOperatorChanged
in interface INotificationListener
public void processingStopped()
INotificationListener
processingStopped
in interface INotificationListener
public void processingStarted()
INotificationListener
processingStarted
in interface INotificationListener
public void activationMessages(int runNumner, UC4ObjectName task, TranslatedMessage[] messages)
INotificationListener
activationMessages
in interface INotificationListener
runNumner
- RUN# of the tasktask
- Name of the taskmessages
- Array containing the messagespublic void promptInputRequired(int runID)
INotificationListener
promptInputRequired
in interface INotificationListener
runID
- Run ID of the Object.public void handleIOException(java.io.IOException e)
INotificationListener
handleIOException
in interface INotificationListener
e
- Exception describing the error