com.programix.gui.text
Class FilterChainDocument.LengthFilter
java.lang.Object
com.programix.gui.text.FilterChainDocument.LengthFilter
- All Implemented Interfaces:
- FilterChainDocument.Filter
- Enclosing class:
- FilterChainDocument
public static class FilterChainDocument.LengthFilter
- extends Object
- implements FilterChainDocument.Filter
Filters content by only allowing a maximum number of characters to
be in the document. When the max length is present, insertion of
additional characters are ignored.
- Author:
- Paul Hyde
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilterChainDocument.LengthFilter
public FilterChainDocument.LengthFilter(int maxLength)
filter
public String filter(int offset,
String src,
Document doc)
- Specified by:
filter in interface FilterChainDocument.Filter
Copyright © 2001-2007
Programix Incorporated.
All rights reserved.
ProgramixGenericLib is free
and is
OSI Certified
Open Source Software under the BSD
license.