public class MaskDocument extends PlainDocument
AbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElement| Modifier and Type | Field and Description |
|---|---|
protected boolean |
exactMatch |
protected String |
mask |
lineLimitAttribute, tabSizeAttributeBAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementNameStreamDescriptionProperty, TitleProperty| Constructor and Description |
|---|
MaskDocument(String masc) |
MaskDocument(String masc,
boolean exactMatch) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
compareToMask(String s) |
String |
getValue() |
void |
insertString(int offset,
String stringValue,
AttributeSet attributes) |
protected boolean |
isFixedChar(char c) |
boolean |
isRight() |
void |
setExactMatch(boolean exact) |
void |
setValue(String stringValue,
boolean forze) |
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, writeUnlockprotected String mask
protected boolean exactMatch
public MaskDocument(String masc)
public MaskDocument(String masc, boolean exactMatch)
public void setExactMatch(boolean exact)
protected boolean isFixedChar(char c)
public boolean isRight()
protected boolean compareToMask(String s)
public void insertString(int offset,
String stringValue,
AttributeSet attributes)
insertString in interface DocumentinsertString in class PlainDocumentCopyright © 2016 Imatia Innovation S.L.. All rights reserved.