|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CompoundEdit
public class CompoundEdit
複数の小規模な UndoableEdit を大きな編集結果にまとめるために使用する、AbstractUndoableEdit の具象サブクラスです。
| フィールドの概要 | |
|---|---|
protected Vector<UndoableEdit> |
edits
この CompoundEdit によりまとめて元に戻す/再実行する処理を施された UndoableEdit のコレクションです。 |
| クラス javax.swing.undo.AbstractUndoableEdit から継承されたフィールド |
|---|
RedoName, UndoName |
| コンストラクタの概要 | |
|---|---|
CompoundEdit()
|
|
| メソッドの概要 | |
|---|---|
boolean |
addEdit(UndoableEdit anEdit)
この編集結果が inProgress である場合、anEdit を受け付けて true を返します。 |
boolean |
canRedo()
isInProgress が false である場合、またはスーパークラスが false を返す場合は false を返します。 |
boolean |
canUndo()
isInProgress が false である場合、またはスーパークラスが false を返す場合は false を返します。 |
void |
die()
各編集結果に対して、それが追加されたときと逆の順序で die を送ります。 |
void |
end()
inProgress を false に設定します。 |
String |
getPresentationName()
edit に最後に追加された UndoableEdit から、getPresentationName を返します。 |
String |
getRedoPresentationName()
edit に最後に追加された UndoableEdit から、getRedoPresentationName を返します。 |
String |
getUndoPresentationName()
edit に最後に追加された UndoableEdit から、getUndoPresentationName を返します。 |
boolean |
isInProgress()
この編集結果が進行中の場合、つまり、まだ終了指示を受け取っていない場合に、true を返します。 |
boolean |
isSignificant()
複数の edit のうちいずれかの UndoableEdit が true を返す場合に true を返します。 |
protected UndoableEdit |
lastEdit()
複数の edit のうち最後の 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<UndoableEdit> 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()
edit のうち最後の UndoableEdit を返します。edit が空の場合は 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 が false である場合、またはスーパークラスが false を返す場合は false を返します。
UndoableEdit 内の canUndoAbstractUndoableEdit 内の canUndoalive で、 hasBeenDone が true である場合は trueisInProgress()public boolean canRedo()
isInProgress が false である場合、またはスーパークラスが false を返す場合は false を返します。
UndoableEdit 内の canRedoAbstractUndoableEdit 内の canRedoalive で、hasBeenDone が false である場合は trueisInProgress()public boolean isInProgress()
end()public boolean isSignificant()
edit のうちいずれかの UndoableEdit が true を返す場合に true を返します。すべてが false を返す場合は false を返します。
UndoableEdit 内の isSignificantAbstractUndoableEdit 内の isSignificantUndoableEdit.isSignificant()public String getPresentationName()
edit に最後に追加された UndoableEdit から、getPresentationName を返します。edits が空の場合、スーパークラスを呼び出します。
UndoableEdit 内の getPresentationNameAbstractUndoableEdit 内の getPresentationNameAbstractUndoableEdit.getUndoPresentationName(),
AbstractUndoableEdit.getRedoPresentationName()public String getUndoPresentationName()
edit に最後に追加された UndoableEdit から、getUndoPresentationName を返します。edits が空の場合、スーパークラスを呼び出します。
UndoableEdit 内の getUndoPresentationNameAbstractUndoableEdit 内の getUndoPresentationNamegetPresentationName が "" でない場合は、 キー AbstractUndoableEdit.undoText を使って デフォルトテーブルから取得した値に、空白文字と getPresentationName を 追加した値。そうでない場合は デフォルトの値だけが返されるAbstractUndoableEdit.getPresentationName()public String getRedoPresentationName()
edit に最後に追加された UndoableEdit から、getRedoPresentationName を返します。edits が空の場合、スーパークラスを呼び出します。
UndoableEdit 内の getRedoPresentationNameAbstractUndoableEdit 内の getRedoPresentationNamegetPresentationName が "" でない場合は、 キー AbstractUndoableEdit.redoText を使って デフォルトテーブルから取得した値に、空白文字と getPresentationName を 追加した値。そうでない場合は デフォルトの値だけが返されるAbstractUndoableEdit.getPresentationName()public String toString()
AbstractUndoableEdit 内の toString
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。