Interface SimpleFilterInterface
- public interface SimpleFilterInterface
This is a simple interface to JavaBeans extending the TextEdit editor.
I plan on supporting this interface as well as more elaborate beans and
interfaces in future text editors.
Copyright (c) 1997 John Jensen. You may use this interface for any purpose.
Method Index
- o
filterText(String)
- This function filters text from the TextEdit application.
- o
getMenuString()
- Returns a menu string to the TextEdit application.
Methods
o
getMenuString
public abstract String getMenuString()
- Returns a menu string to the TextEdit application.
This string is inserted into the "Options" menu.
- Returns:
- The menu string.
o
filterText
public abstract String filterText(String text)
- This function filters text from the TextEdit application. This "filtering"
may be anything which produces new text, it may even ignore
the passed selection (as in an "insert date" item).
- Parameters:
- text - The currently selected text from the editor.
Note that this may be an empty string, "".
- Returns:
- This filter should return a new String if the
operation is successful and a null pointer when
it fails.