public class LdapTableModel
extends javax.swing.table.AbstractTableModel
Constructor and Description |
---|
LdapTableModel() |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getColumnClass(int columnIndex)
Overrides a method that always returned Object.class
Now it will return Boolean.class for the first method,
letting the DefaultTableCellRenderer create checkboxes.
|
int |
getColumnCount()
Returns the number of column in the table
|
java.lang.String |
getColumnName(int column)
Returns the title for this column
|
int |
getRowCount()
Returns the number of rows in the table
|
LdapDirectory |
getServerAt(int row)
Returns the LdapDirectory at the row 'row'
|
java.lang.Object |
getValueAt(int row,
int column)
Returns the text for the given cell of the table
|
boolean |
isCellEditable(int row,
int col)
Returns whether a cell is editable.
|
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
Sets a value in an editable cell, that is to say
an enable/disable chekboxin colum 0
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
column
- the columnAbstractTableModel.getColumnName(int)
public int getRowCount()
TableModel.getRowCount()
public int getColumnCount()
TableModel.getColumnCount()
public java.lang.Object getValueAt(int row, int column)
row
- cell rowcolumn
- cell columnTableModel.getValueAt(int, int)
public LdapDirectory getServerAt(int row)
row
- the row on which to find the LdapDirectorypublic boolean isCellEditable(int row, int col)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
row
- row of the cellcol
- column of the cellpublic java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
columnIndex
- index of the columnpublic void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.