Class LoadDependentRoutingEditor.LoadDependentRoutingStrategyTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
common.editors.LoadDependentRoutingEditor.LoadDependentRoutingStrategyTableModel
- All Implemented Interfaces:
Serializable, TableModel
- Enclosing class:
LoadDependentRoutingEditor
protected class LoadDependentRoutingEditor.LoadDependentRoutingStrategyTableModel
extends AbstractTableModel
- See Also:
-
Field Summary
FieldsFields inherited from class AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?> getColumnClass(int columnIndex) Returns class describing data contained in specific column.intReturns the number of columns in the model.getColumnName(int columnIndex) intReturns the number of rows in the model.getValueAt(int rowIndex, int columnIndex) Returns the value for the cell atcolumnIndexandrowIndex.booleanisCellEditable(int rowIndex, int columnIndex) Tells whether data contained in a specific cell(given row and column index) is editable or not.voidsetValueAt(Object aValue, int rowIndex, int columnIndex) Puts edited values to the underlying data structure for model implementationMethods inherited from class AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
columnNames
-
colClasses
-
-
Constructor Details
-
LoadDependentRoutingStrategyTableModel
public LoadDependentRoutingStrategyTableModel()
-
-
Method Details
-
getRowCount
public int getRowCount()Returns the number of rows in the model. AJTableuses this method to determine how many rows it should display. This method should be quick, as it is called frequently during rendering.- Returns:
- the number of rows in the model
- See Also:
-
getColumnCount
public int getColumnCount()Returns the number of columns in the model. AJTableuses this method to determine how many columns it should create and display by default.- Returns:
- the number of columns in the model
- See Also:
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getColumnClass
Returns class describing data contained in specific column.- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
getValueAt
Returns the value for the cell atcolumnIndexandrowIndex.- Parameters:
rowIndex- the row whose value is to be queriedcolumnIndex- the column whose value is to be queried- Returns:
- the value Object at the specified cell
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) Tells whether data contained in a specific cell(given row and column index) is editable or not. In this case distribution column is not editable, as editing functionality is implemented via edit button- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
setValueAt
Puts edited values to the underlying data structure for model implementation- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-