Package org.snmp4j.model.snmp.proxy
Interface SnmpTable<C extends SnmpProxyColumn,IC extends SnmpProxyIndexColumn,IT,T,R extends SnmpProxyRow<IT,T>>
- Type Parameters:
C
- the proxy column type fo the table proxy.IC
- the index proxy column type for the table proxy.IT
- the model value type for index columns.T
- the model value type for the columnar model values.R
- the proxy row type for the rows of the table.
- All Superinterfaces:
MutableSnmpProxy
,SnmpCommitListener
,SnmpProxyObject
,SnmpTableRO<IC,
,C, IT, T, R> SnmpTableUpdateListener<R>
,TableModel
- All Known Implementing Classes:
SnmpTableImpl
public interface SnmpTable<C extends SnmpProxyColumn,IC extends SnmpProxyIndexColumn,IT,T,R extends SnmpProxyRow<IT,T>>
extends SnmpTableRO<IC,C,IT,T,R>, SnmpCommitListener, MutableSnmpProxy
The
SnmpTable
defines the interface for writable table proxies.-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Remove all rows of the proxy table without changing the target SNMP table at all.void
fireTableCellUpdated
(int row, int column) Fire a table cell updated event to the associatedSnmpCellUpdateListener
.Gets the cell update listener associated with this table.void
Insert a new row into the table.void
setCellUpdateListener
(SnmpCellUpdateListener cellUpdateListener) Sets the cell update listener associated with this table.Methods inherited from interface org.snmp4j.model.snmp.proxy.MutableSnmpProxy
doChange, getCommitter, undoChange
Methods inherited from interface org.snmp4j.model.snmp.proxy.SnmpCommitListener
commitFailure, commitSuccess, getContext
Methods inherited from interface org.snmp4j.model.snmp.proxy.SnmpProxyObject
getContext, reload, waitForTask
Methods inherited from interface org.snmp4j.model.snmp.proxy.SnmpTableRO
addError, clearAllErrors, clearError, getCell, getColumnNumber, getColumns, getCurrentIndex, getError, getIndexColumns, getIndexVariableBindings, getMinIndex, getOID, getPageSize, getRowFactory, getRowFilter, getRowIndex, getRowIndexes, getRowNumber, getTableColumnModel, setCurrentIndex, setMinIndex, setPageSize, setRowFilter
Methods inherited from interface org.snmp4j.model.snmp.proxy.SnmpTableUpdateListener
beginUpdate, finishUpdate, updateRow
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
-
Method Details
-
insertRow
Insert a new row into the table. This adds a new change set to theSnmpCommitListener
.- Parameters:
newRow
- the new proxy row.
-
fireTableCellUpdated
void fireTableCellUpdated(int row, int column) Fire a table cell updated event to the associatedSnmpCellUpdateListener
.- Parameters:
row
- the zero based row number of the cell.column
- the zero based (including index columns) column index of the cell.
-
clear
void clear()Remove all rows of the proxy table without changing the target SNMP table at all. -
getCellUpdateListener
SnmpCellUpdateListener getCellUpdateListener()Gets the cell update listener associated with this table.- Returns:
- the cell update listener of this table.
-
setCellUpdateListener
Sets the cell update listener associated with this table.- Parameters:
cellUpdateListener
- the new cell update listener for this table.
-