鴻蒙OS RowSetListener

2022-11-03 09:44 更新

RowSetListener

  1. public interface RowSetListener
  2. extends EventListener

一個(gè)必須由組件實(shí)現(xiàn)的接口,該組件希望在 RowSet 對(duì)象的生命周期中發(fā)生重大事件時(shí)得到通知。 組件通過通過方法 RowSet.addRowSetListener 注冊(cè)到 RowSet 對(duì)象而成為偵聽器。 注冊(cè)組件如何實(shí)現(xiàn)此接口決定了它在收到事件通知時(shí)會(huì)做什么。

Since:

1.4

方法總結(jié)

修飾符和類型 方法 描述
void cursorMoved(RowSetEvent event) 通知已注冊(cè)的偵聽器 RowSet 對(duì)象的光標(biāo)已移動(dòng)。
void rowChanged(RowSetEvent event) 通知已注冊(cè)的偵聽器 RowSet 對(duì)象的其中一行發(fā)生了更改。
void rowSetChanged(RowSetEvent event) 通知已注冊(cè)的偵聽器給定 RowSetEvent 對(duì)象中的 RowSet 對(duì)象已更改其全部?jī)?nèi)容。

方法詳情

rowSetChanged

void rowSetChanged(RowSetEvent event)

通知已注冊(cè)的偵聽器給定 RowSetEvent 對(duì)象中的 RowSet 對(duì)象已更改其全部?jī)?nèi)容。

可以使用 event.getSource 方法檢索事件的來源。

參數(shù):

參數(shù)名稱 參數(shù)描述
event 包含作為事件源的 RowSet 對(duì)象的 RowSetEvent 對(duì)象

rowChanged

void rowChanged(RowSetEvent event)

通知已注冊(cè)的偵聽器 RowSet 對(duì)象的其中一行發(fā)生了更改。

可以使用 event.getSource 方法檢索事件的來源。

參數(shù):

參數(shù)名稱 參數(shù)描述
event 包含作為事件源的 RowSet 對(duì)象的 RowSetEvent 對(duì)象

cursorMoved

void cursorMoved(RowSetEvent event)

通知已注冊(cè)的偵聽器 RowSet 對(duì)象的光標(biāo)已移動(dòng)。

可以使用 event.getSource 方法檢索事件的來源。

參數(shù):

參數(shù)名稱 參數(shù)描述
event 包含作為事件源的 RowSet 對(duì)象的 RowSetEvent 對(duì)象
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)