|
|
|
|
@ -6,6 +6,7 @@
|
|
|
|
|
|
|
|
|
|
package siprp.importer;
|
|
|
|
|
|
|
|
|
|
import com.evolute.utils.*;
|
|
|
|
|
import com.evolute.utils.arrays.*;
|
|
|
|
|
import com.evolute.utils.tables.*;
|
|
|
|
|
import com.evolute.utils.ui.*;
|
|
|
|
|
@ -19,6 +20,8 @@ import javax.swing.table.*;
|
|
|
|
|
|
|
|
|
|
import jxl.*;
|
|
|
|
|
|
|
|
|
|
import siprp.*;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @author psantos
|
|
|
|
|
@ -44,7 +47,7 @@ public class Importer extends CustomJDialog
|
|
|
|
|
private boolean canceled = false;
|
|
|
|
|
private DataChooserWindow dcw;
|
|
|
|
|
private Object vals[][];
|
|
|
|
|
private final int[] DEFAULT_SELECTION = new int[]{ 0, 2, 3, 1, -1, 4, 5, 7, 6, -1 };
|
|
|
|
|
private int[] DEFAULT_SELECTION = new int[]{ 0, 2, 3, 1, -1, 4, 5, 7, 6, -1 };
|
|
|
|
|
|
|
|
|
|
public static final String NAMES[] = new String[]{
|
|
|
|
|
NOME,
|
|
|
|
|
@ -72,6 +75,12 @@ public class Importer extends CustomJDialog
|
|
|
|
|
{
|
|
|
|
|
super( modalFrame, true );
|
|
|
|
|
multipleSelection = multiple;
|
|
|
|
|
|
|
|
|
|
int []selection = ( int [] ) Singleton.getInstance( SingletonConstants.EXCEL_FORMAT );
|
|
|
|
|
if( selection != null )
|
|
|
|
|
{
|
|
|
|
|
DEFAULT_SELECTION = selection;
|
|
|
|
|
}
|
|
|
|
|
setupComponents( filename );
|
|
|
|
|
if( modalFrame == null )
|
|
|
|
|
{
|
|
|
|
|
|