public class GlobalShortcutTableModel
extends javax.swing.table.AbstractTableModel
Constructor and Description |
---|
GlobalShortcutTableModel() |
Modifier and Type | Method and Description |
---|---|
void |
addEntry(GlobalShortcutEntry entry)
Adds an entry.
|
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
|
java.util.List<GlobalShortcutEntry> |
getEntries()
Returns all shortcuts.
|
GlobalShortcutEntry |
getEntryAt(int row)
Returns the LdapDirectory at the row 'row'
|
int |
getRowCount()
Returns the number of rows in the table
|
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 |
removeEntry(GlobalShortcutEntry entry)
Adds an entry.
|
void |
ssetValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
Sets a value in an editable cell.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
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 GlobalShortcutEntry getEntryAt(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 ssetValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
aValue
- value to setrowIndex
- row indexcolumnIndex
- column indexpublic void addEntry(GlobalShortcutEntry entry)
entry
- entry to addpublic void removeEntry(GlobalShortcutEntry entry)
entry
- entry to addpublic java.util.List<GlobalShortcutEntry> getEntries()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.