public class JTextFieldFilter extends PlainDocument
AbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElement
Modifier and Type | Field and Description |
---|---|
protected String |
acceptedChars |
static String |
ALPHA |
static String |
ALPHA_NUMERIC |
static String |
FLOAT |
static String |
LOWERCASE |
protected boolean |
negativeAccepted |
static String |
NUMERIC |
static String |
UPPERCASE |
lineLimitAttribute, tabSizeAttribute
BAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementName
StreamDescriptionProperty, TitleProperty
Constructor and Description |
---|
JTextFieldFilter() |
JTextFieldFilter(String acceptedchars) |
Modifier and Type | Method and Description |
---|---|
void |
insertString(int offset,
String str,
AttributeSet attr) |
void |
setNegativeAccepted(boolean negativeaccepted) |
createDefaultRoot, getDefaultRootElement, getParagraphElement, insertUpdate, removeUpdate
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
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 String acceptedChars
protected boolean negativeAccepted
public JTextFieldFilter()
public JTextFieldFilter(String acceptedchars)
public void setNegativeAccepted(boolean negativeaccepted)
public void insertString(int offset, String str, AttributeSet attr) throws BadLocationException
insertString
in interface Document
insertString
in class PlainDocument
BadLocationException
Copyright © 2011–2019 52°North. All rights reserved.