de.miethxml.hawron.gui.context.editor
Class PlainTextEditor
java.lang.Object
de.miethxml.hawron.gui.context.editor.PlainTextEditor
- All Implemented Interfaces:
- Cacheable, CacheableEditor, Editor
- public class PlainTextEditor
- extends java.lang.Object
- implements Cacheable, CacheableEditor
- Author:
- Simon Mieth
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlainTextEditor
public PlainTextEditor()
- Throws:
java.awt.HeadlessException
init
public void init()
- Specified by:
init in interface Editor
open
public void open(java.lang.String file)
- Specified by:
open in interface Editor
save
public void save()
- Specified by:
save in interface Editor
destroy
public void destroy()
- Specified by:
destroy in interface Cacheable
getIcon
public javax.swing.Icon getIcon()
- Specified by:
getIcon in interface Editor
getSetup
public javax.swing.JComponent getSetup()
getToolTip
public java.lang.String getToolTip(java.lang.String lang)
- Specified by:
getToolTip in interface Editor
hasSetup
public boolean hasSetup()
isSetup
public boolean isSetup()
isSupported
public boolean isSupported(java.lang.String extension)
- Description copied from interface:
Editor
- This method is called when a file is selected and should give the
information back, if
the editor can edit this type of file or not.
- Specified by:
isSupported in interface Editor
- Parameters:
extension -
- Returns:
- true if the file is supported otherwise false
newFile
public void newFile(java.lang.String file)
- Description copied from interface:
Editor
- Edit a new file in the given directory.
- Specified by:
newFile in interface Editor
- Parameters:
file -
setVisible
public void setVisible(boolean state)
- Specified by:
setVisible in interface Editor
addEditorCloseListener
public void addEditorCloseListener(EditorCloseListener listener)
- Specified by:
addEditorCloseListener in interface CacheableEditor
removeEditorCloseListener
public void removeEditorCloseListener(EditorCloseListener listener)
- Specified by:
removeEditorCloseListener in interface CacheableEditor
createNewEditor
public Editor createNewEditor()
- Specified by:
createNewEditor in interface Editor
dispose
public void dispose()
- Specified by:
dispose in interface CacheableEditor