public abstract class AbstractFileOperationListener
extends javax.swing.AbstractAction
implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
protected FileSetTableModel |
tableModel
The FileSetTableModel supplied with the constructor, available for inheriting classes.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFileOperationListener(FileSetTableModel model)
The listener is instantiated with a reference to the current FileSetTableModel.
|
protected |
AbstractFileOperationListener(FileSetTableModel model,
java.lang.String name)
The listener is instantiated with a reference to the current FileSetTableModel
and a label for this Action.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Calls the
execute() method for every
selected file from the FileSetTableModel. |
void |
addProgressListener(ProgressListener pl)
Adds a ProgressListener that will be informed about operation progress.
|
protected abstract void |
execute(TargetFile targetFile)
This method will be called for every selected file from the FileSetTableModel.
|
void |
run() |
protected org.apache.commons.logging.Log logger
protected FileSetTableModel tableModel
protected AbstractFileOperationListener(FileSetTableModel model)
model - current FileSetTableModelprotected AbstractFileOperationListener(FileSetTableModel model, java.lang.String name)
model - current FileSetTableModelname - label for controlespublic void actionPerformed(java.awt.event.ActionEvent e)
execute() method for every
selected file from the FileSetTableModel.actionPerformed in interface java.awt.event.ActionListenerpublic void run()
run in interface java.lang.Runnableprotected abstract void execute(TargetFile targetFile)
targetFile - on which operations must be performedpublic void addProgressListener(ProgressListener pl)
pl - ProgressListener