public class LimitedDocument
extends javax.swing.text.PlainDocument
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
构造器和说明 |
---|
LimitedDocument() |
LimitedDocument(int maxLength,
java.lang.String str) |
限定符和类型 | 方法和说明 |
---|---|
void |
insertString(int offset,
java.lang.String str,
javax.swing.text.AttributeSet attrSet) |
createDefaultRoot, getDefaultRootElement, getParagraphElement, insertUpdate, removeUpdate
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
public LimitedDocument()
public LimitedDocument(int maxLength, java.lang.String str)
public void insertString(int offset, java.lang.String str, javax.swing.text.AttributeSet attrSet) throws javax.swing.text.BadLocationException
insertString
在接口中 javax.swing.text.Document
insertString
在类中 javax.swing.text.PlainDocument
javax.swing.text.BadLocationException