Package se.datadosen.jalbum
Class TextEditor
java.lang.Object
se.datadosen.jalbum.TextEditor
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
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic JTextComponent
Return the editor component for the last used editorstatic void
install
(TextEditor.Editor editor) static boolean
static JTextComponent
Return the editor component for a new editorstatic boolean
openDocument
(File f) Open document for editingstatic boolean
openDocument
(File f, int lineNumber) static boolean
openDocument
(File f, int lineNumber, int columnNumber) static boolean
openDocument
(File f, int lineNumber, int columnNumber, String message)
-
Method Details
-
openDocument
Open document for editing- Returns:
- true if opening succeeds. False if editor is missing
-
openDocument
-
openDocument
-
openDocument
-
getCurrentEditorComponent
Return the editor component for the last used editor -
newDocument
Return the editor component for a new editor -
isInstalled
public static boolean isInstalled() -
install
-