public class NavigationPointTableModel
extends javax.swing.table.AbstractTableModel
NavigationPointTableModel
class provides data
from a list of NavigationPoint
objects. The comment
field of the navigation points is used to indicate the latest
status of navigation and should be set accordingly.Constructor and Description |
---|
NavigationPointTableModel()
Creates a new table using an empty point list.
|
NavigationPointTableModel(java.util.List<NavigationPoint> pointList)
Creates a new table using the specified point list.
|
Modifier and Type | Method and Description |
---|---|
void |
addPoint(NavigationPoint point)
Adds a point to the list.
|
void |
changePoint(NavigationPoint point)
Notifies listeners that a point has changed.
|
void |
clear()
Removes all points from the list.
|
int |
getColumnCount() |
java.lang.String |
getColumnName(int column) |
NavigationPoint |
getPoint(int row)
Gets a point from the list.
|
java.util.List<NavigationPoint> |
getPointList()
Gets the list of navigation points.
|
int |
getRowCount() |
java.lang.Object |
getValueAt(int row,
int column) |
NavigationPoint |
removePoint(int row)
Removes a point from the list.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public NavigationPointTableModel()
public NavigationPointTableModel(java.util.List<NavigationPoint> pointList)
pointList
- the initial point list data.public void addPoint(NavigationPoint point)
public NavigationPoint getPoint(int row)
public java.util.List<NavigationPoint> getPointList()
public NavigationPoint removePoint(int row)
public void clear()
public void changePoint(NavigationPoint point)
public int getRowCount()
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 java.lang.Object getValueAt(int row, int column)