|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.swing.undo.UndoableEditSupport
public class UndoableEditSupport
用於管理 UndoableEdit 偵聽器的支持類別。
| 欄位摘要 | |
|---|---|
protected CompoundEdit |
compoundEdit
|
protected Vector<UndoableEditListener> |
listeners
|
protected Object |
realSource
|
protected int |
updateLevel
|
| 建構子摘要 | |
|---|---|
UndoableEditSupport()
建構一個 UndoableEditSupport 物件。 |
|
UndoableEditSupport(Object r)
建構一個 UndoableEditSupport 物件。 |
|
| 方法摘要 | |
|---|---|
protected void |
_postEdit(UndoableEdit e)
僅從 postEdit 和 endUpdate 調用。 |
void |
addUndoableEditListener(UndoableEditListener l)
註冊一個 UndoableEditListener。 |
void |
beginUpdate()
|
protected CompoundEdit |
createCompoundEdit()
僅從 beginUpdate 調用。 |
void |
endUpdate()
死鎖警告:調用此方法可能調用所有偵聽器中的 undoableEditHappened。 |
UndoableEditListener[] |
getUndoableEditListeners()
返回使用 addUndoableEditListener() 添加到此 UndoableEditSupport 中的所有 UndoableEditListener 組成的陣列。 |
int |
getUpdateLevel()
返回更新級別值。 |
void |
postEdit(UndoableEdit e)
死鎖警告:調用此方法可能調用所有偵聽器中的 undoableEditHappened。 |
void |
removeUndoableEditListener(UndoableEditListener l)
移除一個 UndoableEditListener。 |
String |
toString()
返回顯示和標識此物件屬性的字元串。 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 欄位詳細資訊 |
|---|
protected int updateLevel
protected CompoundEdit compoundEdit
protected Vector<UndoableEditListener> listeners
protected Object realSource
| 建構子詳細資訊 |
|---|
public UndoableEditSupport()
UndoableEditSupport 物件。
public UndoableEditSupport(Object r)
UndoableEditSupport 物件。
r - 一個 Object| 方法詳細資訊 |
|---|
public void addUndoableEditListener(UndoableEditListener l)
UndoableEditListener。每當可撤消的編輯產生時就通知偵聽器。
l - 一個 UndoableEditListener 物件removeUndoableEditListener(javax.swing.event.UndoableEditListener)public void removeUndoableEditListener(UndoableEditListener l)
UndoableEditListener。
l - 要移除的 UndoableEditListeneraddUndoableEditListener(javax.swing.event.UndoableEditListener)public UndoableEditListener[] getUndoableEditListeners()
UndoableEditListener 組成的陣列。
UndoableEditListener,如果沒有添加偵聽器,則返回一個空陣列protected void _postEdit(UndoableEdit e)
postEdit 和 endUpdate 調用。調用所有偵聽器中的 undoableEditHappened。此處不執行同步,因為兩個調用方法已同步。
public void postEdit(UndoableEdit e)
undoableEditHappened。從它的一個偵聽器中調用此方法是不明智的。
public int getUpdateLevel()
public void beginUpdate()
protected CompoundEdit createCompoundEdit()
beginUpdate 調用。在此處公開供子類別使用。
public void endUpdate()
undoableEditHappened。從它的一個偵聽器中調用此方法是不明智的。
public String toString()
Object 中的 toStringString 表示形式
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。