Package javax.swing.undo

Examples of javax.swing.undo.AbstractUndoableEdit.undo()


    // Check #1.
    harness.check(!edit.canRedo());

    // Check #2.
    edit.undo();
    harness.check(edit.canRedo());

    // Check #3.
    edit.redo();
    harness.check(!edit.canRedo());
View Full Code Here


    // Check #3.
    edit.redo();
    harness.check(!edit.canRedo());

    // Check #4.
    edit.undo();
    harness.check(edit.canRedo());

    // Check #5.
    edit.die();
    harness.check(!edit.canRedo());
View Full Code Here

    // Check #3: Exception for dead edit.
    AbstractUndoableEdit aue = new AbstractUndoableEdit();
    aue.die();
    try
      {
        aue.undo();
        caught = null;
      }
    catch (Exception ex)
      {
        caught = ex;
View Full Code Here

      }
    harness.check(caught instanceof CannotRedoException);

    // Check #3: Exception for dead edit.
    AbstractUndoableEdit aue = new AbstractUndoableEdit();
    aue.undo();
    aue.die();
    try
      {
        aue.redo();
        caught = null;
View Full Code Here

    // Check #1.
    harness.check(edit.canUndo());  

    // Check #2.
    edit.undo();
    harness.check(!edit.canUndo());

    // Check #3.
    edit.redo();
    harness.check(edit.canUndo());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.