当前位置: 技术问答>java相关
请问DocumentListener监听哪些操作,谢了
来源: 互联网 发布时间:2015-04-26
本文导语: 新手问题: 请问DocumentListener监听哪些操作,谢了 | void changedUpdate(DocumentEvente) 监听Document的属性是否被修改 void insertUpdate(DocumentEvente) 监听是否有新的Document插入 void removeUpdate(D...
新手问题:
请问DocumentListener监听哪些操作,谢了
请问DocumentListener监听哪些操作,谢了
|
void changedUpdate(DocumentEvent e)
监听Document的属性是否被修改
void insertUpdate(DocumentEvent e)
监听是否有新的Document插入
void removeUpdate(DocumentEvent e)
监听是否有Document被删除
监听Document的属性是否被修改
void insertUpdate(DocumentEvent e)
监听是否有新的Document插入
void removeUpdate(DocumentEvent e)
监听是否有Document被删除
|
DocumentListener Interface for an observer to register to receive notifications of changes to a text document
insertUpdate(DocumentEvent e)--
Gives notification that there was an insert into the document. The range given by the DocumentEvent bounds the freshly inserted region.
removeUpdate(DocumentEvent e)--
Gives notification that a portion of the document has been removed. The range is given in terms of what the view last saw (that is, before updating sticky positions).
changedUpdate(DocumentEvent e)--
Gives notification that an attribute or set of attributes changed
insertUpdate(DocumentEvent e)--
Gives notification that there was an insert into the document. The range given by the DocumentEvent bounds the freshly inserted region.
removeUpdate(DocumentEvent e)--
Gives notification that a portion of the document has been removed. The range is given in terms of what the view last saw (that is, before updating sticky positions).
changedUpdate(DocumentEvent e)--
Gives notification that an attribute or set of attributes changed
|
Copy from API doc,so you should see the api doc first if you meet some problems.