モジュール java.desktop
パッケージ javax.swing.undo

クラスCompoundEdit

すべての実装されたインタフェース:
Serializable, UndoableEdit
直系の既知のサブクラス:
AbstractDocument.DefaultDocumentEvent, UndoManager

public class CompoundEdit
extends AbstractUndoableEdit
複数の小規模なUndoableEditを大きな編集結果にまとめるために使用する、AbstractUndoableEditの具象サブクラスです。
  • フィールドのサマリー

    フィールド 
    修飾子と型 フィールド 説明
    protected Vector<UndoableEdit> edits
    このCompoundEditによりまとめて元に戻す/再実行する処理を施されたUndoableEditのコレクションです。

    クラス javax.swing.undo.AbstractUndoableEditで宣言されたフィールド

    RedoName, UndoName
  • コンストラクタのサマリー

    コンストラクタ 
    コンストラクタ 説明
    CompoundEdit()
    CompoundEditを構築します。
  • メソッドのサマリー

    修飾子と型 メソッド 説明
    boolean addEdit​(UndoableEdit anEdit)
    この編集結果がinProgressである場合、anEditを受け付けてtrueを返します。
    boolean canRedo()
    isInProgressの場合、またはスーパー・クラスがfalseを返す場合はfalseを返します。
    boolean canUndo()
    isInProgressの場合、またはスーパー・クラスがfalseを返す場合はfalseを返します。
    void die()
    各編集結果に対して、それが追加されたときと逆の順序でdieを送ります。
    void end()
    inProgressをfalseに設定します。
    String getPresentationName()
    editsに最後に追加されたUndoableEditから、getPresentationNameを返します。
    String getRedoPresentationName()
    editsに最後に追加されたUndoableEditから、getRedoPresentationNameを返します。
    String getUndoPresentationName()
    editsに最後に追加されたUndoableEditから、getUndoPresentationNameを返します。
    boolean isInProgress()
    この編集結果が進行中の場合、つまり、まだ終了指示を受け取っていない場合に、trueを返します。
    boolean isSignificant()
    edits内のいずれかのUndoableEditがtrueを返す場合はtrueを返します。
    protected UndoableEdit lastEdit()
    複数のeditsのうち最後のUndoableEditを返します。editsが空の場合はnullを返します。
    void redo()
    格納されているすべてのUndoableEditに、追加したときと同じ順序でredoを送ります。
    String toString()
    このオブジェクトのプロパティを表示および識別する文字列を返します。
    void undo()
    格納されているすべてのUndoableEditsに、追加したときと逆の順序でundoを送ります。

    クラス javax.swing.undo.AbstractUndoableEditで宣言されたメソッド

    replaceEdit

    クラス java.lang.Objectで宣言されたメソッド

    cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait