net.java.sip.communicator.impl.neomedia
Class EncodingConfigurationTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
net.java.sip.communicator.impl.neomedia.EncodingConfigurationTableModel
- All Implemented Interfaces:
- Serializable, TableModel
public class EncodingConfigurationTableModel
- extends AbstractTableModel
Implements TableModel for EncodingConfiguration.
- Author:
- Lyubomir Marinov
- See Also:
- Serialized Form
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EncodingConfigurationTableModel
public EncodingConfigurationTableModel(EncodingConfiguration encodingConfiguration,
int type)
- Constructor.
- Parameters:
encodingConfiguration - the encoding configurationtype - media type
getColumnClass
public Class<?> getColumnClass(int columnIndex)
- Specified by:
getColumnClass in interface TableModel- Overrides:
getColumnClass in class AbstractTableModel
getColumnCount
public int getColumnCount()
getRowCount
public int getRowCount()
getValueAt
public Object getValueAt(int rowIndex,
int columnIndex)
isCellEditable
public boolean isCellEditable(int rowIndex,
int columnIndex)
- Specified by:
isCellEditable in interface TableModel- Overrides:
isCellEditable in class AbstractTableModel
move
public int move(int rowIndex,
boolean up)
- Move the row.
- Parameters:
rowIndex - index of the rowup - true to move up, false to move down
- Returns:
- the next row index
setValueAt
public void setValueAt(Object value,
int rowIndex,
int columnIndex)
- Specified by:
setValueAt in interface TableModel- Overrides:
setValueAt in class AbstractTableModel
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.