org.fife.ui.rtextfilechooser
Interface FilePasteCallback

All Known Implementing Classes:
DefaultFilePasteCallback

public interface FilePasteCallback

Listens as a copy/paste operation is performed by an instance of FilePasteThread. Implementations can display a progress bar in the UI, or a ProgressMonitor, to keep the user updated on the operation's progress.

Version:
1.0
Author:
Robert Futrell
See Also:
DefaultFilePasteCallback

Method Summary
 boolean filePasteUpdate(int pasteCount, int total, java.io.File justPastedFile)
          Called when a file is pasted, or the total number of files to paste has been recalculated.
 void pasteOperationCompleted(int pasteCount)
          Called when the paste operation has completed.
 

Method Detail

filePasteUpdate

boolean filePasteUpdate(int pasteCount,
                        int total,
                        java.io.File justPastedFile)
Called when a file is pasted, or the total number of files to paste has been recalculated.

Parameters:
pasteCount - The number of files pasted thus far.
total - The total number of files to paste.
justPastedFile - The name of a file just pasted, or null if this event is simply specifying a new value for total.
Returns:
Whether the operation should be prematurely terminated. If this is true, any remaining files will not be copied.

pasteOperationCompleted

void pasteOperationCompleted(int pasteCount)
Called when the paste operation has completed.

Parameters:
pasteCount - The total number of files ultimately pasted.