Class BackupTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- org.opends.guitools.controlpanel.datamodel.BackupTableModel
-
- All Implemented Interfaces:
Serializable,TableModel
public class BackupTableModel extends AbstractTableModel
The table used to display the backups.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description BackupTableModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(BackupDescriptor backup)Adds a backup to the model.voidclear()Clears the contents of the table model.BackupDescriptorget(int row)Gets the BackupDescriptor in a given row.intgetColumnCount()intgetRowCount()ObjectgetValueAt(int row, int column)-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
-
-
-
Method Detail
-
clear
public void clear()
Clears the contents of the table model.
-
add
public void add(BackupDescriptor backup)
Adds a backup to the model.- Parameters:
backup- the backup to be added.
-
getValueAt
public Object getValueAt(int row, int column)
-
getRowCount
public int getRowCount()
-
getColumnCount
public int getColumnCount()
-
get
public BackupDescriptor get(int row)
Gets the BackupDescriptor in a given row.- Parameters:
row- the row.- Returns:
- the BackupDescriptor in a given row.
-
-