public class InputValidator 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 |
COORDINATE |
protected int |
coordinateCount |
static String |
FLOAT |
static String |
LOWERCASE |
protected boolean |
negativeAccepted |
static String |
NUMERIC |
static String |
STREET |
static String |
UPPERCASE |
protected int |
validatedCoordinateCount |
lineLimitAttribute, tabSizeAttributeBAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementNameStreamDescriptionProperty, TitleProperty| Constructor and Description |
|---|
InputValidator()
Creates a new InputValidator object.
|
InputValidator(String acceptedchars)
Creates a new InputValidator object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
insertString(int offset,
String str,
AttributeSet attr) |
void |
setNegativeAccepted(boolean negativeaccepted)
DOCUMENT ME!
|
createDefaultRoot, getDefaultRootElement, getParagraphElement, insertUpdate, removeUpdateaddDocumentListener, 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, writeUnlockpublic static final String LOWERCASE
public static final String UPPERCASE
public static final String ALPHA
public static final String STREET
public static final String NUMERIC
public static final String FLOAT
public static final String COORDINATE
public static final String ALPHA_NUMERIC
protected int coordinateCount
protected int validatedCoordinateCount
protected String acceptedChars
protected boolean negativeAccepted
public InputValidator()
public InputValidator(String acceptedchars)
acceptedchars - DOCUMENT ME!public void setNegativeAccepted(boolean negativeaccepted)
negativeaccepted - DOCUMENT ME!public void insertString(int offset,
String str,
AttributeSet attr)
throws BadLocationException
insertString in interface DocumentinsertString in class PlainDocumentBadLocationExceptionCopyright © 2012–2026 cismet GmbH. All rights reserved.