public static class DefaultStyledDocument.AttributeUndoableEdit extends AbstractUndoableEdit
| 修飾子と型 | フィールド | 説明 |
|---|---|---|
protected AttributeSet |
copy |
|
protected Element |
element |
|
protected boolean |
isReplacing |
|
protected AttributeSet |
newAttributes |
RedoName, UndoName| コンストラクタ | 説明 |
|---|---|
AttributeUndoableEdit(Element element, AttributeSet newAttributes, boolean isReplacing) |
| 修飾子と型 | メソッド | 説明 |
|---|---|---|
void |
redo() |
変更をやり直します。
|
void |
undo() |
変更を元に戻します。
|
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toStringprotected AttributeSet newAttributes
protected AttributeSet copy
protected boolean isReplacing
protected Element element
public AttributeUndoableEdit(Element element, AttributeSet newAttributes, boolean isReplacing)
public void redo()
throws CannotRedoException
redo、インタフェースUndoableEditredo、クラスAbstractUndoableEditCannotRedoException - 変更のやり直しができない場合AbstractUndoableEdit.canRedo()public void undo()
throws CannotUndoException
undo、インタフェースUndoableEditundo、クラスAbstractUndoableEditCannotUndoException - 変更を元に戻せない場合AbstractUndoableEdit.canUndo() バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。