fr.ifremer.wao.ui.components
Class CsvImport

java.lang.Object
  extended by fr.ifremer.wao.ui.components.CsvImport

public class CsvImport
extends Object

This component is used to import a csvFile using a form. The page using this component must provide a ImportEngine to execute the import when csv file is uploaded. An event "imported" will be triggered after success. The page can use an "onImported(ErrorReport report)" method to display errors and informations from import. Created: 18 juin 2010

Version:
$Id$
Author:
fdesbois

Field Summary
protected static String EVENT_IMPORTED
          Event triggered after form submission success
protected static String MIMETYPE_CSV
           
protected static String MIMETYPE_GZIP
           
 
Constructor Summary
CsvImport()
           
 
Method Summary
protected  InputStream getStream()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVENT_IMPORTED

protected static final String EVENT_IMPORTED
Event triggered after form submission success

See Also:
Constant Field Values

MIMETYPE_GZIP

protected static final String MIMETYPE_GZIP
See Also:
Constant Field Values

MIMETYPE_CSV

protected static final String MIMETYPE_CSV
See Also:
Constant Field Values
Constructor Detail

CsvImport

public CsvImport()
Method Detail

getStream

protected InputStream getStream()
                         throws IOException
Throws:
IOException


Copyright © 2009-2010 Ifremer. All Rights Reserved.