接口的使用
javax.swing.event.DocumentEvent
使用 DocumentEvent 的包
包
描述
提供由 Swing 组件触发的事件。
提供处理可编辑和不可编辑文本组件的类和接口。
提供用于创建 HTML 文本编辑器的类
HTMLEditorKit 和支持类。
-
DocumentEvent 在 javax.swing.event 中的用法
javax.swing.event 中的方法,参数类型为 DocumentEvent修饰符和类型方法描述voidDocumentListener.changedUpdate(DocumentEvent e) 发出一个属性或一组属性已更改的通知。voidDocumentListener.insertUpdate(DocumentEvent e) 通知文档中有插入内容。voidDocumentListener.removeUpdate(DocumentEvent e) 通知文档的一部分已被删除。 -
DocumentEvent 在 javax.swing.text 中的用法
javax.swing.text 中实现 DocumentEvent 的类javax.swing.text 中的方法,参数类型为 DocumentEvent修饰符和类型方法描述voidFlowView.changedUpdate(DocumentEvent changes, Shape a, ViewFactory f) 从文档发出通知,通知该视图负责的位置的属性已更改。voidFlowView.FlowStrategy.changedUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) 从文档发出通知,通知该视图负责的位置的属性已更改。voidGlyphView.changedUpdate(DocumentEvent e, Shape a, ViewFactory f) 从文档发出通知,通知该视图负责的位置的属性已更改。voidJTextComponent.AccessibleJTextComponent.changedUpdate(DocumentEvent e) 处理文档删除(触发适当的属性更改事件,即 AccessibleContext.ACCESSIBLE_TEXT_PROPERTY)。voidLabelView.changedUpdate(DocumentEvent e, Shape a, ViewFactory f) 从文档发出通知,通知该视图负责的位置的属性已更改。voidParagraphView.changedUpdate(DocumentEvent changes, Shape a, ViewFactory f) 从文档发出通知,通知该视图负责的位置的属性已更改。voidPlainView.changedUpdate(DocumentEvent changes, Shape a, ViewFactory f) 从文档发出通知,通知该视图负责的位置的属性已更改。voidView.changedUpdate(DocumentEvent e, Shape a, ViewFactory f) 从文档发出通知,通知该视图负责的位置的属性已更改。voidWrappedPlainView.changedUpdate(DocumentEvent e, Shape a, ViewFactory f) 从文档发出通知,通知该视图负责的位置的属性已更改。protected voidAbstractDocument.fireChangedUpdate(DocumentEvent e) 通知所有已注册对此事件类型的通知感兴趣的监听。protected voidAbstractDocument.fireInsertUpdate(DocumentEvent e) 通知所有已注册对此事件类型的通知感兴趣的监听。protected voidAbstractDocument.fireRemoveUpdate(DocumentEvent e) 通知所有已注册对此事件类型的通知感兴趣的监听。protected voidBoxView.forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a, ViewFactory f) 将给定的DocumentEvent转发给需要通知模型更改的子视图。protected voidView.forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a, ViewFactory f) 将给定的DocumentEvent转发给需要通知模型更改的子视图。protected voidView.forwardUpdateToView(View v, DocumentEvent e, Shape a, ViewFactory f) 将DocumentEvent转发给给子视图。voidFieldView.insertUpdate(DocumentEvent changes, Shape a, ViewFactory f) 通知某些内容已插入文档中此视图负责的位置。voidFlowView.FlowStrategy.insertUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) 通知某些内容已插入文档中给定流视图负责的位置。voidFlowView.insertUpdate(DocumentEvent changes, Shape a, ViewFactory f) 通知某些内容已插入文档中此视图负责的位置。voidGlyphView.insertUpdate(DocumentEvent e, Shape a, ViewFactory f) 通知某些内容已插入文档中此视图负责的位置。voidJTextComponent.AccessibleJTextComponent.insertUpdate(DocumentEvent e) 处理文档插入(触发适当的属性更改事件,即 AccessibleContext.ACCESSIBLE_TEXT_PROPERTY)。voidPlainView.insertUpdate(DocumentEvent changes, Shape a, ViewFactory f) 通知某些内容已插入文档中此视图负责的位置。voidView.insertUpdate(DocumentEvent e, Shape a, ViewFactory f) 通知某些内容已插入文档中此视图负责的位置。voidWrappedPlainView.insertUpdate(DocumentEvent e, Shape a, ViewFactory f) 通知某些内容已插入文档中此视图负责的位置。voidZoneView.insertUpdate(DocumentEvent changes, Shape a, ViewFactory f) 通知某些内容已插入文档中此视图负责的位置。voidFieldView.removeUpdate(DocumentEvent changes, Shape a, ViewFactory f) 通知此视图负责的位置从文档中删除了某些内容。voidFlowView.FlowStrategy.removeUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) 通知某些内容已从给定流视图负责的位置的文档中删除。voidFlowView.removeUpdate(DocumentEvent changes, Shape a, ViewFactory f) 通知此视图负责的位置从文档中删除了某些内容。voidGlyphView.removeUpdate(DocumentEvent e, Shape a, ViewFactory f) 通知此视图负责的位置从文档中删除了某些内容。voidJTextComponent.AccessibleJTextComponent.removeUpdate(DocumentEvent e) 处理文档删除(触发适当的属性更改事件,即 AccessibleContext.ACCESSIBLE_TEXT_PROPERTY)。voidPlainView.removeUpdate(DocumentEvent changes, Shape a, ViewFactory f) 通知此视图负责的位置从文档中删除了某些内容。voidView.removeUpdate(DocumentEvent e, Shape a, ViewFactory f) 通知此视图负责的位置从文档中删除了某些内容。voidWrappedPlainView.removeUpdate(DocumentEvent e, Shape a, ViewFactory f) 通知此视图负责的位置从文档中删除了某些内容。voidZoneView.removeUpdate(DocumentEvent changes, Shape a, ViewFactory f) 通知此视图负责的位置从文档中删除了某些内容。protected booleanView.updateChildren(DocumentEvent.ElementChange ec, DocumentEvent e, ViewFactory f) 更新子视图以响应收到模型更改的通知,并且该视图负责的元素有更改记录。protected booleanZoneView.updateChildren(DocumentEvent.ElementChange ec, DocumentEvent e, ViewFactory f) 超类行为将尝试更新在这种情况下不需要的子视图,因为子视图是区域并且不会直接受到关联元素更改的影响。protected voidPlainView.updateDamage(DocumentEvent changes, Shape a, ViewFactory f) 重新绘制给定文档事件所涵盖的更改区域。protected voidAsyncBoxView.updateLayout(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a) 更新布局以响应从模型接收到的更改通知。protected voidView.updateLayout(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a) 更新布局以响应从模型接收到的更改通知。 -
DocumentEvent 在 javax.swing.text.html 中的用法
javax.swing.text.html 中的方法,参数类型为 DocumentEvent修饰符和类型方法描述voidImageView.changedUpdate(DocumentEvent e, Shape a, ViewFactory f) 当 Elements 属性发生变化时调用。voidInlineView.changedUpdate(DocumentEvent e, Shape a, ViewFactory f) 从文档发出通知,通知该视图负责的位置的属性已更改。protected voidHTMLDocument.fireChangedUpdate(DocumentEvent e) 通知所有已注册对此事件类型的通知感兴趣的监听。voidInlineView.insertUpdate(DocumentEvent e, Shape a, ViewFactory f) 通知某些内容已插入文档中此视图负责的位置。voidInlineView.removeUpdate(DocumentEvent e, Shape a, ViewFactory f) 通知此视图负责的位置从文档中删除了某些内容。