net.simplace.ui.components.FWTextFieldFilter

Document for filtering documents. Copied from http://www.codeguru.com/java/articles/443.shtml


public class FWTextFieldFilter extends LimitedDocument {
// Public Constructors
public FWTextFieldFilter();
public FWTextFieldFilter(String aAcceptedChars, int aDocumentMaxSize);
public FWTextFieldFilter(String aAcceptedChars);
public FWTextFieldFilter(String aAcceptedChars, boolean negativeaccepted);
public FWTextFieldFilter(String aAcceptedChars, boolean negativeaccepted,
int aDocumentMaxSize, DocumentListener aListener);

// Constants
public static final String LOWERCASE;
public static final String UPPERCASE;
public static final String ALPHA;
public static final String NUMERIC;
public static final String FLOAT;
public static final String ALPHA_NUMERIC;
// Protected Instance Variables
protected String iAcceptedChars;
protected boolean negativeAccepted;

// Public Instance Methods
public void setAcceptedChars(String aAcceptedChars);

public void setNegativeAccepted(boolean negativeaccepted);

public void insertString(int offset, String str, AttributeSet attr)
throws BadLocationException; // Overrides LimitedDocument



}



Hierarchy: java.lang.Object - javax.swing.text.AbstractDocument (javax.swing.text.Document, java.io.Serializable) - javax.swing.text.PlainDocument - LimitedDocument - FWTextFieldFilter