|
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。