|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--javax.swing.table.AbstractTableModel
|
+--suncertify.swingClient.swingTable.ClientTableModel
The ClientTableModel is the Table Model For Clients' Details. The Table Model has the following features:
| Field Summary | |
static int |
NUM_COLUMNS
The number of columns in tables with this model. |
static int |
START_NUM_ROWS
The starting number of rows in tables of this model. |
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
| Constructor Summary | |
ClientTableModel()
The class constructor instantiates a dynamic vector object to represent rows of the table. |
|
| Method Summary | |
void |
clear()
The method to clear all the contents of the table. |
void |
displayRow(int index)
Display to the StandardOutputStream the values of the columns in the specified row. |
int |
getColumnCount()
The method to get the number of columns. |
java.lang.String |
getColumnName(int column)
The method to return the name of a column of the table model. |
java.lang.String[] |
getRow(int index)
The method to get the values of a row. |
int |
getRowCount()
The method to get the current number of rows in the table. |
java.lang.String[][] |
getRows()
Returns the travellers details as a list of String arrays. |
java.lang.Object |
getValueAt(int rowNum,
int column)
Get the value of a cell in the table. |
boolean |
isCellEditable(int row,
int column)
The method to determine whether a cell is editable or not. |
void |
moreRows()
The function adds two more rows allowing to enter details of more traveller(s) to book tickets. |
void |
setValueAt(java.lang.Object value,
int rowNum,
int column)
The method set value to a cell. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener,
findColumn,
fireTableCellUpdated,
fireTableChanged,
fireTableDataChanged,
fireTableRowsDeleted,
fireTableRowsInserted,
fireTableRowsUpdated,
fireTableStructureChanged,
getColumnClass,
removeTableModelListener |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final int NUM_COLUMNS
public static int START_NUM_ROWS
| Constructor Detail |
public ClientTableModel()
| Method Detail |
public java.lang.String getColumnName(int column)
column: - The column number for which the name is to be calculatedpublic int getColumnCount()
public int getRowCount()
public java.lang.Object getValueAt(int rowNum,
int column)
rowNum: - The row number of the cellcolumn - : The column of the cell
public void setValueAt(java.lang.Object value,
int rowNum,
int column)
value - : The object representing the value of the cell to be setrowNum - : The row number of the cellcolumn - : The column of the cellpublic void clear()
public boolean isCellEditable(int row,
int column)
row - : The row number of the cell.column - : The Column of the cell.
public void displayRow(int index)
throws TableException
index - - the row index.
public java.lang.String[] getRow(int index)
throws TableException
index - : The row indexpublic void moreRows()
public java.lang.String[][] getRows()
throws TableException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||