public class ConnectionTable extends VizTableComponent
TableComponent
.
Each connection is defined by the following parameters (although it must be noted that the only required unique value is the name/key/ID):
iComponentListener
Constructor and Description |
---|
ConnectionTable()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
addRow()
This operation adds a row to the Table and returns the index of that row.
|
boolean |
deleteRow(int index)
This operation will delete the row in the table with the specified index.
|
java.util.List<VizEntry> |
getConnection(java.lang.String name)
Gets the row from the underlying
TableComponent corresponding to
the name of the connection. |
java.util.Set<java.lang.String> |
getConnectionNames()
Gets the set of connection names or keys.
|
void |
setRowTemplate(java.util.ArrayList<VizEntry> template)
Does nothing.
|
clone, copy, equals, getColumnNames, getRow, getRowIds, getRowTemplate, getSelectedRows, hashCode, numberOfColumns, numberOfRows, setSelectedRows
copy, getDescription, getId, getName, register, setDescription, setId, setName, unregister, update
public int addRow()
VizTableComponent
This operation adds a row to the Table and returns the index of that row. The new row may be retrieved and its Entries may be edited by calling getRow() using the returned index. When a new row is added, the elements of that row are configured from the row template using its default values. If the Row Template has not yet been set for the TableComponent, this operation cannot add a row and it returns -1.
addRow
in class VizTableComponent
The index of the new row in the table.
public boolean deleteRow(int index)
VizTableComponent
This operation will delete the row in the table with the specified index. It will return true if it is success or false otherwise (like if it can not find a row with that index).
deleteRow
in class VizTableComponent
index
- The index of the row that should be deleted.
True if the row was deleted and false if some problem was encountered, like an incorrect row id.
public java.util.List<VizEntry> getConnection(java.lang.String name)
TableComponent
corresponding to
the name of the connection.name
- The name of the connection.TableComponent
, or null if the name is
invalid.public java.util.Set<java.lang.String> getConnectionNames()
public void setRowTemplate(java.util.ArrayList<VizEntry> template)
setRowTemplate
in class VizTableComponent
template
- The set of Entries that represent the canonical row of this table.