|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectimporter.ExcelImporter
Defines an importer used for importing requirements from MS Excel
Field Summary | |
private ExcelImporterWindow |
eiw
|
private ImportWindow |
iw
|
private jxl.Sheet |
sheet
|
private jxl.Workbook |
workbook
|
Constructor Summary | |
ExcelImporter(ImportWindow iw,
java.io.File excelFile,
Rainbowie p)
Constructs an ExcelImporter |
Method Summary | |
int |
getCols()
Returns the number of columns in the current spreadsheet |
int |
getRows()
Returns the number of rows in the current spreadsheet |
java.lang.String[] |
getSheets()
Returns the names of the spreadsheets in the workbook |
void |
importRequirements(java.util.Vector vector,
int[] indexes)
Imports the requirements defined by the user |
void |
setSheet(int n)
Sets the Excel spreadsheet to use for import |
void |
setupExcelImporterWindow()
Setup the interaction window with the correct data and number of rows and columns. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private jxl.Workbook workbook
private ExcelImporterWindow eiw
private jxl.Sheet sheet
private ImportWindow iw
Constructor Detail |
public ExcelImporter(ImportWindow iw, java.io.File excelFile, Rainbowie p)
iw
- the window used for user interaction
during import processexcelFile
- the Excel file to import fromp
- reference to the programs Parseq objectMethod Detail |
public void setSheet(int n)
n
- the index of the spreadsheet to usepublic java.lang.String[] getSheets()
public int getRows()
public int getCols()
public void setupExcelImporterWindow()
public void importRequirements(java.util.Vector vector, int[] indexes)
vector
- the data vector of the tableindexes
- the index array containg information of the rows
and columns where the requirements to import can be found
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |