Interface Test01FilterInterface

public interface Test01FilterInterface
This is a test interface to JavaBeans extending the TextEdit editor. This filter has one more parameter to its filterText method than does the SimpleTextInterface. The parent Frame is passed to allow dialogs to be displayed. I'm not sure this is really a good idea for the long run. I would apprecaite feedback on more secure methods to accomplish the same goal.

Copyright (c) 1997 John Jensen. You may use this interface for any purpose.


Method Index

o filterText(Frame,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(Frame parent, 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:
parent - The parent frame allows dialogs to be popped.
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.