public class LimitedTextDocument extends TextDocument
AbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElementupperCaselineLimitAttribute, tabSizeAttributeBAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementNameStreamDescriptionProperty, TitleProperty| Constructor and Description |
|---|
LimitedTextDocument(int maximumLength) |
LimitedTextDocument(int maximumLength,
boolean mayusculas) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxLength() |
void |
insertString(int offset,
String stringValue,
AttributeSet attributes) |
void |
setActivatedLimited(boolean enabled) |
void |
setMaxLength(int l) |
setUpperCasecreateDefaultRoot, 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, writeUnlockpublic LimitedTextDocument(int maximumLength)
public LimitedTextDocument(int maximumLength,
boolean mayusculas)
public void insertString(int offset,
String stringValue,
AttributeSet attributes)
throws BadLocationException
insertString in interface DocumentinsertString in class TextDocumentBadLocationExceptionpublic void setActivatedLimited(boolean enabled)
public int getMaxLength()
public void setMaxLength(int l)
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.