public class ControlDuplicatedLineTableModel extends ControlTableModel
| Modifier and Type | Field and Description |
|---|---|
protected List<ControlError> |
controlErrors
List des erreurs de validation (non null seulement apres validation).
|
protected ControlTableModel |
dataTableModel |
protected int[] |
linesIndex |
protected int[] |
reverseLinesIndex |
listenerList| Constructor and Description |
|---|
ControlDuplicatedLineTableModel(ControlTableModel dataTableModel) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTableModelListener(TableModelListener l) |
protected void |
computeLineIndices()
Compute line indices.
|
protected void |
deleteLine(int lineIndex)
Update linesIndex array to remove an index of a line.
|
int |
findColumn(String columnName) |
void |
fireTableCellUpdated(int row,
int column) |
void |
fireTableChanged(TableModelEvent e) |
void |
fireTableDataChanged() |
void |
fireTableRowsDeleted(int firstRow,
int lastRow) |
void |
fireTableRowsInserted(int firstRow,
int lastRow) |
void |
fireTableRowsUpdated(int firstRow,
int lastRow) |
void |
fireTableStructureChanged() |
CoserConstants.Category |
getCategory()
Return category managed by model.
|
Class<?> |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
String |
getColumnName(int column) |
protected List<ControlError> |
getCurrentModelErrors()
Parse input control errors list, an build a new list with only errors
that will be used by this model.
|
String[] |
getDataAt(int rowIndex)
Retourne la donnée (toutes le String[]) à la ligne demandée.
|
<T extends EventListener> |
getListeners(Class<T> listenerType) |
protected int |
getModifiedRowIndex(int rowIndex)
Look for modified order row index.
|
int |
getRealIndexOfLine(String lineNumber)
Retourne l'index réel de la ligne dans la vue.
|
int |
getRowCount() |
TableModelListener[] |
getTableModelListeners() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
void |
removeTableModelListener(TableModelListener l) |
void |
setControlErrors(List<ControlError> controlErrors) |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex) |
protected ControlTableModel dataTableModel
protected List<ControlError> controlErrors
protected int[] linesIndex
protected int[] reverseLinesIndex
public ControlDuplicatedLineTableModel(ControlTableModel dataTableModel)
public CoserConstants.Category getCategory()
ControlTableModelgetCategory in class ControlTableModelpublic void setControlErrors(List<ControlError> controlErrors)
protected void computeLineIndices()
protected List<ControlError> getCurrentModelErrors()
public int getRowCount()
public int getColumnCount()
public String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelprotected int getModifiedRowIndex(int rowIndex)
rowIndex - initial row indexpublic Object getValueAt(int rowIndex, int columnIndex)
public String[] getDataAt(int rowIndex)
ControlTableModelgetDataAt in class ControlTableModelpublic int getRealIndexOfLine(String lineNumber)
getRealIndexOfLine in class ControlTableModellineNumber - le numero de donnéesprotected void deleteLine(int lineIndex)
lineIndex - index of line to deletepublic int findColumn(String columnName)
findColumn in class AbstractTableModelpublic Class<?> getColumnClass(int columnIndex)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelpublic void fireTableDataChanged()
fireTableDataChanged in class AbstractTableModelpublic void fireTableStructureChanged()
fireTableStructureChanged in class AbstractTableModelpublic void fireTableRowsInserted(int firstRow,
int lastRow)
fireTableRowsInserted in class AbstractTableModelpublic void fireTableRowsUpdated(int firstRow,
int lastRow)
fireTableRowsUpdated in class AbstractTableModelpublic void fireTableRowsDeleted(int firstRow,
int lastRow)
fireTableRowsDeleted in class AbstractTableModelpublic void fireTableCellUpdated(int row,
int column)
fireTableCellUpdated in class AbstractTableModelpublic void fireTableChanged(TableModelEvent e)
fireTableChanged in class AbstractTableModelpublic void addTableModelListener(TableModelListener l)
addTableModelListener in interface TableModeladdTableModelListener in class AbstractTableModelpublic void removeTableModelListener(TableModelListener l)
removeTableModelListener in interface TableModelremoveTableModelListener in class AbstractTableModelpublic TableModelListener[] getTableModelListeners()
getTableModelListeners in class AbstractTableModelpublic <T extends EventListener> T[] getListeners(Class<T> listenerType)
getListeners in class AbstractTableModelCopyright © 2010–2014 Ifremer. All rights reserved.