|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
sshvncfileaccessablility.listPanel.MyTableModel
public class listPanel.MyTableModel
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.
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 |
---|
private java.lang.String[] columnNames
private java.lang.Object[][] data
Constructor Detail |
---|
public listPanel.MyTableModel()
Method Detail |
---|
public int getColumnCount()
public int getRowCount()
public java.lang.String getColumnName(int col)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
col
- the index of the column that your trying to get the name for
public java.lang.Object getValueAt(int row, int col)
row
- row of the data your trying to retrievecol
- column of the data your trying to retrieve
public java.lang.Class getColumnClass(int c)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int row, int col)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public void setValueAt(java.lang.Object value, int row, int col)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
private void printDebugData()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |