org.freehep.jas.services
Interface TextEditor


public interface TextEditor

An interface to be implemented by all TextEditors

Version:
$Id: TextEditor.java 13876 2011-09-20 00:52:21Z tonyj $
Author:
tonyj

Method Summary
 File getFile()
          Gett the file being editor
 String getMimeType()
          Get the associated mime-type
 String getText()
          Get the text from the editor, as a String.
 String getTitle()
          Get the title of the editor
 boolean isModified()
          Test if the text in the editor has been modified
 void saveText()
          Save the text being edited.
 

Method Detail

getFile

File getFile()
Gett the file being editor

Returns:
The file, or null if no file is associated with the editor

isModified

boolean isModified()
Test if the text in the editor has been modified

Returns:
true if the text has been modified

getMimeType

String getMimeType()
Get the associated mime-type

Returns:
The mime-type

getTitle

String getTitle()
Get the title of the editor

Returns:
The title

getText

String getText()
Get the text from the editor, as a String.

Returns:
The text

saveText

void saveText()
Save the text being edited.



Copyright © 2013. All Rights Reserved.