public class SimpleDocumentModel extends PlainDocument implements Validatable
AbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElement| Modifier and Type | Field and Description |
|---|---|
protected String |
statusDescription |
protected String |
valueToCheck |
lineLimitAttribute, tabSizeAttributeBAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementNameERROR, VALID, WARNINGStreamDescriptionProperty, TitleProperty| Constructor and Description |
|---|
SimpleDocumentModel() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptChanges(String newValue)
Zum Überschreiben.
|
void |
addValidationStateChangedListener(ValidationStateChangedListener l)
DOCUMENT ME!
|
void |
assignValue(String newValue)
DOCUMENT ME!
|
void |
clear(int offs,
int len)
DOCUMENT ME!
|
void |
fireValidationStateChanged(Object validatedObject)
needen to cascadeValidation.
|
int |
getStatus()
DOCUMENT ME!
|
String |
getValidationMessage()
public String getFormatExample(); public String getDescription();
|
void |
insertNewString(String string,
AttributeSet attributes)
DOCUMENT ME!
|
void |
insertString(int offset,
String string,
AttributeSet attributes) |
void |
remove(int offs,
int len) |
void |
removeValidationStateChangedListener(ValidationStateChangedListener l)
DOCUMENT ME!
|
void |
showAssistent(Component parent)
DOCUMENT ME!
|
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 String statusDescription
protected String valueToCheck
public boolean acceptChanges(String newValue)
newValue - DOCUMENT ME!public void assignValue(String newValue)
newValue - DOCUMENT ME!public void insertNewString(String string, AttributeSet attributes) throws BadLocationException
string - DOCUMENT ME!attributes - DOCUMENT ME!BadLocationException - DOCUMENT ME!public void insertString(int offset,
String string,
AttributeSet attributes)
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 clear(int offs,
int len)
throws BadLocationException
offs - DOCUMENT ME!len - DOCUMENT ME!BadLocationException - DOCUMENT ME!public void removeValidationStateChangedListener(ValidationStateChangedListener l)
ValidatableremoveValidationStateChangedListener in interface Validatablel - DOCUMENT ME!public void addValidationStateChangedListener(ValidationStateChangedListener l)
ValidatableaddValidationStateChangedListener in interface Validatablel - DOCUMENT ME!public String getValidationMessage()
ValidatablegetValidationMessage in interface Validatablepublic int getStatus()
ValidatablegetStatus in interface Validatablepublic void fireValidationStateChanged(Object validatedObject)
ValidatablefireValidationStateChanged in interface ValidatablevalidatedObject - DOCUMENT ME!public void showAssistent(Component parent)
ValidatableshowAssistent in interface Validatableparent - DOCUMENT ME!Copyright © 2012–2025 cismet GmbH. All rights reserved.