public class SatellitePassTableModel
extends javax.swing.table.AbstractTableModel
Constructor and Description |
---|
SatellitePassTableModel()
Creates a new pass table model with empty data.
|
SatellitePassTableModel(java.lang.String host,
java.lang.String path)
Creates a new pass table model based on data from the specified
server.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnCount() |
java.lang.String |
getColumnName(int index) |
SatellitePassInfo |
getPass(int index)
Gets the pass at the specified index.
|
int |
getPassIndex(java.lang.String passID)
Gets the pass index from the specified pass identifier.
|
int |
getRowCount() |
java.lang.Object |
getValueAt(int row,
int column) |
void |
setSortColumn(int column)
Sets a new column for table sorting.
|
void |
setSource(java.lang.String host,
java.lang.String path)
Sets the model to read data from a new data source.
|
void |
update()
Updates the pass table by contacting the server for a pass list.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public SatellitePassTableModel()
setSource()
method should be called prior to
performing any data updates.public SatellitePassTableModel(java.lang.String host, java.lang.String path)
host
- the server host.path
- the query script path.ServerQuery
public void setSource(java.lang.String host, java.lang.String path)
host
- the server host.path
- the query script path.public int getRowCount()
public int getColumnCount()
public java.lang.String getColumnName(int index)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public SatellitePassInfo getPass(int index)
public int getPassIndex(java.lang.String passID)
passID
- the pass identifier.public java.lang.Object getValueAt(int row, int column)
public void update()
public void setSortColumn(int column)
column
- the new column to sort on.