net.simplace.pipe.util.components.LimitedDocument
This class add the possibility to any Document to lock the number of character in field to a max
length.
public class LimitedDocument extends javax.swing.text.PlainDocument {
// Public Constructors
public LimitedDocument(int aDocumentMaxSize);
// Public Instance Methods public void insertString(int aOffset, String aString, AttributeSet aSet)
throws BadLocationException; // Overrides
javax.swing.text.PlainDocument
Insert the new string and checks for the new length.
public void
setMaxSize(int aDocumentMaxSize);
set document max size
}
Hierarchy: java.lang.Object - javax.swing.text.AbstractDocument (javax.swing.text.Document, java.io.Serializable) - javax.swing.text.PlainDocument - LimitedDocument
Extended by: FWTextFieldFilter, FWTextFieldRegexpFilter