|
UTJML | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Editorable
An interface to the editor of the GUI. This interface provides APIs for creating a new document, opening a file, saving the editing buffer to a file, and checking if the editor has unsaved edits.
| Method Summary | |
|---|---|
void |
highlight(String file,
int line)
Highlights the specified line of the given file. |
void |
highlight(String file,
int line,
int column)
Highlights the specified line and column of the given file. |
boolean |
isDirty()
Returns true if there exist unsaved edits for the document of this editor. |
boolean |
newDocument()
Creates a new empty document for this editor. |
boolean |
openFile(File file)
Opens the given file file for editing by this
editor. |
boolean |
saveFile(File file)
Saves the document of this editor to the given file file. |
| Method Detail |
|---|
boolean newDocument()
boolean openFile(File file)
file for editing by this
editor. The contents of the file are read into the document of
this editor.
boolean saveFile(File file)
file.
boolean isDirty()
void highlight(String file,
int line,
int column)
void highlight(String file,
int line)
|
UTJML | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||