Groovy Documentation

org.jdesktop.swingx
[Java] Class BackgroundWorker.DelegateWorker

java.lang.Object
  javax.swing.SwingWorker
      org.jdesktop.swingx.BackgroundWorker.DelegateWorker
All Implemented Interfaces:
PropertyChangeListener

private final class BackgroundWorker.DelegateWorker
extends SwingWorker

Create a new DelegateWorker. This is not intended to be called outside of BackgroundWorker


Constructor Summary
private BackgroundWorker.DelegateWorker()

 
Method Summary
protected Object doInBackground()

Fires the done event.

private void doPublish(Object... chunks)

protected void done()

Fires the process event.

protected void process(Object... chunks)

Propogates (and if necessary mutates) property change events from SwingWorker to BackgroundWorker.

void propertyChange(PropertyChangeEvent evt)

Necessary because setProgress cannot be overridden or exposed directly

private void setProgressPercent(int percent)

Necessary because publish cannot be overridden or exposed directly

 
Methods inherited from class SwingWorker
run, get, get, getState, execute, cancel, addPropertyChangeListener, removePropertyChangeListener, firePropertyChange, getProgress, isCancelled, isDone, getPropertyChangeSupport, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Constructor Detail

BackgroundWorker.DelegateWorker

private BackgroundWorker.DelegateWorker()


 
Method Detail

doInBackground

protected Object doInBackground()
Fires the done event. This must be called on the EDT.


doPublish

private void doPublish(Object... chunks)


done

protected void done()
Fires the process event. This must be called on the EDT.


process

protected void process(Object... chunks)
Propogates (and if necessary mutates) property change events from SwingWorker to BackgroundWorker. This must be called on the EDT.


propertyChange

public void propertyChange(PropertyChangeEvent evt)
Necessary because setProgress cannot be overridden or exposed directly


setProgressPercent

private void setProgressPercent(int percent)
Necessary because publish cannot be overridden or exposed directly


 

Groovy Documentation