# RowSetListener

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

# RowSetListener

`
public


interface
RowSetListener
`  
`


implements

`[EventListener](https://developer.android.com/reference/java/util/EventListener)`


`

|--------------------------|
| javax.sql.RowSetListener |

<br />

*** ** * ** ***

An interface that must be implemented by a component that wants to be notified when a significant event happens in the life of a`RowSet`object. A component becomes a listener by being registered with a`RowSet`object via the method`RowSet.addRowSetListener`. How a registered component implements this interface determines what it does when it is notified of an event.

## Summary

|                                                                                                                                                                    ### Public methods                                                                                                                                                                    ||
|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract void` | ` `[cursorMoved](https://developer.android.com/reference/javax/sql/RowSetListener#cursorMoved(javax.sql.RowSetEvent))`(`[RowSetEvent](https://developer.android.com/reference/javax/sql/RowSetEvent)` event) ` Notifies registered listeners that a`RowSet`object's cursor has moved.                                                  |
| ` abstract void` | ` `[rowChanged](https://developer.android.com/reference/javax/sql/RowSetListener#rowChanged(javax.sql.RowSetEvent))`(`[RowSetEvent](https://developer.android.com/reference/javax/sql/RowSetEvent)` event) ` Notifies registered listeners that a`RowSet`object has had a change in one of its rows.                                   |
| ` abstract void` | ` `[rowSetChanged](https://developer.android.com/reference/javax/sql/RowSetListener#rowSetChanged(javax.sql.RowSetEvent))`(`[RowSetEvent](https://developer.android.com/reference/javax/sql/RowSetEvent)` event) ` Notifies registered listeners that a`RowSet`object in the given`RowSetEvent`object has changed its entire contents. |

## Public methods

### cursorMoved

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract void cursorMoved (RowSetEvent event)
```

Notifies registered listeners that a`RowSet`object's cursor has moved.

The source of the event can be retrieved with the method`event.getSource`.

<br />

|                                                     Parameters                                                      ||
|---------|------------------------------------------------------------------------------------------------------------|
| `event` | `RowSetEvent`: a`RowSetEvent`object that contains the`RowSet`object that is the source of the event <br /> |

### rowChanged

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract void rowChanged (RowSetEvent event)
```

Notifies registered listeners that a`RowSet`object has had a change in one of its rows.

The source of the event can be retrieved with the method`event.getSource`.

<br />

|                                                     Parameters                                                      ||
|---------|------------------------------------------------------------------------------------------------------------|
| `event` | `RowSetEvent`: a`RowSetEvent`object that contains the`RowSet`object that is the source of the event <br /> |

### rowSetChanged

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract void rowSetChanged (RowSetEvent event)
```

Notifies registered listeners that a`RowSet`object in the given`RowSetEvent`object has changed its entire contents.

The source of the event can be retrieved with the method`event.getSource`.

<br />

|                                                     Parameters                                                      ||
|---------|------------------------------------------------------------------------------------------------------------|
| `event` | `RowSetEvent`: a`RowSetEvent`object that contains the`RowSet`object that is the source of the event <br /> |