net.datacrow.fileimporters
Interface IFileImportClient

All Known Implementing Classes:
FileImportDialog, MusicFileImportDialog

public interface IFileImportClient

This client can be updated on events and results form a file import process.

Author:
Robert Jan van der Waals
See Also:
FileImporter

Method Summary
 void addError(java.lang.Throwable e)
          Adds an error.
 void addMessage(java.lang.String message)
          Adds a messages.
 boolean cancelled()
          Indicates the process has been canceled.
 void finish()
          Indicate the process has finished.
 DcObject getDcContainer()
          The container to which the resulted items are added.
 int getDirectoryUsage()
          The directory usage implementation (free form).
 DcModule getModule()
           
 Region getRegion()
          The used region.
 SearchMode getSearchMode()
          The used search mode.
 IServer getServer()
          The used server.
 DcObject getStorageMedium()
          The storage medium to apply on the resulted items.
 void initProgressBar(int max)
          Sets the expected result count.
 void updateProgressBar(int value)
          Updates the progress bar to the specified value.
 boolean useOnlineServices()
          Indicates if online services should be used.
 

Method Detail

addMessage

void addMessage(java.lang.String message)
Adds a messages.

Parameters:
message -

addError

void addError(java.lang.Throwable e)
Adds an error.

Parameters:
e -

initProgressBar

void initProgressBar(int max)
Sets the expected result count.

Parameters:
max -

updateProgressBar

void updateProgressBar(int value)
Updates the progress bar to the specified value.

Parameters:
value -

cancelled

boolean cancelled()
Indicates the process has been canceled.


useOnlineServices

boolean useOnlineServices()
Indicates if online services should be used.


finish

void finish()
Indicate the process has finished.


getSearchMode

SearchMode getSearchMode()
The used search mode.

Returns:
The search mode or null.

getServer

IServer getServer()
The used server.


getRegion

Region getRegion()
The used region.

Returns:
The region or null.

getDcContainer

DcObject getDcContainer()
The container to which the resulted items are added.

Returns:
A container or null.

getStorageMedium

DcObject getStorageMedium()
The storage medium to apply on the resulted items.

Returns:
A storage medium or null.

getDirectoryUsage

int getDirectoryUsage()
The directory usage implementation (free form).


getModule

DcModule getModule()