Package gui.model
Class RouteTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
gui.model.RouteTableModel
- All Implemented Interfaces:
ExceptionProvider,GetCollectionFromModelCallback,Serializable,TableModel
public class RouteTableModel
extends AbstractTableModel
implements GetCollectionFromModelCallback, ExceptionProvider
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptCollectionUpdate(CollectionUpdatedResponse response) voidvoidvoidintReturns the number of columns in the model.getColumnName(int column) 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) voidsetValueAt(Object aValue, int rowIndex, int columnIndex) Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
-
Constructor Details
-
RouteTableModel
public RouteTableModel()
-
-
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.- Specified by:
getRowCountin interfaceTableModel- 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.- Specified by:
getColumnCountin interfaceTableModel- Returns:
- the number of columns in the model
- See Also:
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getValueAt
Returns the value for the cell atcolumnIndexandrowIndex.- Specified by:
getValueAtin interfaceTableModel- 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
-
acceptFullCollectionResponse
-
acceptCollectionUpdate
-
acceptException
- Specified by:
acceptExceptionin interfaceExceptionProvider
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
getCollection
- Specified by:
getCollectionin interfaceGetCollectionFromModelCallback
-
getOwnership
- Specified by:
getOwnershipin interfaceGetCollectionFromModelCallback
-
changeLocale
public void changeLocale()
-