net.sourceforge.fixagora.excel.client.model
Class ExcelParser

java.lang.Object
  extended by net.sourceforge.fixagora.excel.client.model.ExcelParser

public class ExcelParser
extends java.lang.Object

The Class ExcelParser.


Constructor Summary
ExcelParser(ExcelImportTableModel excelImportTableModel)
          Instantiates a new excel parser.
 
Method Summary
 ExcelImportTableModel.EntryStatus checkColumn(int columnIndex, javax.swing.JTable table)
          Check column.
 java.lang.Object convertValue(java.lang.Object value, java.lang.String column)
          Convert value.
 java.lang.String convertValueToString(java.lang.Object value, java.lang.String column)
          Convert value to string.
 java.lang.String[] getComboBoxEntries()
          Gets the combo box entries.
 ExcelImportCell getExcelImportCell(java.lang.Object cellValue, int rowIndex, int columnIndex)
          Gets the excel import cell.
 java.util.List<UploadEntry> getSecurities(javax.swing.JTable table, org.apache.poi.ss.usermodel.Sheet sheet)
          Gets the securities.
 java.lang.String getStatusText(javax.swing.JTable table)
          Gets the status text.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExcelParser

public ExcelParser(ExcelImportTableModel excelImportTableModel)
Instantiates a new excel parser.

Parameters:
excelImportTableModel - the excel import table model
Method Detail

getComboBoxEntries

public java.lang.String[] getComboBoxEntries()
Gets the combo box entries.

Returns:
the combo box entries

getStatusText

public java.lang.String getStatusText(javax.swing.JTable table)
Gets the status text.

Parameters:
table - the table
Returns:
the status text

getExcelImportCell

public ExcelImportCell getExcelImportCell(java.lang.Object cellValue,
                                          int rowIndex,
                                          int columnIndex)
Gets the excel import cell.

Parameters:
cellValue - the cell value
rowIndex - the row index
columnIndex - the column index
Returns:
the excel import cell

checkColumn

public ExcelImportTableModel.EntryStatus checkColumn(int columnIndex,
                                                     javax.swing.JTable table)
Check column.

Parameters:
columnIndex - the column index
table - the table
Returns:
the entry status

convertValue

public java.lang.Object convertValue(java.lang.Object value,
                                     java.lang.String column)
Convert value.

Parameters:
value - the value
column - the column
Returns:
the object

convertValueToString

public java.lang.String convertValueToString(java.lang.Object value,
                                             java.lang.String column)
Convert value to string.

Parameters:
value - the value
column - the column
Returns:
the string

getSecurities

public java.util.List<UploadEntry> getSecurities(javax.swing.JTable table,
                                                 org.apache.poi.ss.usermodel.Sheet sheet)
Gets the securities.

Parameters:
table - the table
sheet - the sheet
Returns:
the securities