dist1.acb.CBLcc
Class CBLsTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended bydist1.acb.CBLcc.CBLsTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class CBLsTableModel
extends javax.swing.table.AbstractTableModel
implements java.io.Serializable

Table model for displaying the CBLs

Author:
Lazar Adzigogov
See Also:
Serialized Form

Field Summary
static int CBL_CLIENT_PORT_COL
           
static int CBL_CONNECTED_USERS_COL
           
static int CBL_HOST_COL
           
static int CBL_NAME_COL
           
static int CBL_ONLINE_COL
           
static int CBL_PORT_COL
           
static java.lang.String[] colNames
           
static java.lang.Class[] colTypes
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
CBLsTableModel()
          Creates a new CBLsTableModel object.
CBLsTableModel(java.util.LinkedList mData)
          Creates a new instance of PublishingTable
 
Method Summary
 void addElement(ResponseCBLsInfo.CBLInfo Data)
          DOCUMENT ME!
 java.lang.Class getColumnClass(int col)
          DOCUMENT ME!
 int getColumnCount()
          getColumnCount Number columns same as the column array length
 java.lang.String getColumnName(int col)
          DOCUMENT ME!
 java.util.LinkedList getData()
          DOCUMENT ME!
 int getRowCount()
          getRowCount Row count same as the size of data vector
 java.lang.Object getValueAt(int row, int col)
          getValueAt This function updates the JTable depending upon the data in the TableModel
 boolean isCellEditable(int row, int column)
          DOCUMENT ME!
 void setValueAt(java.lang.Object value, int row, int col)
          setValueAt This function updates the data in the TableModel depending upon the change in the JTable
 
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

CBL_ONLINE_COL

public static final int CBL_ONLINE_COL
See Also:
Constant Field Values

CBL_NAME_COL

public static final int CBL_NAME_COL
See Also:
Constant Field Values

CBL_HOST_COL

public static final int CBL_HOST_COL
See Also:
Constant Field Values

CBL_PORT_COL

public static final int CBL_PORT_COL
See Also:
Constant Field Values

CBL_CLIENT_PORT_COL

public static final int CBL_CLIENT_PORT_COL
See Also:
Constant Field Values

CBL_CONNECTED_USERS_COL

public static final int CBL_CONNECTED_USERS_COL
See Also:
Constant Field Values

colNames

public static final java.lang.String[] colNames

colTypes

public static final java.lang.Class[] colTypes
Constructor Detail

CBLsTableModel

public CBLsTableModel(java.util.LinkedList mData)
Creates a new instance of PublishingTable

Parameters:
mData - DOCUMENT ME!

CBLsTableModel

public CBLsTableModel()
Creates a new CBLsTableModel object.

Method Detail

isCellEditable

public boolean isCellEditable(int row,
                              int column)
DOCUMENT ME!

Specified by:
isCellEditable in interface javax.swing.table.TableModel
Parameters:
row - DOCUMENT ME!
column - DOCUMENT ME!
Returns:
DOCUMENT ME!

getColumnClass

public java.lang.Class getColumnClass(int col)
DOCUMENT ME!

Specified by:
getColumnClass in interface javax.swing.table.TableModel
Parameters:
col - DOCUMENT ME!
Returns:
DOCUMENT ME!

getColumnCount

public int getColumnCount()
getColumnCount Number columns same as the column array length

Specified by:
getColumnCount in interface javax.swing.table.TableModel
Returns:
DOCUMENT ME!

getColumnName

public java.lang.String getColumnName(int col)
DOCUMENT ME!

Specified by:
getColumnName in interface javax.swing.table.TableModel
Parameters:
col - DOCUMENT ME!
Returns:
DOCUMENT ME!

getData

public java.util.LinkedList getData()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getRowCount

public int getRowCount()
getRowCount Row count same as the size of data vector

Specified by:
getRowCount in interface javax.swing.table.TableModel
Returns:
DOCUMENT ME!

setValueAt

public void setValueAt(java.lang.Object value,
                       int row,
                       int col)
setValueAt This function updates the data in the TableModel depending upon the change in the JTable

Specified by:
setValueAt in interface javax.swing.table.TableModel
Parameters:
value - DOCUMENT ME!
row - DOCUMENT ME!
col - DOCUMENT ME!

getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)
getValueAt This function updates the JTable depending upon the data in the TableModel

Specified by:
getValueAt in interface javax.swing.table.TableModel
Parameters:
row - DOCUMENT ME!
col - DOCUMENT ME!
Returns:
DOCUMENT ME!

addElement

public void addElement(ResponseCBLsInfo.CBLInfo Data)
DOCUMENT ME!

Parameters:
Data - DOCUMENT ME!


Copyright © 2004 Phoenix Team (CMU/AIT). All Rights Reserved.