| java.lang.Object java.util.EventObject org.snmp4j.agent.mo.MOTableModelEvent
MOTableModelEvent | public class MOTableModelEvent extends EventObject (Code) | | The MOTableModelEvent event object describes events that change
a table model. Such events include adding, removing, and changing of rows
as well as clearing a whole model.
author: Frank Fock version: 1.0 |
ROW_ADDED | final public static int ROW_ADDED(Code) | | |
ROW_CHANGED | final public static int ROW_CHANGED(Code) | | |
ROW_REMOVED | final public static int ROW_REMOVED(Code) | | |
TABLE_CLEAR | final public static int TABLE_CLEAR(Code) | | |
MOTableModelEvent | public MOTableModelEvent(Object source, int type, MOTableRow affectedRow, int columnIndex)(Code) | | Creates a model event associated with a single row and column.
Parameters: source - the event source. Parameters: type - the event type as defined by the ROW_* constants of this object. Parameters: affectedRow - the row that is associated with this event. Parameters: columnIndex - the column index associated with this event. |
MOTableModelEvent | public MOTableModelEvent(Object source, int type, MOTableRow affectedRow)(Code) | | Creates a model event associated with a single row.
Parameters: source - the event source. Parameters: type - the event type as defined by the ROW_* constants of this object. Parameters: affectedRow - the row that is associated with this event. |
MOTableModelEvent | public MOTableModelEvent(Object source, int type)(Code) | | Creates the model wide event.
Parameters: source - the event source. Parameters: type - the event type as defined by the constants of this object. |
getAffectedRow | public MOTableRow getAffectedRow()(Code) | | Gets the affected row (if a single row is affected by the event).
the MOTableRow instance associated with this event, ornull if the whole model is affected. |
getColumnIndex | public int getColumnIndex()(Code) | | Returns the column index associated with this event.
a column index >= 0 if a column is associated with this event or -1if not. |
getType | public int getType()(Code) | | Returns the type of event.
one of the event type constants defined by this object. |
|
|