Class TextEditor

java.lang.Object
se.datadosen.jalbum.TextEditor

public class TextEditor extends Object
Gives access to the currently plugged in text editor. Our JTextPad editor plugs itself into this class on init To open documents for editing, simply issue TextEditor.openDocument(File)
Since:
8.9.2
  • Method Details

    • openDocument

      public static boolean openDocument(File f)
      Open document for editing
      Returns:
      true if opening succeeds. False if editor is missing
    • openDocument

      public static boolean openDocument(File f, int lineNumber)
    • openDocument

      public static boolean openDocument(File f, int lineNumber, int columnNumber)
    • openDocument

      public static boolean openDocument(File f, int lineNumber, int columnNumber, String message)
    • getCurrentEditorComponent

      public static JTextComponent getCurrentEditorComponent()
      Return the editor component for the last used editor
    • newDocument

      public static JTextComponent newDocument()
      Return the editor component for a new editor
    • isInstalled

      public static boolean isInstalled()
    • install

      public static void install(TextEditor.Editor editor)