CubeTwister 2.0alpha142 2012-02-11

ch.randelshofer.rubik.impexp
Interface Importer

All Known Implementing Classes:
CSVImporter, CubeExplorerImporter

public interface Importer

Author:
werni

Method Summary
 java.util.ArrayList importFile(java.io.File file, ProgressObserver p)
          Imports the contents of the specified file into the DocumentModel.
 void setDocumentModel(DocumentModel model)
          Sets the document model.
 void setPreviewFile(java.io.File file)
          Sets a file for previewing by the panels of the importer.
 

Method Detail

setDocumentModel

void setDocumentModel(DocumentModel model)
Sets the document model.


setPreviewFile

void setPreviewFile(java.io.File file)
Sets a file for previewing by the panels of the importer.


importFile

java.util.ArrayList importFile(java.io.File file,
                               ProgressObserver p)
                               throws java.io.IOException
Imports the contents of the specified file into the DocumentModel.

Returns:
Returns an ArrayList of ScriptModel's.
Throws:
java.io.IOException

(c) Werner Randelshofer.
All rights reserved.