|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Object
|
+--javax.swing.undo.AbstractUndoableEdit
|
+--javax.swing.undo.CompoundEdit
AbstractUndoableEdit の具象サブクラスで、小さい UndoableEdit をまとめて大きなものに組み立てます。
| フィールドの概要 | |
protected Vector |
edits
CompoundEdit によってひとまとめに、元に戻す/再実行する処理を実行された UndoableEdit のコレクションです。 |
| クラス javax.swing.undo.AbstractUndoableEdit から継承したフィールド |
RedoName, UndoName |
| コンストラクタの概要 | |
CompoundEdit()
|
|
| メソッドの概要 | |
boolean |
addEdit(UndoableEdit anEdit)
この編集結果が inProgress の場合、anEdit を受け付けて true を返します。
|
boolean |
canRedo()
isInProgress が true か、またはスーパークラスが false を返す場合に false を返します。 |
boolean |
canUndo()
isInProgress が true か、またはスーパークラスが 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 を返します。 |
void |
redo()
格納されているすべての UndoableEdit に、追加した順序で redo を送ります。 |
String |
toString()
このオブジェクトのプロパティを表示および識別する文字列を返します。 |
void |
undo()
格納されているすべての UndoableEdit に、追加したときと逆の順序で undo を送ります。 |
| クラス javax.swing.undo.AbstractUndoableEdit から継承したメソッド |
replaceEdit |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| フィールドの詳細 |
protected Vector edits
CompoundEdit によってひとまとめに、元に戻す/再実行する処理を実行された UndoableEdit のコレクションです。
| コンストラクタの詳細 |
public CompoundEdit()
| メソッドの詳細 |
public void undo()
throws CannotUndoException
UndoableEdit に、追加したときと逆の順序で undo を送ります。
UndoableEdit 内の undoAbstractUndoableEdit 内の undoCannotUndoException - canUndo が false を返す場合AbstractUndoableEdit.canUndo()
public void redo()
throws CannotRedoException
UndoableEdit に、追加した順序で redo を送ります。
UndoableEdit 内の redoAbstractUndoableEdit 内の redoCannotRedoException - canRedo が false を返す場合AbstractUndoableEdit.canRedo()protected UndoableEdit lastEdit()
edits 内の最後の UndoableEdit を返します。ただし、edits が空の場合は null を返します。
public void die()
die を送ります。
UndoableEdit 内の dieAbstractUndoableEdit 内の diedie()public boolean addEdit(UndoableEdit anEdit)
inProgress の場合、anEdit を受け付けて true を返します。
この CompoundEdit に追加された最後の編集結果は、addEdit(anEdit) を実行する機会を与えられます。その編集結果が拒否する (false を返す) と、anEdit が最後の編集結果に対して replaceEdit を実行する機会を与えられます。ここで anEdit が false を返すと、edit に追加されます。
UndoableEdit 内の addEditAbstractUndoableEdit 内の addEditanEdit - 追加される編集結果
inProgress の場合は true、そうでない場合は false を返すUndoableEdit.addEdit(javax.swing.undo.UndoableEdit)public void end()
inProgress を false に設定します。
canUndo(),
canRedo()public boolean canUndo()
isInProgress が true か、またはスーパークラスが false を返す場合に false を返します。
UndoableEdit 内の canUndoAbstractUndoableEdit 内の canUndoalive であり、hasBeenDone が true の場合、trueisInProgress()public boolean canRedo()
isInProgress が true か、またはスーパークラスが false を返す場合に false を返します。
UndoableEdit 内の canRedoAbstractUndoableEdit 内の canRedoalive であり、hasBeenDone が false の場合、trueisInProgress()public boolean isInProgress()
end()public boolean isSignificant()
edits 内の UndoableEdit のどれかが true を返した場合に true を返します。すべてが false を返した場合、false を返します。
UndoableEdit 内の isSignificantAbstractUndoableEdit 内の isSignificantUndoableEdit.isSignificant()public String getPresentationName()
edits に追加された最後の UndoableEdit から getPresentationName を返します。edits が空の場合、スーパークラスを呼び出します。
UndoableEdit 内の getPresentationNameAbstractUndoableEdit 内の getPresentationNameAbstractUndoableEdit.getUndoPresentationName(),
AbstractUndoableEdit.getRedoPresentationName()public String getUndoPresentationName()
edits に追加された最後の UndoableEdit から getUndoPresentationName を返します。edits が空の場合、スーパークラスを呼び出します。
UndoableEdit 内の getUndoPresentationNameAbstractUndoableEdit 内の getUndoPresentationNamegetPresentationName が "" でない場合は、キー AbstractUndoableEdit.undoText を使用してデフォルトテーブルから取得した値に、空白文字および getPresentationName を追加した値。getPresentationName が "" の場合は、デフォルト値だけが返される。AbstractUndoableEdit.getPresentationName()public String getRedoPresentationName()
edits に追加された最後の UndoableEdit から getRedoPresentationName を返します。edits が空の場合、スーパークラスを呼び出します。
UndoableEdit 内の getRedoPresentationNameAbstractUndoableEdit 内の getRedoPresentationNamegetPresentationName が "" でない場合は、キー AbstractUndoableEdit.redoText を使用してデフォルトテーブルから取得した値の後ろに空白文字および getPresentationName を追加したもの。getPresentationName が "" の場合は、デフォルト値だけが返されるAbstractUndoableEdit.getPresentationName()public String toString()
AbstractUndoableEdit 内の toString
|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
Java、Java 2D、および JDBC は米国ならびにその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.