use of org.jaffa.modules.messaging.components.queueviewer.ui.IQueueViewerListener in project jaffa-framework by jaffa-projects.
the class QueueListComponent method viewMessages.
public FormKey viewMessages(String queue, MessageModeEnum messageMode) throws ApplicationExceptions, FrameworkException {
QueueViewerComponent viewComponent = (QueueViewerComponent) run("Jaffa.Messaging.QueueViewer");
viewComponent.setReturnToFormKey(getResultsFormKey());
viewComponent.setQueue(queue);
viewComponent.setMessageMode(messageMode);
viewComponent.addQueueViewerListener(new IQueueViewerListener() {
public void processDone(EventObject source) throws ApplicationExceptions, FrameworkException {
displayResults();
}
});
return viewComponent.display();
}
Aggregations