-
- All Superinterfaces:
-
EventListener
public interface RowSetListener extends EventListener
必须由希望在RowSet对象的生命周期中发生重大事件时得到通知的组件实现的接口。 通过方法RowSet.addRowSetListener向RowSet对象注册,组件成为监听RowSet.addRowSetListener。 注册组件如何实现此接口确定在通知事件时它执行的操作。- 从以下版本开始:
- 1.4
-
-
方法摘要
所有方法 实例方法 抽象方法 变量和类型 方法 描述 voidcursorMoved(RowSetEvent event)通知已注册的侦听器RowSet对象的光标已移动。voidrowChanged(RowSetEvent event)通知已注册的侦听器RowSet对象的某一行已发生更改。voidrowSetChanged(RowSetEvent event)通知已注册的侦听器给定的RowSet对象中的RowSetEvent对象已更改其全部内容。
-
-
-
方法详细信息
-
rowSetChanged
void rowSetChanged(RowSetEvent event)
通知已注册侦听一个RowSet对象在给定的RowSetEvent对象已经改变了它的全部内容。可以使用方法
event.getSource检索事件的来源。- 参数
-
event- 包含RowSet对象的RowSetEvent对象,该对象是事件的来源
-
rowChanged
void rowChanged(RowSetEvent event)
通知已注册的侦听器RowSet对象的某个行已发生更改。可以使用方法
event.getSource检索事件的来源。- 参数
-
event- 包含RowSet对象的RowSetEvent对象,该对象是事件的来源
-
cursorMoved
void cursorMoved(RowSetEvent event)
通知已注册的侦听器RowSet对象的光标已移动。可以使用方法
event.getSource检索事件的来源。- 参数
-
event- 包含RowSet对象的RowSetEvent对象,该对象是事件的来源
-
-