net.shredzone.ifish.db
Interface StatusCallback

All Known Implementing Classes:
StatusCallback.DefaultStatusCallback, StatusProgressBar

public interface StatusCallback

The StatusCallback will keep the implementing class informed about the current state of importing, synchronizing and exporting operations of NaviDb objects.

Version:
$Id: StatusCallback.java 291 2009-04-28 21:29:27Z shred $

Nested Class Summary
static class StatusCallback.DefaultStatusCallback
          A default implementation of the StatusCallback class, which is just doing nothing.
 
Method Summary
 void setCurrentDir(File base, File dir)
          Set the current directory being processed.
 void setCurrentEntry(Entry entry)
          Set the current entry that is being processed by the current action.
 void setCurrentIndex(int index)
          Set the current entry number that is being processed by the current action.
 void setMaxEntries(int max)
          Set the maximum number of entries to be processed by the current action.
 

Method Detail

setMaxEntries

void setMaxEntries(int max)
Set the maximum number of entries to be processed by the current action. If max is negative, then the maximum number is not known. Anyhow, during the operation setMaxEntries could be invoked multiple times.

Parameters:
max - Maximum number of entries.

setCurrentIndex

void setCurrentIndex(int index)
Set the current entry number that is being processed by the current action. If the number is negative, then the current entry number is not known.

Parameters:
index - Current entry.

setCurrentEntry

void setCurrentEntry(Entry entry)
Set the current entry that is being processed by the current action. If null is passed, then no Entry is currently processed, or there are no Entries being processed.

Parameters:
entry - Entry currently being processed, or null.

setCurrentDir

void setCurrentDir(File base,
                   File dir)
Set the current directory being processed. If there are no directories to be processed, dir will be null. Note that this method might be invoked several times, even without any changes.

Parameters:
base - Base directory
dir - Current directory


Copyright © 2007-2011 shredzone.org. All Rights Reserved.