Search in sources :

Example 1 with IQueueViewerListener

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();
}
Also used : ApplicationExceptions(org.jaffa.exceptions.ApplicationExceptions) IQueueViewerListener(org.jaffa.modules.messaging.components.queueviewer.ui.IQueueViewerListener) FrameworkException(org.jaffa.exceptions.FrameworkException) QueueViewerComponent(org.jaffa.modules.messaging.components.queueviewer.ui.QueueViewerComponent) EventObject(java.util.EventObject)

Aggregations

EventObject (java.util.EventObject)1 ApplicationExceptions (org.jaffa.exceptions.ApplicationExceptions)1 FrameworkException (org.jaffa.exceptions.FrameworkException)1 IQueueViewerListener (org.jaffa.modules.messaging.components.queueviewer.ui.IQueueViewerListener)1 QueueViewerComponent (org.jaffa.modules.messaging.components.queueviewer.ui.QueueViewerComponent)1