Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.neomedia
Class EncodingConfigurationTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by net.java.sip.communicator.util.swing.MoveableTableModel
          extended by net.java.sip.communicator.impl.neomedia.EncodingConfigurationTableModel
All Implemented Interfaces:
Serializable, TableModel

public class EncodingConfigurationTableModel
extends MoveableTableModel

Implements TableModel for EncodingConfiguration.

Author:
Lyubomir Marinov
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
EncodingConfigurationTableModel(int type, EncodingConfiguration encodingConfiguration)
          Constructor.
 
Method Summary
 Class<?> getColumnClass(int columnIndex)
           
 int getColumnCount()
           
 int getRowCount()
           
 Object getValueAt(int rowIndex, int columnIndex)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 int move(int rowIndex, boolean up)
          Move the row.
 void setValueAt(Object value, int rowIndex, int columnIndex)
           
 
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
 

Constructor Detail

EncodingConfigurationTableModel

public EncodingConfigurationTableModel(int type,
                                       EncodingConfiguration encodingConfiguration)
Constructor.

Parameters:
encodingConfiguration - the encoding configuration
type - media type
Method Detail

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.

Specified by:
move in class MoveableTableModel
Parameters:
rowIndex - index of the row
up - 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.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.