com.adventnet.snmp.snmp2.agent
Class VaclTableModelListener

java.lang.Object
  extended by com.adventnet.snmp.snmp2.agent.VaclTableModelListener
All Implemented Interfaces:
TableModelListener

public class VaclTableModelListener
extends java.lang.Object
implements TableModelListener


Constructor Summary
VaclTableModelListener(SnmpAgent agentRef)
          Primary Constructor.
VaclTableModelListener(SnmpAgent agentRef, VaclTable vaclTable)
          Constructor with the VaclTable reference.
 
Method Summary
 void addRow(TableEntry entry)
          When the manager is trying to add a row in the table, this method will be called.
 void deleteRow(int[] inst)
          When the manager is trying to delete a row in the table, this method will be called.
 TableEntry get(int[] inst)
          To get the entry for the given row (identified by the instance)
 TableEntry getFirstEntry()
          To get the first entry in the table
 TableEntry getNext(int[] inst)
          To get the next entry for the given row (identified by the instance)
 java.util.Vector getTableElements()
          To get the table elements
 void setTableElements(java.util.Vector tableElements)
          To set the table elements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VaclTableModelListener

public VaclTableModelListener(SnmpAgent agentRef)
Primary Constructor.

Parameters:
agnetRef - the SnmpAgent reference.

VaclTableModelListener

public VaclTableModelListener(SnmpAgent agentRef,
                              VaclTable vaclTable)
Constructor with the VaclTable reference.

Parameters:
agentRef - the SnmpAgent reference.
vaclTable - The VaclTable instance if any associated with this Agent.
Method Detail

addRow

public void addRow(TableEntry entry)
            throws java.lang.Exception
When the manager is trying to add a row in the table, this method will be called.

Specified by:
addRow in interface TableModelListener
Parameters:
entry - the table entry class instance
Throws:
java.lang.Exception - If the entry given is wrong Exceptions will be thrown.

deleteRow

public void deleteRow(int[] inst)
               throws java.lang.Exception
When the manager is trying to delete a row in the table, this method will be called.

Specified by:
deleteRow in interface TableModelListener
Parameters:
entry - the table entry class instance
Throws:
java.lang.Exception - If the entry given is wrong Exceptions will be thrown.

get

public TableEntry get(int[] inst)
To get the entry for the given row (identified by the instance)

Specified by:
get in interface TableModelListener
Parameters:
inst - The instance Value.
Returns:
instance of TableEntry interface with the entry information. Otherwise null.

getFirstEntry

public TableEntry getFirstEntry()
To get the first entry in the table

Specified by:
getFirstEntry in interface TableModelListener
Returns:
instance of TableEntry interface with the entry information. Otherwise null.

getNext

public TableEntry getNext(int[] inst)
To get the next entry for the given row (identified by the instance)

Specified by:
getNext in interface TableModelListener
Parameters:
inst - The instance Value.
Returns:
instance of TableEntry interface with the entry information. Otherwise null.

getTableElements

public java.util.Vector getTableElements()
To get the table elements

Specified by:
getTableElements in interface TableModelListener
Returns:
the Vector instance with collection of TableEntry instances.

setTableElements

public void setTableElements(java.util.Vector tableElements)
To set the table elements

Specified by:
setTableElements in interface TableModelListener
Parameters:
tableElements - the collection of TableEntry instances.