| 
JavaTM Platform Standard Ed. 6  | 
|||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
| 使用 DocumentEvent 的软件包 | |
|---|---|
| javax.swing.event | 供 Swing 组件触发的事件使用。 | 
| javax.swing.text | 提供类 HTMLEditorKit 和创建 HTML 文本编辑器的支持类。  | 
| javax.swing.text.html | 提供类 HTMLEditorKit 和创建 HTML 文本编辑器的支持类。  | 
| javax.swing.event 中 DocumentEvent 的使用 | 
|---|
| 参数类型为 DocumentEvent 的 javax.swing.event 中的方法 | |
|---|---|
 void | 
DocumentListener.changedUpdate(DocumentEvent e)
给出属性或属性集发生了更改的通知。  | 
 void | 
DocumentListener.insertUpdate(DocumentEvent e)
给出对文档执行了插入操作的通知。  | 
 void | 
DocumentListener.removeUpdate(DocumentEvent e)
给出移除了一部分文档的通知。  | 
| javax.swing.text 中 DocumentEvent 的使用 | 
|---|
| 实现 DocumentEvent 的 javax.swing.text 中的类 | |
|---|---|
 class | 
AbstractDocument.DefaultDocumentEvent
存储修改文档时发生的文档更改。  | 
| 参数类型为 DocumentEvent 的 javax.swing.text 中的方法 | |
|---|---|
 void | 
JTextComponent.AccessibleJTextComponent.changedUpdate(DocumentEvent e)
处理文档移除(触发适当的属性更改事件 AccessibleContext.ACCESSIBLE_TEXT_PROPERTY)。  | 
 void | 
FlowView.changedUpdate(DocumentEvent changes,
              Shape a,
              ViewFactory f)
发出通知,通知文档中此视图负责的某个位置的属性已更改。  | 
 void | 
GlyphView.changedUpdate(DocumentEvent e,
              Shape a,
              ViewFactory f)
发出通知,通知文档此视图负责的位置处的属性已更改。  | 
 void | 
LabelView.changedUpdate(DocumentEvent e,
              Shape a,
              ViewFactory f)
发出通知,通知文档此视图负责的位置处的属性已更改。  | 
 void | 
ParagraphView.changedUpdate(DocumentEvent changes,
              Shape a,
              ViewFactory f)
发出通知,通知文档中此视图负责的某个位置的属性已更改。  | 
 void | 
WrappedPlainView.changedUpdate(DocumentEvent e,
              Shape a,
              ViewFactory f)
发出文档中此视图负责的位置上的属性已发生更改的通知。  | 
 void | 
PlainView.changedUpdate(DocumentEvent changes,
              Shape a,
              ViewFactory f)
发出通知,通知文档中此视图负责的某个位置的属性已更改。  | 
 void | 
View.changedUpdate(DocumentEvent e,
              Shape a,
              ViewFactory f)
发出通知,通知文档此视图负责的位置处的属性已更改。  | 
 void | 
FlowView.FlowStrategy.changedUpdate(FlowView fv,
              DocumentEvent e,
              Rectangle alloc)
发出通知,通知文档中此视图负责的某个位置的属性已更改。  | 
protected  void | 
AbstractDocument.fireChangedUpdate(DocumentEvent e)
通知已注册对获得此事件类型通知感兴趣的所有侦听器。  | 
protected  void | 
AbstractDocument.fireInsertUpdate(DocumentEvent e)
通知已注册对获得此事件类型通知感兴趣的所有侦听器。  | 
protected  void | 
AbstractDocument.fireRemoveUpdate(DocumentEvent e)
通知已注册对获得此事件类型通知感兴趣的所有侦听器。  | 
protected  void | 
BoxView.forwardUpdate(DocumentEvent.ElementChange ec,
              DocumentEvent e,
              Shape a,
              ViewFactory f)
将给定的 DocumentEvent 转发给需要接收模型更改通知的子视图。 | 
protected  void | 
TableView.forwardUpdate(DocumentEvent.ElementChange ec,
              DocumentEvent e,
              Shape a,
              ViewFactory f)
 | 
protected  void | 
View.forwardUpdate(DocumentEvent.ElementChange ec,
              DocumentEvent e,
              Shape a,
              ViewFactory f)
将给定的 DocumentEvent 转发给需要被通知模型更改的子视图。 | 
protected  void | 
View.forwardUpdateToView(View v,
                    DocumentEvent e,
                    Shape a,
                    ViewFactory f)
将 DocumentEvent 转发到给定的子视图。 | 
 void | 
JTextComponent.AccessibleJTextComponent.insertUpdate(DocumentEvent e)
处理文档插入(触发适当的属性更改事件 AccessibleContext.ACCESSIBLE_TEXT_PROPERTY)。  | 
 void | 
FlowView.insertUpdate(DocumentEvent changes,
             Shape a,
             ViewFactory f)
发出通知,通知在文档中此视图负责的某个位置已插入内容。  | 
 void | 
GlyphView.insertUpdate(DocumentEvent e,
             Shape a,
             ViewFactory f)
发出通知,通知文档中此视图负责的位置已插入内容。  | 
 void | 
WrappedPlainView.insertUpdate(DocumentEvent e,
             Shape a,
             ViewFactory f)
发出在文档中此视图负责的位置插入了某些内容的通知。  | 
 void | 
ZoneView.insertUpdate(DocumentEvent changes,
             Shape a,
             ViewFactory f)
给出在文档中此视图负责的位置插入了某些内容的通知。  | 
 void | 
FieldView.insertUpdate(DocumentEvent changes,
             Shape a,
             ViewFactory f)
通知在文档中此视图负责的某个位置已插入内容。  | 
 void | 
PlainView.insertUpdate(DocumentEvent changes,
             Shape a,
             ViewFactory f)
发出通知,通知在文档中此视图负责的某个位置已插入内容。  | 
 void | 
View.insertUpdate(DocumentEvent e,
             Shape a,
             ViewFactory f)
发出通知,通知在文档中此视图负责的某个位置已插入内容。  | 
 void | 
FlowView.FlowStrategy.insertUpdate(FlowView fv,
             DocumentEvent e,
             Rectangle alloc)
发出通知,通知在文档中此视图负责的某个位置已插入内容。  | 
 void | 
JTextComponent.AccessibleJTextComponent.removeUpdate(DocumentEvent e)
处理文档移除(触发适当的属性更改事件 AccessibleContext.ACCESSIBLE_TEXT_PROPERTY)。  | 
 void | 
FlowView.removeUpdate(DocumentEvent changes,
             Shape a,
             ViewFactory f)
发出通知,通知从文档中此视图负责的某个位置已移除内容。  | 
 void | 
GlyphView.removeUpdate(DocumentEvent e,
             Shape a,
             ViewFactory f)
发出通知,通知文档中此视图负责的位置已移除内容。  | 
 void | 
WrappedPlainView.removeUpdate(DocumentEvent e,
             Shape a,
             ViewFactory f)
发出从文档中此视图负责的位置移除了某些内容的通知。  | 
 void | 
ZoneView.removeUpdate(DocumentEvent changes,
             Shape a,
             ViewFactory f)
给出从文档中此视图负责的位置移除了某些内容的通知。  | 
 void | 
FieldView.removeUpdate(DocumentEvent changes,
             Shape a,
             ViewFactory f)
通知在文档中此视图负责的某个位置已插入内容。  | 
 void | 
PlainView.removeUpdate(DocumentEvent changes,
             Shape a,
             ViewFactory f)
通知在文档中此视图负责的某个位置已插入内容。  | 
 void | 
View.removeUpdate(DocumentEvent e,
             Shape a,
             ViewFactory f)
给出从文档中此视图负责的位置移除了某些内容的通知。  | 
 void | 
FlowView.FlowStrategy.removeUpdate(FlowView fv,
             DocumentEvent e,
             Rectangle alloc)
发出通知,通知已从文档中此给定流视图负责的某个位置移除某些内容。  | 
protected  boolean | 
ZoneView.updateChildren(DocumentEvent.ElementChange ec,
               DocumentEvent e,
               ViewFactory f)
超类行为将试图更新子视图,而在这种情况下并不需要这样做,因为子级是分区并且不受关联元素变化的直接影响。  | 
protected  boolean | 
View.updateChildren(DocumentEvent.ElementChange ec,
               DocumentEvent e,
               ViewFactory f)
更新子视图以响应接收模型变化的通知,并且有一条此视图负责的元素的变化记录。  | 
protected  void | 
PlainView.updateDamage(DocumentEvent changes,
             Shape a,
             ViewFactory f)
重新绘制给定文档事件覆盖的更改区域。  | 
protected  void | 
AsyncBoxView.updateLayout(DocumentEvent.ElementChange ec,
             DocumentEvent e,
             Shape a)
更新布局,以响应从模型接收的更改通知。  | 
protected  void | 
View.updateLayout(DocumentEvent.ElementChange ec,
             DocumentEvent e,
             Shape a)
更新布局,以响应从模型接受的更改通知。  | 
| javax.swing.text.html 中 DocumentEvent 的使用 | 
|---|
| 参数类型为 DocumentEvent 的 javax.swing.text.html 中的方法 | |
|---|---|
 void | 
BlockView.changedUpdate(DocumentEvent changes,
              Shape a,
              ViewFactory f)
 | 
 void | 
ImageView.changedUpdate(DocumentEvent e,
              Shape a,
              ViewFactory f)
当 Elements 属性已更改时调用。  | 
 void | 
InlineView.changedUpdate(DocumentEvent e,
              Shape a,
              ViewFactory f)
发出通知,通知文档此视图负责的位置处的属性已更改。  | 
protected  void | 
HTMLDocument.fireChangedUpdate(DocumentEvent e)
通知所有需要此事件类型的通知的已注册侦听器。  | 
 void | 
InlineView.insertUpdate(DocumentEvent e,
             Shape a,
             ViewFactory f)
发出通知,通知文档中此视图负责的位置已插入内容。  | 
 void | 
InlineView.removeUpdate(DocumentEvent e,
             Shape a,
             ViewFactory f)
发出通知,通知文档中此视图负责的位置已移除内容。  | 
  | 
JavaTM Platform Standard Ed. 6  | 
|||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。