public interface RowSetListener extends EventListener
RowSet
. To receive the notification events, an object must
implement the RowSetListener
interface and then register itself with
the RowSet
of interest using the
RowSet.addRowSetListener(RowSetListener)
method.Modifier and Type | Method and Description |
---|---|
void |
cursorMoved(RowSetEvent theEvent)
Notifies the listener that the
RowSet 's cursor in theEvent.getSource has moved. |
void |
rowChanged(RowSetEvent theEvent)
Notifies the listener that one of the
RowSet 's rows in theEvent.getSource has changed. |
void |
rowSetChanged(RowSetEvent theEvent)
Notifies the listener that the
RowSet 's entire contents in
theEvent.getSource have been updated (an example is the execution
of a command which retrieves new data from the database). |
void cursorMoved(RowSetEvent theEvent)
RowSet
's cursor in theEvent.getSource
has moved.theEvent
- a RowSetEvent
that contains information about the
RowSet
involved. This information can be used to
retrieve information about the change, such as the updated
data values.void rowChanged(RowSetEvent theEvent)
RowSet
's rows in theEvent.getSource
has changed.theEvent
- a RowSetEvent
that contains information about the
RowSet
involved. This information can be used to
retrieve information about the change, such as the new cursor
position.void rowSetChanged(RowSetEvent theEvent)
RowSet
's entire contents in
theEvent.getSource
have been updated (an example is the execution
of a command which retrieves new data from the database).theEvent
- a RowSetEvent
that contains information about the
RowSet
involved. This information can be used to
retrieve information about the change, such as the updated
rows of data.