private void fireDoInBackgroundEvent() { BackgroundEvent evt = new BackgroundEvent(this); for (BackgroundListener listener : listeners) { listener.doInBackground(evt); } }
private void fireProcessEvent(Object[] data) { BackgroundEvent evt = new BackgroundEvent(BackgroundWorker.this, data); for (BackgroundListener listener : listeners) { listener.process(evt); } }
private void fireStartedEvent() { BackgroundEvent evt = new BackgroundEvent(this); for (BackgroundListener listener : listeners) { listener.started(evt); } }
private void fireDoneEvent() { BackgroundEvent evt = new BackgroundEvent(this); for (BackgroundListener listener : listeners) { listener.done(evt); } }