net.shredzone.ifish.db
Class StatusCallback.DefaultStatusCallback

java.lang.Object
  extended by net.shredzone.ifish.db.StatusCallback.DefaultStatusCallback
All Implemented Interfaces:
StatusCallback
Enclosing interface:
StatusCallback

public static class StatusCallback.DefaultStatusCallback
extends Object
implements StatusCallback

A default implementation of the StatusCallback class, which is just doing nothing. It is convenient to inherit from this class to implement own StatusCallbacks without needing to implement all the methods.

Method documentation see StatusCallback.


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.shredzone.ifish.db.StatusCallback
StatusCallback.DefaultStatusCallback
 
Constructor Summary
StatusCallback.DefaultStatusCallback()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatusCallback.DefaultStatusCallback

public StatusCallback.DefaultStatusCallback()
Method Detail

setMaxEntries

public void setMaxEntries(int max)
Description copied from interface: StatusCallback
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.

Specified by:
setMaxEntries in interface StatusCallback
Parameters:
max - Maximum number of entries.

setCurrentIndex

public void setCurrentIndex(int index)
Description copied from interface: StatusCallback
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.

Specified by:
setCurrentIndex in interface StatusCallback
Parameters:
index - Current entry.

setCurrentEntry

public void setCurrentEntry(Entry entry)
Description copied from interface: StatusCallback
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.

Specified by:
setCurrentEntry in interface StatusCallback
Parameters:
entry - Entry currently being processed, or null.

setCurrentDir

public void setCurrentDir(File base,
                          File dir)
Description copied from interface: StatusCallback
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.

Specified by:
setCurrentDir in interface StatusCallback
Parameters:
base - Base directory
dir - Current directory


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