Most visited

Recently visited

Added in API level 1

RowSetListener

public interface RowSetListener
implements EventListener

javax.sql.RowSetListener


一个接口,必须由一个组件实现,该组件需要在RowSet对象的生命期间发生重大事件时收到通知。 组件通过使用方法RowSet.addRowSetListener注册到RowSet对象成为听众。 注册组件如何实现此接口将决定它在接收到事件时的行为。

Summary

Public methods

abstract void cursorMoved(RowSetEvent event)

通知已注册侦听一个 RowSet对象的指针已移动。

abstract void rowChanged(RowSetEvent event)

通知已注册的侦听器,其中一个行的 RowSet对象发生了更改。

abstract void rowSetChanged(RowSetEvent event)

通知已注册的侦听器,给定的 RowSet对象中的 RowSetEvent对象已更改其全部内容。

Public methods

cursorMoved

Added in API level 1
void cursorMoved (RowSetEvent event)

通知已注册侦听一个 RowSet对象的指针已移动。

事件的来源可以通过方法 event.getSource来检索。

Parameters
event RowSetEvent: a RowSetEvent object that contains the RowSet object that is the source of the event

rowChanged

Added in API level 1
void rowChanged (RowSetEvent event)

通知注册的监听者一个 RowSet对象在其某行中发生了变化。

事件的来源可以通过方法 event.getSource来检索。

Parameters
event RowSetEvent: a RowSetEvent object that contains the RowSet object that is the source of the event

rowSetChanged

Added in API level 1
void rowSetChanged (RowSetEvent event)

通知已注册的侦听器,给定的 RowSet对象中的 RowSetEvent对象已更改其全部内容。

事件的来源可以通过方法 event.getSource来检索。

Parameters
event RowSetEvent: a RowSetEvent object that contains the RowSet object that is the source of the event

Hooray!