|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
net.sourceforge.fixagora.excel.client.model.ExcelImportTableModel
public class ExcelImportTableModel
The Class ExcelImportTableModel.
Nested Class Summary | |
---|---|
static class |
ExcelImportTableModel.EntryStatus
The Enum EntryStatus. |
Constructor Summary | |
---|---|
ExcelImportTableModel(org.apache.poi.ss.usermodel.Sheet sheet,
boolean updateExisting,
javax.swing.JTable table,
java.util.List<FSecurity> securities)
Instantiates a new excel import table model. |
Method Summary | |
---|---|
int |
getColumnCount()
|
java.lang.String |
getColumnName(int column)
|
java.util.Map<java.lang.Integer,java.lang.String> |
getColumnTypeMap()
Gets the column type map. |
int |
getRowCount()
|
java.util.List<UploadEntry> |
getSecurities()
Gets the securities. |
java.util.Map<java.lang.String,FSecurity> |
getSecurityIDMap()
Gets the security id map. |
java.lang.String |
getStatusText()
Gets the status text. |
java.util.Map<java.lang.String,FSecurity> |
getSymbolMap()
Gets the symbol map. |
ExcelImportTableModel.EntryStatus |
getUploadStatus(int row)
Gets the upload status. |
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
|
boolean |
isCellEditable(int rowIndex,
int columnIndex)
|
boolean |
isRowDisabled(int rowIndex)
Checks if is row disabled. |
boolean |
isUpdateExisting()
Checks if is update existing. |
boolean |
isUploading()
Checks if is uploading. |
void |
setColumnType(java.lang.String selectedItem,
int editingColumn)
Sets the column type. |
void |
setUpdateExisting(boolean updateExisting)
Sets the update existing. |
void |
setUploadStatus(int row,
ExcelImportTableModel.EntryStatus entryStatus)
Sets the upload status. |
void |
toggleRow(int editingRow)
Toggle row. |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExcelImportTableModel(org.apache.poi.ss.usermodel.Sheet sheet, boolean updateExisting, javax.swing.JTable table, java.util.List<FSecurity> securities)
sheet
- the sheetupdateExisting
- the update existingtable
- the tablesecurities
- the securitiesMethod Detail |
---|
public int getColumnCount()
public java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public int getRowCount()
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public void setColumnType(java.lang.String selectedItem, int editingColumn)
selectedItem
- the selected itemeditingColumn
- the editing columnpublic java.util.Map<java.lang.Integer,java.lang.String> getColumnTypeMap()
public java.lang.String getStatusText()
public void toggleRow(int editingRow)
editingRow
- the editing rowpublic boolean isRowDisabled(int rowIndex)
rowIndex
- the row index
public boolean isUpdateExisting()
public void setUpdateExisting(boolean updateExisting)
updateExisting
- the new update existingpublic java.util.Map<java.lang.String,FSecurity> getSymbolMap()
public java.util.Map<java.lang.String,FSecurity> getSecurityIDMap()
public java.util.List<UploadEntry> getSecurities()
public void setUploadStatus(int row, ExcelImportTableModel.EntryStatus entryStatus)
row
- the rowentryStatus
- the entry statuspublic ExcelImportTableModel.EntryStatus getUploadStatus(int row)
row
- the row
public boolean isUploading()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |