|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.snmp4j.agent.mo.DefaultMOTableModel<R>
org.snmp4j.agent.mo.DefaultMOMutableTableModel<R>
public class DefaultMOMutableTableModel<R extends MOTableRow>
| Nested Class Summary | |
|---|---|
class |
DefaultMOMutableTableModel.FilteredRowIterator
|
| Field Summary | |
|---|---|
protected MOTableRowFactory<R> |
rowFactory
|
| Fields inherited from class org.snmp4j.agent.mo.DefaultMOTableModel |
|---|
columnCount, rows |
| Constructor Summary | |
|---|---|
DefaultMOMutableTableModel()
|
|
| Method Summary | |
|---|---|
void |
addMOTableModelListener(MOTableModelListener l)
|
R |
addRow(R row)
Adds a row to the table. |
void |
clear()
Removes all rows. |
void |
clear(MOTableRowFilter<R> filter)
Remove all rows that do not match the given filter criteria from the model. |
R |
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(R row)
Frees resources associated with the supplied row which is to be deleted. |
MOTableRowFactory<R> |
getRowFactory()
|
java.util.List<MOTableRow> |
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<R> |
getRows(org.snmp4j.smi.OID lowerBound,
org.snmp4j.smi.OID upperBoundEx,
MOTableRowFilter<R> filter)
Returns a lexicographic ordered list of the rows in the specified index range that match the supplied filter. |
java.util.Iterator<R> |
iterator(MOTableRowFilter filter)
Returns an iterator over all rows in this table that pass the given filter. |
void |
removeMOTableModelListener(MOTableModelListener l)
|
R |
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, dump, 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<R extends MOTableRow> rowFactory
| Constructor Detail |
|---|
public DefaultMOMutableTableModel()
| Method Detail |
|---|
public MOTableRowFactory<R> getRowFactory()
public java.util.List<MOTableRow> 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<R> getRows(org.snmp4j.smi.OID lowerBound,
org.snmp4j.smi.OID upperBoundEx,
MOTableRowFilter<R> 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 R removeRow(org.snmp4j.smi.OID index)
MOMutableTableModel
removeRow in interface MOMutableTableModel<R extends MOTableRow>index - 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 MOMutableTableModel<R extends MOTableRow>public void clear(MOTableRowFilter<R> filter)
clear in interface MOMutableTableModel<R extends MOTableRow>filter - the MOTableRowFilter that filters out the rows to
delete.public java.util.Iterator<R> iterator(MOTableRowFilter filter)
filter - a MOTableRowFilter instance that defines the rows to return.
public R createRow(org.snmp4j.smi.OID index,
org.snmp4j.smi.Variable[] values)
throws java.lang.UnsupportedOperationException
addRow(R) method.
If this mutable table does not support row creation, it should
throw an UnsupportedOperationException.
createRow in interface MOTableRowFactory<R extends MOTableRow>index - 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 MOMutableTableModel<R extends MOTableRow>rowFactory - a MOTableRowFactory instance or null to
disable row creation.public void setColumnCount(int columnCount)
public void freeRow(R row)
MOTableRowFactory
freeRow in interface MOTableRowFactory<R extends MOTableRow>row - 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 R addRow(R row)
MOMutableTableModel
addRow in interface MOMutableTableModel<R extends MOTableRow>addRow in class DefaultMOTableModel<R extends MOTableRow>row - the MOTableRow instance to add.
null if it
did not have one.
|
Copyright 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||