|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.snmp4j.agent.mo.DefaultMOTableModel
org.snmp4j.agent.mo.DefaultMOMutableTableModel
public class DefaultMOMutableTableModel
| Nested Class Summary | |
|---|---|
class |
DefaultMOMutableTableModel.FilteredRowIterator
|
| Field Summary | |
|---|---|
protected MOTableRowFactory |
rowFactory
|
| Fields inherited from class org.snmp4j.agent.mo.DefaultMOTableModel |
|---|
columnCount, rows |
| Constructor Summary | |
|---|---|
DefaultMOMutableTableModel()
|
|
| Method Summary | |
|---|---|
void |
addMOTableModelListener(MOTableModelListener l)
|
MOTableRow |
addRow(MOTableRow row)
Adds a row to the table. |
void |
clear()
Removes all rows. |
void |
clear(MOTableRowFilter filter)
Remove all rows that do not match the given filter criteria from the model. |
MOTableRow |
createRow(org.snmp4j.smi.OID index,
org.snmp4j.smi.Variable[] values)
Create a new row and return it. |
protected void |
fireTableModelChanged(MOTableModelEvent event)
|
void |
freeRow(MOTableRow row)
Frees resources associated with the supplied row which is to be deleted. |
MOTableRowFactory |
getRowFactory()
|
java.util.List |
getRows(org.snmp4j.smi.OID lowerBound,
org.snmp4j.smi.OID upperBoundEx)
Returns a lexicographic ordered list of the rows in the specified index range. |
java.util.List |
getRows(org.snmp4j.smi.OID lowerBound,
org.snmp4j.smi.OID upperBoundEx,
MOTableRowFilter filter)
Returns a lexicographic ordered list of the rows in the specified index range that match the supplied filter. |
java.util.Iterator |
iterator(MOTableRowFilter filter)
Returns an iterator over all rows in this table that pass the given filter. |
void |
removeMOTableModelListener(MOTableModelListener l)
|
MOTableRow |
removeRow(org.snmp4j.smi.OID index)
Removes the row with the specified index from the table and returns it. |
void |
removeRows(org.snmp4j.smi.OID lowerBoundIncl,
org.snmp4j.smi.OID upperBoundExcl)
|
void |
setColumnCount(int columnCount)
|
void |
setRowFactory(MOTableRowFactory rowFactory)
Sets the factory instance to be used for creating rows for this model. |
| Methods inherited from class org.snmp4j.agent.mo.DefaultMOTableModel |
|---|
containsRow, firstIndex, firstRow, getColumnCount, getRow, getRowCount, iterator, lastIndex, lastRow, tailIterator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.snmp4j.agent.mo.MOTableModel |
|---|
containsRow, firstIndex, firstRow, getColumnCount, getRow, getRowCount, iterator, lastIndex, lastRow, tailIterator |
| Field Detail |
|---|
protected MOTableRowFactory rowFactory
| Constructor Detail |
|---|
public DefaultMOMutableTableModel()
| Method Detail |
|---|
public MOTableRowFactory getRowFactory()
public java.util.List getRows(org.snmp4j.smi.OID lowerBound,
org.snmp4j.smi.OID upperBoundEx)
lowerBound - the lower bound index (inclusive) for the rows in the returned list.upperBoundEx - the upper bound index (exclusive) for the rows in the returned list.
List
of rows of this table model in the specified index range. Modifications
to the list will not affect the underlying table model, although
modifications to the row elements will.
public java.util.List getRows(org.snmp4j.smi.OID lowerBound,
org.snmp4j.smi.OID upperBoundEx,
MOTableRowFilter filter)
lowerBound - the lower bound index (inclusive) for the rows in the returned list.upperBoundEx - the upper bound index (exclusive) for the rows in the returned list.filter - the filter to exclude rows in the range from the returned
List
of rows of this table model in the specified index range. Modifications
to the list will not affect the underlying table model, although
modifications to the row elements will.public MOTableRow removeRow(org.snmp4j.smi.OID index)
MOMutableTableModel
removeRow in interface MOMutableTableModelindex - the row index of the row to remove.
null if the table did not contain such
a row.
public void removeRows(org.snmp4j.smi.OID lowerBoundIncl,
org.snmp4j.smi.OID upperBoundExcl)
public void clear()
MOMutableTableModel
clear in interface MOMutableTableModelpublic void clear(MOTableRowFilter filter)
clear in interface MOMutableTableModelfilter - the MOTableRowFilter that filters out the rows to
delete.public java.util.Iterator iterator(MOTableRowFilter filter)
filter - a MOTableRowFilter instance that defines the rows to return.
public MOTableRow createRow(org.snmp4j.smi.OID index,
org.snmp4j.smi.Variable[] values)
throws java.lang.UnsupportedOperationException
addRow(org.snmp4j.agent.mo.MOTableRow) method.
If this mutable table does not support row creation, it should
throw an UnsupportedOperationException.
createRow in interface MOTableRowFactoryindex - the index OID for the new row.values - the values to be contained in the new row.
MOTableRow.
java.lang.UnsupportedOperationException - if the specified row cannot be created.public void setRowFactory(MOTableRowFactory rowFactory)
MOMutableTableModel
setRowFactory in interface MOMutableTableModelrowFactory - a MOTableRowFactory instance or null to
disable row creation.public void setColumnCount(int columnCount)
public void freeRow(MOTableRow row)
MOTableRowFactory
freeRow in interface MOTableRowFactoryrow - a MOTableRow that has been created using this factory and is now to
be deleted (removed from the associated table).public void addMOTableModelListener(MOTableModelListener l)
public void removeMOTableModelListener(MOTableModelListener l)
protected void fireTableModelChanged(MOTableModelEvent event)
public MOTableRow addRow(MOTableRow row)
MOMutableTableModel
addRow in interface MOMutableTableModeladdRow in class DefaultMOTableModelrow - the MOTableRow instance to add.
null if it
did not have one.
|
Copyright 2005-2008 Frank Fock (SNMP4J.org) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||