Examples of lockEdits()


Examples of jreepad.editor.ArticleView.lockEdits()

    //    This should stop the caret jumping to the end of the text when we press Save.
    if (currentNode == n)
      return;

    ArticleView oldView = currentArticleView;
    oldView.lockEdits(); // Deactivate the caret-listener, effectively - ALSO DEACTIVATES UNDO-STORAGE

    currentNode = n;
    ensureCorrectArticleRenderMode();

    oldView.unlockEdits(); // Reactivate the caret listener - ALSO REACTIVATES UNDO-STORAGE
View Full Code Here

Examples of jreepad.editor.ArticleView.lockEdits()

  }

  public void setArticleMode(int newMode)
  {
  ArticleView oldView = currentArticleView;
    oldView.lockEdits(); // Disables store-for-undo

    currentNode.getArticle().setArticleMode(newMode);
    ensureCorrectArticleRenderMode();
    currentArticleView.getComponent().repaint();
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.