|
||||||||||
| 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.jaxfront.swing.helpers.StringDocument
public class StringDocument
The class StringDocumentation is an implementation of the PlainDocument. It is responsible for limiting the input capacity of a JTextComponent.
| Nested Class Summary |
|---|
| Nested classes/interfaces 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 |
|---|
| Fields inherited from class javax.swing.text.PlainDocument |
|---|
lineLimitAttribute, tabSizeAttribute |
| Fields inherited from class javax.swing.text.AbstractDocument |
|---|
BidiElementName, ContentElementName, ElementNameAttribute, ParagraphElementName, SectionElementName |
| Fields inherited from interface javax.swing.text.Document |
|---|
StreamDescriptionProperty, TitleProperty |
| Constructor Summary | |
|---|---|
StringDocument(boolean useErrorSound,
long maxLengthOfCharacter)
StringDocument constructor. |
|
| Method Summary | |
|---|---|
void |
insertString(int offset,
java.lang.String string,
javax.swing.text.AttributeSet attributeSet)
|
boolean |
isBypassing()
|
void |
setBypassing(boolean bypass)
|
| Methods inherited from class javax.swing.text.PlainDocument |
|---|
getDefaultRootElement, getParagraphElement |
| Methods inherited from class javax.swing.text.AbstractDocument |
|---|
addDocumentListener, addUndoableEditListener, createPosition, dump, getAsynchronousLoadPriority, getBidiRootElement, getDocumentFilter, getDocumentListeners, getDocumentProperties, getEndPosition, getLength, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, putProperty, readLock, readUnlock, remove, removeDocumentListener, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringDocument(boolean useErrorSound,
long maxLengthOfCharacter)
useErrorSound - true, if the system should give out an error sound (beep)maxLengthOfCharacter - the maximum allowed length of the input character| Method Detail |
|---|
public void insertString(int offset,
java.lang.String string,
javax.swing.text.AttributeSet attributeSet)
throws javax.swing.text.BadLocationException
insertString in interface javax.swing.text.DocumentinsertString in class javax.swing.text.PlainDocumentjavax.swing.text.BadLocationExceptionDocument.insertString(int, java.lang.String, javax.swing.text.AttributeSet)public boolean isBypassing()
isBypassing in interface JAXFrontDocumentpublic void setBypassing(boolean bypass)
setBypassing in interface JAXFrontDocument
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||