Class FWTextFieldRegexpFilter
java.lang.Object
javax.swing.text.AbstractDocument
javax.swing.text.PlainDocument
net.simplace.pipe.util.components.LimitedDocument
net.simplace.pipe.util.components.FWTextFieldRegexpFilter
- All Implemented Interfaces:
Serializable
,Document
Document for filtering documents.
- Author:
- Andreas Enders
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.text.AbstractDocument
AbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElement
-
Field Summary
Fields inherited from class javax.swing.text.PlainDocument
lineLimitAttribute, tabSizeAttribute
Fields inherited from class javax.swing.text.AbstractDocument
BAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementName
Fields inherited from interface javax.swing.text.Document
StreamDescriptionProperty, TitleProperty
-
Constructor Summary
ConstructorDescriptionFWTextFieldRegexpFilter
(String aRegExp) if Document fits the given Regular expression string is inserted.FWTextFieldRegexpFilter
(String aRegExp, int aDocumentMaxSize) if Document fits the given Regular expression string is inserted. -
Method Summary
Modifier and TypeMethodDescriptionvoid
insertString
(int offset, String aString, AttributeSet attr) Insert the new string and checks for the new length.void
Methods inherited from class net.simplace.pipe.util.components.LimitedDocument
setMaxSize
Methods inherited from class javax.swing.text.PlainDocument
createDefaultRoot, getDefaultRootElement, getParagraphElement, insertUpdate, removeUpdate
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
-
Field Details
-
iRegExp
-
-
Constructor Details
-
FWTextFieldRegexpFilter
if Document fits the given Regular expression string is inserted. Otherwise null is returned- Parameters:
aRegExp
-
-
FWTextFieldRegexpFilter
if Document fits the given Regular expression string is inserted. Otherwise null is returned- Parameters:
aRegExp
-aDocumentMaxSize
-
-
-
Method Details
-
setRegexp
-
insertString
Description copied from class:LimitedDocument
Insert the new string and checks for the new length.- Specified by:
insertString
in interfaceDocument
- Overrides:
insertString
in classLimitedDocument
- Throws:
BadLocationException
-