mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-05 08:55:08 -05:00
34 lines
698 B
Java
34 lines
698 B
Java
|
|
package net.sourceforge.tuned.ui;
|
|
|
|
|
|
import java.beans.PropertyChangeEvent;
|
|
import java.beans.PropertyChangeListener;
|
|
|
|
import javax.swing.SwingWorker;
|
|
|
|
|
|
public abstract class SwingWorkerPropertyChangeAdapter implements PropertyChangeListener {
|
|
|
|
public void propertyChange(PropertyChangeEvent evt) {
|
|
if (evt.getPropertyName().equals("progress"))
|
|
progress(evt);
|
|
else if (evt.getNewValue().equals(SwingWorker.StateValue.STARTED))
|
|
started(evt);
|
|
else if (evt.getNewValue().equals(SwingWorker.StateValue.DONE))
|
|
done(evt);
|
|
}
|
|
|
|
|
|
public void started(PropertyChangeEvent evt) {
|
|
}
|
|
|
|
|
|
public void done(PropertyChangeEvent evt) {
|
|
}
|
|
|
|
|
|
public void progress(PropertyChangeEvent evt) {
|
|
}
|
|
}
|