class PortConfigurerDialog.PortTableModel
extends javax.swing.table.AbstractTableModel
Constructor and Description |
---|
PortTableModel(java.util.List portList)
Populates the _ports Vector.
|
Modifier and Type | Method and Description |
---|---|
void |
addNewPort()
Add a port The new port gets added with a name of "".
|
java.lang.Class |
getColumnClass(int c)
Get the Java Class associated with a column param column.
|
int |
getColumnCount()
Get the number of columns.
|
java.lang.String |
getColumnName(int col)
Get the column header name.
|
int |
getRowCount()
Get the number of rows.
|
java.lang.Object |
getValueAt(int row,
int col)
Get the value at a particular row and column.
|
boolean |
isCellEditable(int row,
int col)
Is a cell editable?
|
void |
removePort()
Removes a port.
|
void |
setValueAt(java.lang.Object value,
int row,
int col)
Set the value at a particular row and column.
|
void |
toggleHidePorts()
Make the "Hide" column values be either all true or
all false.
|
void |
toggleShowAllNames()
Make the "Show Name" column values be either all true or
all false.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public PortTableModel(java.util.List portList)
portList
- The list of ports.public void addNewPort()
public void removePort()
public int getColumnCount()
TableModel.getColumnCount()
public int getRowCount()
TableModel.getRowCount()
public java.lang.String getColumnName(int col)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
TableModel.getColumnName(int)
public java.lang.Object getValueAt(int row, int col)
row
- col
- TableModel.getValueAt(int, int)
public void setValueAt(java.lang.Object value, int row, int col)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
value
- The value to be set.row
- The row.col
- The column.TableModel.setValueAt(Object, int, int)
public java.lang.Class getColumnClass(int c)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
TableModel.getColumnClass(int)
public boolean isCellEditable(int row, int col)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
row
- col
- TableModel.isCellEditable(int, int)
public void toggleShowAllNames()
public void toggleHidePorts()