Class DisplayFilter

java.lang.Object
  |
  +--DisplayFilter
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class DisplayFilter
extends java.lang.Object
implements java.awt.event.ActionListener

Allows user control of display options for particular languages. This class is evolving, and will probably be renamed.

Version:
$2006-08-24 06:32:32 mdh$
Author:
Malcolm D. Hyman

Constructor Summary
DisplayFilter()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
           
 void displayOptions(java.awt.Frame parent)
          Allows the user to set the display filter options.
 java.lang.String filter(java.lang.String text, java.lang.String lang)
          Filters the string text according to user-set options.
 void initDisplayWidgets()
          Initially creates the widgets used in the option dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplayFilter

public DisplayFilter()
Method Detail

initDisplayWidgets

public void initDisplayWidgets()
Initially creates the widgets used in the option dialog.

displayOptions

public void displayOptions(java.awt.Frame parent)
Allows the user to set the display filter options.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

filter

public java.lang.String filter(java.lang.String text,
                               java.lang.String lang)
Filters the string text according to user-set options. This method will eventually be replaced universally with Language.filter().
Parameters:
text - text to be re-encoded
lang - language code for this text (ISO 639)
Returns:
re-encoded text