public class ToggleDocument extends PlainDocument
AbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElementlineLimitAttribute, tabSizeAttributeBAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementNameStreamDescriptionProperty, TitleProperty| Constructor and Description |
|---|
ToggleDocument() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToggleDocumentListener(ToggleDocumentListener listener)
Add a ToggleDocumentListener to the listener list.
|
void |
fireEmpty()
Notify all registered listeners that the field is no longer empty.
|
void |
fireNotEmpty()
Notify all registered listeners that the field is no longer empty.
|
void |
insertString(int offs,
String str,
AttributeSet a) |
void |
remove(int offs,
int len) |
void |
removeToggleDocumentListener(ToggleDocumentListener listener)
Remove a Toggle Document Listener from the listener list.
|
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, writeUnlockpublic void insertString(int offs,
String str,
AttributeSet a)
throws BadLocationException
insertString in interface DocumentinsertString in class PlainDocumentBadLocationExceptionpublic void remove(int offs,
int len)
throws BadLocationException
remove in interface Documentremove in class AbstractDocumentBadLocationExceptionpublic void addToggleDocumentListener(ToggleDocumentListener listener)
listener - The ToggleDocumentListener to be addedpublic void removeToggleDocumentListener(ToggleDocumentListener listener)
listener - The ToggleDocumentListener to be removedpublic void fireNotEmpty()
public void fireEmpty()
Copyright © 2018. All rights reserved.