com.programix.gui.text
Class FilterChainDocument
java.lang.Object
javax.swing.text.AbstractDocument
javax.swing.text.PlainDocument
com.programix.gui.text.FilterChainDocument
- All Implemented Interfaces:
- Serializable, Document
public class FilterChainDocument
- extends PlainDocument
This is a extension of PlainDocument that allows zero or more
filters to be applied to text that is trying to be inserted.
- Author:
- Paul Hyde
- See Also:
- Serialized Form
| Methods inherited from class javax.swing.text.AbstractDocument |
addDocumentListener, addUndoableEditListener, createBranchElement, createLeafElement, createPosition, dump, fireChangedUpdate, fireInsertUpdate, fireRemoveUpdate, fireUndoableEditUpdate, getAsynchronousLoadPriority, getAttributeContext, getBidiRootElement, getContent, getCurrentWriter, getDocumentFilter, getDocumentListeners, getDocumentProperties, getEndPosition, getLength, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, postRemoveUpdate, putProperty, readLock, readUnlock, remove, removeDocumentListener, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties, writeLock, writeUnlock |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TO_UPPER_CASE_FILTER
public static final FilterChainDocument.Filter TO_UPPER_CASE_FILTER
FilterChainDocument.Filter that translates any lower-case characters
to upper-case.
TO_LOWER_CASE_FILTER
public static final FilterChainDocument.Filter TO_LOWER_CASE_FILTER
FilterChainDocument.Filter that translates any upper-case characters
to lower-case.
ALPHA_FILTER
public static final FilterChainDocument.Filter ALPHA_FILTER
FilterChainDocument.Filter that keeps the characters as specified in
StringTools.winnowAlpha(String).
ALPHANUMERIC_FILTER
public static final FilterChainDocument.Filter ALPHANUMERIC_FILTER
FilterChainDocument.Filter that keeps the characters as specified in
StringTools.winnowAlphaNumeric(String).
DIGIT_FILTER
public static final FilterChainDocument.Filter DIGIT_FILTER
FilterChainDocument.Filter that keeps the characters as specified in
StringTools.winnowDigit(String).
DECIMAL_FILTER
public static final FilterChainDocument.Filter DECIMAL_FILTER
FilterChainDocument.Filter that keeps the characters as specified in
StringTools.winnowDecimal(String).
FilterChainDocument
public FilterChainDocument(FilterChainDocument.Filter firstFilter)
FilterChainDocument
public FilterChainDocument()
append
public FilterChainDocument append(FilterChainDocument.Filter filter)
clear
public void clear()
insertString
public void insertString(int offset,
String src,
AttributeSet attr)
throws BadLocationException
- Specified by:
insertString in interface Document- Overrides:
insertString in class PlainDocument
- Throws:
BadLocationException
Copyright © 2001-2009
Programix Incorporated.
All rights reserved.
ProgramixGenericLib is free
and is
OSI Certified
Open Source Software under the BSD
license.