R
- The MOTable
row type of this event.public class MOTableRowEvent<R extends MOTableRow> extends DeniableEventObject
MOTableRowEvent
class describes the changesModifier and Type | Field and Description |
---|---|
static int |
ADD
A row is added.
|
static int |
CHANGE
A single column of a row is changed.
|
static int |
CREATE
A row is created.
|
static int |
DELETE
A row is deleted.
|
static int |
UPDATED
This event type indicates that a complete row has been updated.
|
source
Constructor and Description |
---|
MOTableRowEvent(Object source,
MOTable<R,? extends MOColumn,? extends MOTableModel<R>> table,
R row,
int type)
Creates a table row event based on table, row and type that cannot be
canceled by the event listener.
|
MOTableRowEvent(Object source,
MOTable<R,? extends MOColumn,? extends MOTableModel<R>> table,
R row,
int type,
boolean deniable)
Creates a table row event based on table, row and type that may be
canceled by the event listener depending on the specified flag.
|
MOTableRowEvent(Object source,
MOTable<R,? extends MOColumn,? extends MOTableModel<R>> table,
R row,
MOTableRow preparedChanges,
int type)
Creates a table row event based on table, row, prepared changes, and type
that cannot be canceled by the event listener.
|
MOTableRowEvent(Object source,
MOTable<R,? extends MOColumn,? extends MOTableModel<R>> table,
R row,
MOTableRow preparedChanges,
int type,
boolean deniable)
Creates a table row event based on table, row, prepared changes, and type.
|
Modifier and Type | Method and Description |
---|---|
MOTableRow |
getPreparedChanges() |
R |
getRow() |
MOTable<R,? extends MOColumn,? extends MOTableModel<R>> |
getTable() |
int |
getType() |
int |
getVetoColumn() |
int |
getVetoStatus()
Returns the veto status that revokes the row operation or zero if the
row operation is accepted by all listeners.
|
void |
setVetoColumn(int vetoColumn)
Sets the column index on whose behalf the veto is issued.
|
void |
setVetoStatus(int denyReason)
Sets the veto status that revokes the row operation.
|
String |
toString() |
getDenyReason, isDeniable, setDenyReason
getSource
public static final int CHANGE
public static final int CREATE
public static final int ADD
public static final int DELETE
public static final int UPDATED
public MOTableRowEvent(Object source, MOTable<R,? extends MOColumn,? extends MOTableModel<R>> table, R row, int type)
source
- the event source.table
- the table.row
- the row associated with this event.type
- the event type.public MOTableRowEvent(Object source, MOTable<R,? extends MOColumn,? extends MOTableModel<R>> table, R row, int type, boolean deniable)
source
- the event source.table
- the table.row
- the row associated with this event.type
- the event type.deniable
- indicates whether the event can be canceled through setting its
denyReason member to a SNMP error status.public MOTableRowEvent(Object source, MOTable<R,? extends MOColumn,? extends MOTableModel<R>> table, R row, MOTableRow preparedChanges, int type)
source
- the event source.table
- the table.row
- the row associated with this event.preparedChanges
- a row instance containing the prepared changes for row
.type
- the event type.public MOTableRowEvent(Object source, MOTable<R,? extends MOColumn,? extends MOTableModel<R>> table, R row, MOTableRow preparedChanges, int type, boolean deniable)
source
- the event source.table
- the table.row
- the row associated with this event.preparedChanges
- a row instance containing the prepared changes for row
.type
- the event type.deniable
- indicates whether the event can be canceled through setting its
denyReason member to a SNMP error status.public R getRow()
public MOTable<R,? extends MOColumn,? extends MOTableModel<R>> getTable()
public int getType()
public int getVetoStatus()
public MOTableRow getPreparedChanges()
public int getVetoColumn()
public void setVetoStatus(int denyReason)
denyReason
- a SNMP error status or a sub-agent protocol specific error status.
In any case zero represents no error.public void setVetoColumn(int vetoColumn)
vetoColumn
- a column index.public String toString()
toString
in class EventObject
Copyright © 2019 SNMP4J.org. All rights reserved.