sshvncfileaccessablility
Class listPanel.MyTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by sshvncfileaccessablility.listPanel.MyTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Enclosing class:
listPanel

public class listPanel.MyTableModel
extends javax.swing.table.AbstractTableModel

a table model for all the data that is to be shown in the table. This contains the Name, comment, and executible for all the programs. it also checkboxes to give and take away access rights.

See Also:
Serialized Form

Field Summary
private  java.lang.String[] columnNames
          different column headers
private  java.lang.Object[][] data
          all the data to be displayed in the table
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
listPanel.MyTableModel()
          initializes the first the objects of every item in the plist of the super class
 
Method Summary
 java.lang.Class getColumnClass(int c)
           
 int getColumnCount()
          gets the number of columns
 java.lang.String getColumnName(int col)
          gets the name of the column at position col
 int getRowCount()
          gets the number of rows
 java.lang.Object getValueAt(int row, int col)
          gets the value at the specified row and column
 boolean isCellEditable(int row, int col)
           
private  void printDebugData()
           
 void setValueAt(java.lang.Object value, int row, int col)
           
 
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

columnNames

private java.lang.String[] columnNames
different column headers


data

private java.lang.Object[][] data
all the data to be displayed in the table

Constructor Detail

listPanel.MyTableModel

public listPanel.MyTableModel()
initializes the first the objects of every item in the plist of the super class

Method Detail

getColumnCount

public int getColumnCount()
gets the number of columns

Returns:
integer

getRowCount

public int getRowCount()
gets the number of rows

Returns:
integer

getColumnName

public java.lang.String getColumnName(int col)
gets the name of the column at position col

Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel
Parameters:
col - the index of the column that your trying to get the name for
Returns:
the name of the column at col

getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)
gets the value at the specified row and column

Parameters:
row - row of the data your trying to retrieve
col - column of the data your trying to retrieve
Returns:
Object at row,col of the table

getColumnClass

public java.lang.Class getColumnClass(int c)
Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel

isCellEditable

public boolean isCellEditable(int row,
                              int col)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel

setValueAt

public void setValueAt(java.lang.Object value,
                       int row,
                       int col)
Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class javax.swing.table.AbstractTableModel

printDebugData

private void printDebugData()