|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
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
leon.view.win.swing.text.LyJFormattedTextDocument
public class LyJFormattedTextDocument
This class implements controls on its associated JTextComponent.
LyJFormattedField
,
Serialized FormNested 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 | |
---|---|
static java.lang.String |
__VERSION
|
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 | |
---|---|
LyJFormattedTextDocument(LyJFormat format,
LyJFormattedField comp)
Constructor. |
Method Summary | |
---|---|
void |
beep()
Emit a beep. |
void |
insertString(int offset,
java.lang.String str,
javax.swing.text.AttributeSet a)
Method overriden to control the user's insertions to allow only well-formed inputs. |
void |
remove(int offs,
int len)
Method overriden to control the user's deletion to allow only well-formed inputs. |
void |
replaceChar(int offset,
char c,
javax.swing.text.AttributeSet a)
Replaces the character at pos offset by c. |
void |
setDisplayableString(java.lang.String text)
Sets the new text contained by this document. |
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, removeDocumentListener, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyJFormattedTextDocument(LyJFormat format, LyJFormattedField comp)
format
- the format to respectcomp
- the associated JTextComponentMethod Detail |
---|
public void beep()
public void insertString(int offset, java.lang.String str, javax.swing.text.AttributeSet a) throws javax.swing.text.BadLocationException
insertString
in interface javax.swing.text.Document
insertString
in class javax.swing.text.PlainDocument
javax.swing.text.BadLocationException
public void remove(int offs, int len) throws javax.swing.text.BadLocationException
remove
in interface javax.swing.text.Document
remove
in class javax.swing.text.AbstractDocument
javax.swing.text.BadLocationException
public void replaceChar(int offset, char c, javax.swing.text.AttributeSet a) throws javax.swing.text.BadLocationException
offset
- the position of the replacementc
- the new chara
- the AttibuteSet, not used here
javax.swing.text.BadLocationException
public void setDisplayableString(java.lang.String text) throws javax.swing.text.BadLocationException
text
- the new text
javax.swing.text.BadLocationException
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |