|
Ontimize 5.2072EN | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.text.AbstractDocument
javax.swing.text.PlainDocument
com.ontimize.gui.field.document.MaskDocument
Symbols for mask: '*' : any character '#' : alphabetic characters 'A' : Capital alphabetic characters 'a' : Lower case characters '0' : Numeric characters '%' : Numeric character or Capital alphabetic character A distinct character in a position of mask indicates that only will be allowed this character in that position.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.text.AbstractDocument |
javax.swing.text.AbstractDocument.AbstractElement, javax.swing.text.AbstractDocument.AttributeContext, javax.swing.text.AbstractDocument.BranchElement, javax.swing.text.AbstractDocument.Content, javax.swing.text.AbstractDocument.DefaultDocumentEvent, javax.swing.text.AbstractDocument.ElementEdit, javax.swing.text.AbstractDocument.LeafElement |
| Field Summary | |
protected boolean |
exactMatch
|
protected java.lang.String |
mask
|
| 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 | |
MaskDocument(java.lang.String masc)
|
|
MaskDocument(java.lang.String masc,
boolean exactMatch)
|
|
| Method Summary | |
protected boolean |
compareToMask(java.lang.String s)
|
java.lang.String |
getValue()
|
void |
insertString(int offset,
java.lang.String stringValue,
javax.swing.text.AttributeSet attributes)
|
protected boolean |
isFixedChar(char c)
|
boolean |
isRight()
|
void |
setExactMatch(boolean exact)
|
void |
setValue(java.lang.String stringValue,
boolean forze)
|
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String mask
protected boolean exactMatch
| Constructor Detail |
public MaskDocument(java.lang.String masc)
public MaskDocument(java.lang.String masc,
boolean exactMatch)
| Method Detail |
public void setExactMatch(boolean exact)
public java.lang.String getValue()
throws java.lang.Exception
java.lang.Exceptionprotected boolean isFixedChar(char c)
public void setValue(java.lang.String stringValue,
boolean forze)
throws java.lang.Exception
java.lang.Exceptionpublic boolean isRight()
protected boolean compareToMask(java.lang.String s)
public void insertString(int offset,
java.lang.String stringValue,
javax.swing.text.AttributeSet attributes)
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||