public class ZrtpConfigureTableModel<T extends java.lang.Enum<T>>
extends javax.swing.table.AbstractTableModel
Modifier and Type | Field and Description |
---|---|
(package private) boolean[] |
onOff |
Constructor and Description |
---|
ZrtpConfigureTableModel(T algo,
gnu.java.zrtp.ZrtpConfigure act,
gnu.java.zrtp.ZrtpConfigure inAct,
java.lang.String savedConf) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkEnableDown(int row) |
boolean |
checkEnableUp(int row) |
java.lang.Class<?> |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
int |
getRowCount() |
java.lang.Object |
getValueAt(int row,
int col) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
int |
move(int row,
boolean up,
boolean upSave)
Move a Configuration entry up or down one position.
|
void |
saveConfig()
Saves the ZrtpConfigure data for this algorithm to configure file
|
void |
setStandardConfig()
Sets the ZrtpConfigure data for this algorithm to a predefined set.
|
void |
setValueAt(java.lang.Object value,
int row,
int column) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, getListeners, getTableModelListeners, removeTableModelListener
public ZrtpConfigureTableModel(T algo, gnu.java.zrtp.ZrtpConfigure act, gnu.java.zrtp.ZrtpConfigure inAct, java.lang.String savedConf)
public int getColumnCount()
public int getRowCount()
public java.lang.Object getValueAt(int row, int col)
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
public void setValueAt(java.lang.Object value, int row, int column)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
public int move(int row, boolean up, boolean upSave)
row
- Which row to moveup
- If true move up, else move downupSave
- Because the functions converts a move up into a move down
this flag shows what the caller intented. Needed to adjust
an index return value.public boolean checkEnableUp(int row)
public boolean checkEnableDown(int row)
public void saveConfig()
public void setStandardConfig()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.