クラス
javax.swing.undo.CannotUndoExceptionの使用
-
CannotUndoExceptionを使用しているパッケージ パッケージ 説明 javax.swing.text 編集可能なテキスト・コンポーネントと編集不能なテキスト・コンポーネントを処理するクラスとインタフェースを提供します。javax.swing.undo 開発者がテキスト・エディタなどのアプリケーションで、元に戻す/再実行の機能を提供できるようにします。 -
-
javax.swing.textでのCannotUndoExceptionの使用
CannotUndoExceptionをスローするjavax.swing.text内のメソッド 修飾子と型 メソッド 説明 void
AbstractDocument.DefaultDocumentEvent. undo()
変更を元に戻します。void
AbstractDocument.ElementEdit. undo()
変更を元に戻します。void
DefaultStyledDocument.AttributeUndoableEdit. undo()
変更を元に戻します。 -
javax.swing.undoでのCannotUndoExceptionの使用
CannotUndoExceptionをスローするjavax.swing.undo内のメソッド 修飾子と型 メソッド 説明 void
AbstractUndoableEdit. undo()
canUndo
がfalse
を返す場合、CannotUndoException
をスローします。void
CompoundEdit. undo()
格納されているすべてのUndoableEdits
に、追加したときと逆の順序でundo
を送ります。void
UndoableEdit. undo()
編集結果を取り消します。void
UndoManager. undo()
編集結果を選択して取り消します。void
UndoManager. undoOrRedo()
undo
またはredo
のどちらか1つを呼び出す簡易メソッドです。protected void
UndoManager. undoTo(UndoableEdit edit)
次の編集結果のインデックスからedit
までのすべての変更を取り消し、それに合わせて次の編集結果のインデックスを更新します。
-