com.adventnet.snmp.beans
Class SnmpTableEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.adventnet.snmp.beans.SnmpTableEvent
All Implemented Interfaces:
java.io.Serializable

public class SnmpTableEvent
extends java.util.EventObject

This class is the event generated by the SnmpTableReceiver bean class. It contains the SnmpTable data.

See Also:
Serialized Form

Field Summary
static int ALL_COLUMNS
          Constant to specify if change was across all columns.
(package private)  java.lang.Object changedValue
           
(package private)  int column
           
static int DELETE
          Constant to specify what the change was.
(package private)  int endRow
           
(package private)  java.lang.String error
           
static int INSERT
          Constant to specify what the change was.
(package private)  boolean isEnd
           
(package private)  int startRow
           
(package private)  int type
           
static int UPDATE
          Constant to specify what the change was.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SnmpTableEvent(java.lang.Object table, java.lang.Object value, int startRow, int endRow, int column, int change)
          This instantiates an SnmpTable event with specified source.
SnmpTableEvent(java.lang.Object table, java.lang.Object value, int startRow, int endRow, int column, int change, boolean isEnd)
          This instantiates an SnmpTable event with specified source.
 
Method Summary
 int getColumn()
          Gets the columns that are changed.
 int getFirstRow()
          Returns the starting index of the rows changed.
 int getLastRow()
          Returns the last index of the rows changed.
 int getType()
          Returns the type of change that has occured.
 boolean isEndOfTable()
          Returns the state whether the end of the table is reached or not.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

changedValue

java.lang.Object changedValue

startRow

int startRow

endRow

int endRow

column

int column

type

int type

error

java.lang.String error

isEnd

boolean isEnd

INSERT

public static final int INSERT
Constant to specify what the change was.

See Also:
Constant Field Values

DELETE

public static final int DELETE
Constant to specify what the change was.

See Also:
Constant Field Values

UPDATE

public static final int UPDATE
Constant to specify what the change was.

See Also:
Constant Field Values

ALL_COLUMNS

public static final int ALL_COLUMNS
Constant to specify if change was across all columns.

See Also:
Constant Field Values
Constructor Detail

SnmpTableEvent

public SnmpTableEvent(java.lang.Object table,
                      java.lang.Object value,
                      int startRow,
                      int endRow,
                      int column,
                      int change)
This instantiates an SnmpTable event with specified source.

Parameters:
table - - this is the object from which this event is generated.

value - this is the value to the cell.

startRow - starting index of the rows changed.

endRow - last index of the rows changed.

column - the column that is changed.

change - this will specify the type of the change.


SnmpTableEvent

public SnmpTableEvent(java.lang.Object table,
                      java.lang.Object value,
                      int startRow,
                      int endRow,
                      int column,
                      int change,
                      boolean isEnd)
This instantiates an SnmpTable event with specified source.

Parameters:
table - - this is the object from which this event is generated.

value - this is the value to the cell.

startRow - starting index of the rows changed.

endRow - last index of the rows changed.

column - the column that is changed.

change - this will specify the type of the change.

isEnd - this will specify whether end of Table is reached or not.

Method Detail

getFirstRow

public int getFirstRow()
Returns the starting index of the rows changed.

Returns:
the starting index of the rows changed.

getLastRow

public int getLastRow()
Returns the last index of the rows changed.

Returns:
the last index of the rows changed.

getColumn

public int getColumn()
Gets the columns that are changed.

Returns:
-1 if the change was across all the columns.

getType

public int getType()
Returns the type of change that has occured. The returned value can be any one of INSERT (1), DELETE (2), UPDATE (3).

Returns:
any one of the constants.(INSERT, DELETE, UPDATE).

isEndOfTable

public boolean isEndOfTable()
Returns the state whether the end of the table is reached or not.

Returns:
true if the end of the table is reached and false if the end of the table is not reached.