MOTableModel<R>
, MOTableRowFactory<R>
DefaultMOMutableTableModel
, UsmMIB.UsmTableModel
public interface MOMutableTableModel<R extends MOTableRow> extends MOTableModel<R>, MOTableRowFactory<R>
MOMutableTableModel
defines the interface for mutable
table models. Mutable table models support row creation and deletion through
SNMP SET operations.Modifier and Type | Method | Description |
---|---|---|
R |
addRow(R row) |
Adds a row to the table.
|
void |
clear() |
Removes all rows.
|
java.util.List<R> |
clear(MOTableRowFilter<R> filter) |
Remove all rows that do not match the given filter criteria
from the model.
|
MOTableRowFactory<R> |
getRowFactory() |
Gets the factory instance used for creating rows for this model.
|
R |
removeRow(org.snmp4j.smi.OID index) |
Removes the row with the specified index from the table and returns it.
|
void |
setRowFactory(MOTableRowFactory<R> rowFactory) |
Sets the factory instance to be used for creating rows for this model.
|
containsRow, firstIndex, firstRow, getColumnCount, getRow, getRowCount, isEmpty, iterator, lastIndex, lastRow, tailIterator
createRow, freeRow
R addRow(R row)
row
- the MOTableRow
instance to add.null
if it
did not have one.R removeRow(org.snmp4j.smi.OID index)
index
- the row index of the row to remove.null
if the table did not contain such
a row.void clear()
java.util.List<R> clear(MOTableRowFilter<R> filter)
filter
- the MOTableRowFilter
that filters out the rows to
delete.void setRowFactory(MOTableRowFactory<R> rowFactory)
rowFactory
- a MOTableRowFactory
instance or null
to
disable row creation.MOTableRowFactory<R> getRowFactory()
null
if
row creation is not possible due to a missing factory.Copyright © 2018 SNMP4J.org. All rights reserved.