R
- The MOTable
row type of this event.java.io.Serializable
public class MOTableRowEvent<R extends MOTableRow> extends DeniableEventObject
MOTableRowEvent
class describes the changesModifier and Type | Field | 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 |
EXISTS |
A row exists in the table at the moment when the corresponding
MOTableRowListener
has been added to the table. |
static int |
UPDATED |
This event type indicates that a complete row has been updated.
|
Constructor | Description |
---|---|
MOTableRowEvent(java.lang.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(java.lang.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(java.lang.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(java.lang.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.
|
MOTableRowEvent(java.lang.Object source,
MOTable<R,? extends MOColumn,? extends MOTableModel<R>> table,
R row,
MOTableRow preparedChanges,
int type,
boolean deniable,
int numberOfConsecutiveEventsOfSameOrigin) |
Creates a table row event based on table, row, prepared changes, and type
that cannot be canceled by the event listener.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getNumberOfConsecutiveEventsOfSameOrigin() |
|
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.
|
boolean |
isSendNextEventsOfSameOrigin() |
|
void |
setSendNextEventsOfSameOrigin(boolean sendNextEventsOfSameOrigin) |
|
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.
|
java.lang.String |
toString() |
getDenyReason, isDeniable, setDenyReason
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 static final int EXISTS
MOTableRowListener
has been added to the table. Processing this event type can be used to create dependent rows in augmenting
or otherwise extending tables.public MOTableRowEvent(java.lang.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(java.lang.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(java.lang.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(java.lang.Object source, MOTable<R,? extends MOColumn,? extends MOTableModel<R>> table, R row, MOTableRow preparedChanges, int type, boolean deniable, int numberOfConsecutiveEventsOfSameOrigin)
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.numberOfConsecutiveEventsOfSameOrigin
- specifies the total number of events that will are triggered by the same origin at once, for example
the number of rows in a table with event type EXISTS
, when a listener is added to the table.
The count is exclusive this event.public MOTableRowEvent(java.lang.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 int getNumberOfConsecutiveEventsOfSameOrigin()
public boolean isSendNextEventsOfSameOrigin()
public void setSendNextEventsOfSameOrigin(boolean sendNextEventsOfSameOrigin)
public java.lang.String toString()
toString
in class java.util.EventObject
Copyright © 2018 SNMP4J.org. All rights reserved.