Package javax.swing.undo

Examples of javax.swing.undo.UndoableEditSupport.endUpdate()


        public String getPresentationName() {
          return preferences.getLocalizedString(HomeController.class, "undoCutName");
        }     
      });
    // End compound edit
    undoSupport.endUpdate();
  }
 
  /**
   * Adds items to home and posts a paste operation to undo support.
   */
 
View Full Code Here


            return preferences.getLocalizedString(HomeController.class, presentationNameKey);
          }     
        });
    
      // End compound edit
      undoSupport.endUpdate();
    }
  }

  /**
   * Adds imported models to home, moves them of (dx, dy)
View Full Code Here

          }     
        });
    }
  
    // End compound edit
    undoSupport.endUpdate();
  }

  /**
   * Deletes the selection in the focused component.
   */
 
View Full Code Here

    // Check #3.
    ues.beginUpdate();
    harness.check(ues.getUpdateLevel(), 2);

    // Check #4.
    ues.endUpdate();
    harness.check(ues.getUpdateLevel(), 1);

    // Check #5.
    ues.beginUpdate();
    harness.check(ues.getUpdateLevel(), 2);
View Full Code Here

    // Check #5.
    ues.beginUpdate();
    harness.check(ues.getUpdateLevel(), 2);

    // Check #6.
    ues.endUpdate();
    harness.check(ues.getUpdateLevel(), 1);

    // Check #7.
    ues.endUpdate();
    harness.check(ues.getUpdateLevel(), 0);
View Full Code Here

    // Check #6.
    ues.endUpdate();
    harness.check(ues.getUpdateLevel(), 1);

    // Check #7.
    ues.endUpdate();
    harness.check(ues.getUpdateLevel(), 0);
  }
}
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.