public class EncryptionConfigurationTableModel extends MoveableTableModel
TableModel
for encryption configuration (ZRTP, SDES and
MIKEY).Constructor and Description |
---|
EncryptionConfigurationTableModel(java.lang.String[] encryptionProtocols,
boolean[] encryptionProtocolStatus)
Creates a new table model in order to manage the encryption protocols and
the corresponding priority.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
java.util.Map<java.lang.String,java.lang.Integer> |
getEncryptionProtocols()
Returns the map between encryption protocol names and their priority
order.
|
java.util.Map<java.lang.String,java.lang.Boolean> |
getEncryptionProtocolStatus()
Returns the map between encryption protocol names and their status.
|
int |
getRowCount()
Returns the number of row in this table model.
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex) |
void |
init(java.lang.String[] encryptionProtocols,
boolean[] encryptionProtocolStatus)
Initiates this table model in order to manage the encryption protocols
and the corresponding priority.
|
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
boolean |
isEnabledLabel(java.lang.String label)
Returns if the label is enabled or disabled.
|
int |
move(int rowIndex,
boolean up)
Move the row.
|
void |
setValueAt(java.lang.Object value,
int rowIndex,
int columnIndex) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, getListeners, getTableModelListeners, removeTableModelListener
public EncryptionConfigurationTableModel(java.lang.String[] encryptionProtocols, boolean[] encryptionProtocolStatus)
encryptionProtocols
- The encryption protocol names.encryptionProtocolStatuss
- The encryption protocol status (enabled
/ disabled).public java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
public int getColumnCount()
public int getRowCount()
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
public void setValueAt(java.lang.Object value, int rowIndex, int columnIndex)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
public int move(int rowIndex, boolean up)
move
in class MoveableTableModel
rowIndex
- index of the rowup
- true to move up, false to move downpublic java.util.Map<java.lang.String,java.lang.Integer> getEncryptionProtocols()
public java.util.Map<java.lang.String,java.lang.Boolean> getEncryptionProtocolStatus()
public boolean isEnabledLabel(java.lang.String label)
label
- The label to be determined as enabled or disabled.public void init(java.lang.String[] encryptionProtocols, boolean[] encryptionProtocolStatus)
encryptionProtocols
- The encryption protocol names.encryptionProtocolStatuss
- The encryption protocol status (enabled
/ disabled).
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.