Package jreepad.editor

Examples of jreepad.editor.ArticleView


  {
    //    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


    currentArticleView.reloadArticle();
  }

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

    currentNode.getArticle().setArticleMode(newMode);
    ensureCorrectArticleRenderMode();
    currentArticleView.getComponent().repaint();

    oldView.unlockEdits(); // Re-enables store-for-undo
  }
View Full Code Here

TOP

Related Classes of jreepad.editor.ArticleView

Copyright © 2018 www.massapicom. 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.