| 
 | JavaTM 2 Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CompoundEdit
javax.swing.text.AbstractDocument.DefaultDocumentEvent
public class AbstractDocument.DefaultDocumentEvent
存储修改文档时发生的文档更改。文档修改完成后,可将此内容用于更改通知。AbstractDocument 类及其扩展使用此方法向文档侦听器广播更改信息。
| 嵌套类摘要 | 
|---|
| 从接口 javax.swing.event.DocumentEvent 继承的嵌套类/接口 | 
|---|
| DocumentEvent.ElementChange, DocumentEvent.EventType | 
| 字段摘要 | 
|---|
| 从类 javax.swing.undo.CompoundEdit 继承的字段 | 
|---|
| edits | 
| 从类 javax.swing.undo.AbstractUndoableEdit 继承的字段 | 
|---|
| RedoName, UndoName | 
| 构造方法摘要 | |
|---|---|
| AbstractDocument.DefaultDocumentEvent(int offs,
                                      int len,
                                      DocumentEvent.EventType type)构造更改记录。 | |
| 方法摘要 | |
|---|---|
|  boolean | addEdit(UndoableEdit anEdit)添加文档编辑。 | 
|  DocumentEvent.ElementChange | getChange(Element elem)获得元素的更改。 | 
|  Document | getDocument()获得发起更改事件的文档。 | 
|  int | getLength()返回更改的长度。 | 
|  int | getOffset()返回文档中更改开始位置的偏移量。 | 
|  String | getPresentationName()提供此次编辑的已本地化的、可读的描述,比如,适合于在更改日志中使用的。 | 
|  String | getRedoPresentationName()提供此次编辑可重复执行形式的、已本地化的、可读的描述,例如用作 Redo 菜单项。 | 
|  DocumentEvent.EventType | getType()返回事件的类型。 | 
|  String | getUndoPresentationName()提供此次编辑可撤消形式的、已本地化的、可读的描述,例如,用作 Undo 菜单项。 | 
|  boolean | isSignificant()DefaultDocument 事件是有意义的。 | 
|  void | redo()重复执行更改。 | 
|  String | toString()返回更改事件的字符串表示形式。 | 
|  void | undo()撤消更改。 | 
| 从类 javax.swing.undo.CompoundEdit 继承的方法 | 
|---|
| canRedo, canUndo, die, end, isInProgress, lastEdit | 
| 从类 javax.swing.undo.AbstractUndoableEdit 继承的方法 | 
|---|
| replaceEdit | 
| 从类 java.lang.Object 继承的方法 | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| 构造方法详细信息 | 
|---|
public AbstractDocument.DefaultDocumentEvent(int offs,
                                             int len,
                                             DocumentEvent.EventType type)
offs - 更改文档中的偏移量,该偏移量 >= 0len - 更改的长度,该长度 >= 0type - 事件类型 (DocumentEvent.EventType)| 方法详细信息 | 
|---|
public String toString()
CompoundEdit 中的 toStringpublic boolean addEdit(UndoableEdit anEdit)
UndoableEdit 中的 addEditCompoundEdit 中的 addEditanEdit - 文档编辑记录
UndoableEdit.addEdit(javax.swing.undo.UndoableEdit)
public void redo()
          throws CannotRedoException
UndoableEdit 中的 redoCompoundEdit 中的 redoCannotRedoException - 如果无法重复执行该更改AbstractUndoableEdit.canRedo()
public void undo()
          throws CannotUndoException
UndoableEdit 中的 undoCompoundEdit 中的 undoCannotUndoException - 如果无法撤消该更改AbstractUndoableEdit.canUndo()public boolean isSignificant()
UndoableEdit 中的 isSignificantCompoundEdit 中的 isSignificantUndoableEdit.isSignificant()public String getPresentationName()
UndoableEdit 中的 getPresentationNameCompoundEdit 中的 getPresentationNameAbstractUndoableEdit.getUndoPresentationName(), 
AbstractUndoableEdit.getRedoPresentationName()public String getUndoPresentationName()
UndoableEdit 中的 getUndoPresentationNameCompoundEdit 中的 getUndoPresentationNameAbstractUndoableEdit.getPresentationName()public String getRedoPresentationName()
UndoableEdit 中的 getRedoPresentationNameCompoundEdit 中的 getRedoPresentationNameAbstractUndoableEdit.getPresentationName()public DocumentEvent.EventType getType()
DocumentEvent 中的 getTypeDocumentEvent.getType()public int getOffset()
DocumentEvent 中的 getOffsetDocumentEvent.getOffset()public int getLength()
DocumentEvent 中的 getLengthDocument.getLength()public Document getDocument()
DocumentEvent 中的 getDocumentDocumentEvent.getDocument()public DocumentEvent.ElementChange getChange(Element elem)
DocumentEvent 中的 getChangeelem - 元素
| 
 | JavaTM 2 Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only。