Package org.snmp4j.model.snmp.proxy
Interface SnmpProxyColumnFactory<T>
- All Known Implementing Classes:
TableHelper.StringSnmpProxyColumnFactory
public interface SnmpProxyColumnFactory<T>
The
SnmpProxyColumnFactory
interface defines how index column and column proxies should be created.- Author:
- Frank Fock
-
Method Summary
Modifier and TypeMethodDescriptioncreateSnmpProxyColumn
(org.snmp4j.smi.OID oid, Class<T> valueClass, org.snmp4j.smi.MaxAccess smiMaxAccess, int smiSyntax, int minWidth, int maxWidth, String header) Creates a new proxy column.createSnmpProxyIndexColumn
(org.snmp4j.smi.OID oid, Class<T> valueClass, int smiSyntax, int minWidth, int maxWidth, String header, org.snmp4j.smi.SubIndexInfo subIndexInfo) Creates a new index proxy column.
-
Method Details
-
createSnmpProxyColumn
SnmpProxyColumn<T> createSnmpProxyColumn(org.snmp4j.smi.OID oid, Class<T> valueClass, org.snmp4j.smi.MaxAccess smiMaxAccess, int smiSyntax, int minWidth, int maxWidth, String header) Creates a new proxy column.- Parameters:
oid
- the object identifier of the columnar MIB object. For example, for the column ifDescr this would benew OID(1.3.6.1.2.1.2.2.1.2)
.valueClass
- the class of the value representation for this column within the model.smiMaxAccess
- the maximum access that should be supported by the model for this column (the access right should be less or equal to the maximum access right defined by the corresponding MIB).smiSyntax
- the SMI syntax of the object.minWidth
- the minimum width in characters of the values for this column. This servers as a hint for the column size calculation when this model is being rendered for display.maxWidth
- the maximum width in characters of the values of this column. This servers as a hint for the column size calculation when this model is being rendered for display.header
- the header string for this column (this value is not actually used by the proxy but can be used by a column renderer.- Returns:
- the new proxy column.
-
createSnmpProxyIndexColumn
SnmpIndexColumn<T> createSnmpProxyIndexColumn(org.snmp4j.smi.OID oid, Class<T> valueClass, int smiSyntax, int minWidth, int maxWidth, String header, org.snmp4j.smi.SubIndexInfo subIndexInfo) Creates a new index proxy column. Index proxy columns are used for representing index sub-identifiers as columns in a model table.- Parameters:
oid
- the OID of the columnar object that represents this (sub-)index column.valueClass
- the value class of the index column's value.smiSyntax
- the SMI syntax of the index column.minWidth
- the minimum width in characters of the values for this column. This servers as a hint for the column size calculation when this model is being rendered for display.maxWidth
- the maximum width in characters of the values of this column. This servers as a hint for the column size calculation when this model is being rendered for display.header
- the header string for this column (this value is not actually used by the proxy but can be used by a column renderer.subIndexInfo
- the description of the index.- Returns:
- the new index proxy column.
-