public class MyTableModel
extends javax.swing.table.AbstractTableModel
| Constructor and Description |
|---|
MyTableModel()
The construtor
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(java.lang.String name,
java.lang.String cUrl)
Append a new activated component with the given name
In this very very very first version the component are added
at the end without any care
|
void |
deleteEntry(java.lang.String url)
Delete the component with the given name
|
boolean |
exist(java.lang.String name)
Check if an element with the given name already exists in the table
|
java.lang.Class |
getColumnClass(int c)
Return the class of the elements stored in a column
|
int |
getColumnCount()
Return the number of columns of the table
|
java.lang.String |
getColumnName(int col)
Return the name of the column
|
int |
getRowCount()
Return the number of rows of the table
|
java.lang.String |
getURL(java.lang.String name)
Return the URL of a component given its name
|
java.lang.Object |
getValueAt(int row,
int column)
Return the value of the cell
|
boolean |
isCellEditable(int row,
int col)
Check if a cell is editable.
|
void |
setValueAt(java.lang.Object obj,
int row,
int col)
Add a component to the table
|
void |
sort()
Sort the items of the table
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerpublic java.lang.Object getValueAt(int row,
int column)
row - The row of the cellcolum - The column of the cellpublic int getRowCount()
public int getColumnCount()
public void append(java.lang.String name,
java.lang.String cUrl)
name - The name of the newly activated componentcUrl - The CORBA url of the activated componentpublic java.lang.Class getColumnClass(int c)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelc - The number of the columnpublic boolean exist(java.lang.String name)
name - the name of the item to searchpublic void deleteEntry(java.lang.String url)
public void sort()
public void setValueAt(java.lang.Object obj,
int row,
int col)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelname - The name of the componentrow - The row is ignored because each new element is appended at the endcol - The col parameter is ignored because the name always is inserted in the first columnpublic java.lang.String getColumnName(int col)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcol - The number of the columnpublic boolean isCellEditable(int row,
int col)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelpublic java.lang.String getURL(java.lang.String name)
name - The name of the component