Package org.snmp4j.model.snmp.proxy
Interface SnmpTableRO<IC extends SnmpProxyIndexColumn,C extends SnmpProxyColumn,IT,T,R extends SnmpProxyRow<IT,T>>
- Type Parameters:
IC
- the index proxy column type for the table proxy.C
- the proxy column type fo 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:
SnmpProxyObject
,SnmpTableUpdateListener<R>
,TableModel
- All Known Subinterfaces:
SnmpTable<C,
IC, IT, T, R>
- All Known Implementing Classes:
SnmpTableImpl
,SnmpTableImplRO
public interface SnmpTableRO<IC extends SnmpProxyIndexColumn,C extends SnmpProxyColumn,IT,T,R extends SnmpProxyRow<IT,T>>
extends SnmpProxyObject, TableModel, SnmpTableUpdateListener<R>
The SnmpTableRO object is a proxy to for a read-only SNMP table object.
- Author:
- Frank Fock
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addError
(List<SnmpValuesChangeSet> valuesChangeSets, SnmpErrorStatus errorStatus, int errorIndex) void
clearError
(org.snmp4j.smi.OID rowIndex) getCell
(org.snmp4j.smi.OID instanceOID) int
getColumnNumber
(org.snmp4j.smi.OID columnOID) Gets the list of columnar proxy objects of this table.int
getError
(org.snmp4j.smi.OID rowIndex, int column) Gets the list of index columnar proxy objects of this table.List<org.snmp4j.smi.VariableBinding>
getIndexVariableBindings
(org.snmp4j.smi.OID index) Object[]
org.snmp4j.smi.OID
getOID()
Gets the table entry OID (thus including the.1
suffix) for the associated SNMP table.int
Gets the page size.org.snmp4j.smi.OID
getRowIndex
(int rowNumber) List<org.snmp4j.smi.OID>
int
getRowNumber
(org.snmp4j.smi.OID index) getTableColumnModel
(int maxCharacterPixelWidth, int maxColumnCharacters) void
setCurrentIndex
(int startPos) void
setMinIndex
(Object[] minIndex) void
setPageSize
(int numRows) Sets the page size for this table.void
setRowFilter
(SnmpProxyRowFilter rowFilter) Methods inherited from interface org.snmp4j.model.snmp.proxy.SnmpProxyObject
getContext, reload, waitForTask
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
-
getOID
org.snmp4j.smi.OID getOID()Gets the table entry OID (thus including the.1
suffix) for the associated SNMP table.- Specified by:
getOID
in interfaceSnmpProxyObject
- Returns:
- the table entry OID.
-
getColumns
Gets the list of columnar proxy objects of this table.- Returns:
- the list of column proxy objects.
-
getIndexColumns
Gets the list of index columnar proxy objects of this table.- Returns:
- the list of index column proxy objects.
-
setPageSize
void setPageSize(int numRows) Sets the page size for this table. For any value greater than zero, theTableModel
will view only a single page of rows of this proxy table.- Parameters:
numRows
- the number of rows in the table.
-
getPageSize
int getPageSize()Gets the page size.- Returns:
- the maximum number of rows in a page. If zero or less is returned, then there is no limit.
-
setCurrentIndex
void setCurrentIndex(int startPos) -
getCurrentIndex
int getCurrentIndex() -
setRowFilter
-
getRowFilter
SnmpProxyRowFilter getRowFilter() -
setMinIndex
-
getMinIndex
Object[] getMinIndex() -
getIndexVariableBindings
-
getRowFactory
SnmpProxyRowFactory<R,IT, getRowFactory()T> -
getRowNumber
int getRowNumber(org.snmp4j.smi.OID index) -
getColumnNumber
int getColumnNumber(org.snmp4j.smi.OID columnOID) -
getTableColumnModel
-
addError
void addError(List<SnmpValuesChangeSet> valuesChangeSets, SnmpErrorStatus errorStatus, int errorIndex) -
getError
-
clearAllErrors
void clearAllErrors() -
clearError
-
getRowIndexes
List<org.snmp4j.smi.OID> getRowIndexes() -
getRowIndex
org.snmp4j.smi.OID getRowIndex(int rowNumber) -
getCell
-