public class PasswordDocument extends PlainDocument
AbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElement| Modifier and Type | Field and Description |
|---|---|
protected StringBuffer |
contain |
protected char |
echoChar |
protected int |
maxLength |
protected boolean |
patternMatches |
lineLimitAttribute, tabSizeAttributeBAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementNameStreamDescriptionProperty, TitleProperty| Constructor and Description |
|---|
PasswordDocument() |
PasswordDocument(char maskCharacter) |
PasswordDocument(char maskCharacter,
int limit) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkPattern(String password,
String patternString) |
String |
getContain() |
void |
insertString(int offset,
String stringValue,
AttributeSet attributes) |
boolean |
isPatternMatches() |
void |
remove(int offset,
int length) |
void |
setPatternMatches(boolean b) |
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, removeDocumentListener, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties, writeLock, writeUnlockprotected char echoChar
protected int maxLength
protected StringBuffer contain
protected boolean patternMatches
public PasswordDocument()
public PasswordDocument(char maskCharacter)
public PasswordDocument(char maskCharacter,
int limit)
public void insertString(int offset,
String stringValue,
AttributeSet attributes)
insertString in interface DocumentinsertString in class PlainDocumentpublic void remove(int offset,
int length)
remove in interface Documentremove in class AbstractDocumentpublic String getContain()
public void setPatternMatches(boolean b)
public boolean isPatternMatches()
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.