|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
wt.clients.csm.search.NavNodeSearchResultTableModel
This class provides a basic model for a table which encapsulates table data in a Vector ("tableContent"). Element of "tableContent" are Vectors containing data of rows in the table. Also it provides basic fuctions to access table data
Field Summary | |
protected Vector |
columnNames
|
protected int |
numberOfColumns
|
protected int |
numberOfRows
|
protected Vector |
tableContent
|
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
NavNodeSearchResultTableModel(Vector colNames)
This constructor creates a Vector "tableContent" which encapsulates data of the whole table, initially empty. |
Method Summary | |
Class |
getColumnClass(int columnIndex)
Return default String class |
int |
getColumnCount()
This function returns numberOfRow of the table. |
String |
getColumnName(int columnIndex)
Get the identified column's name |
int |
getRowCount()
This function returns numberOfRow of the table. |
Object |
getValueAt(int rowIndex,
int columnIndex)
This function returns the value of a cell The return is an Object. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
This function returns the default value "false" for all cells in the table. |
void |
setRowCount(int rowCount)
Set numberOfRow of the table. |
void |
setValueAt(Object value,
int rowIndex,
int columnIndex)
This function sets the identified cell to given value |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Vector tableContent
protected int numberOfRows
protected int numberOfColumns
protected Vector columnNames
Constructor Detail |
public NavNodeSearchResultTableModel(Vector colNames)
Method Detail |
public String getColumnName(int columnIndex)
columnIndex
-
public Class getColumnClass(int columnIndex)
columnIndex
-
public boolean isCellEditable(int rowIndex, int columnIndex)
rowIndex
- to identify rowcolumnIndex
- to identify col
public int getRowCount()
public void setRowCount(int rowCount)
public int getColumnCount()
public Object getValueAt(int rowIndex, int columnIndex)
rowIndex
- to identify rowcolumnIndex
- to identify col
public void setValueAt(Object value, int rowIndex, int columnIndex)
rowIndex
- to identify rowcolumnIndex
- to identify colvalue
- of type Object the value the cell is set to
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |