|
||||||||||
| 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
org.tentackle.ui.FormFieldDocument
public class FormFieldDocument
Document for FormFieldComponents.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.text.AbstractDocument |
|---|
AbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElement |
| Field Summary |
|---|
| Fields inherited from class javax.swing.text.PlainDocument |
|---|
lineLimitAttribute, tabSizeAttribute |
| Fields inherited from class javax.swing.text.AbstractDocument |
|---|
BAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementName |
| Fields inherited from interface javax.swing.text.Document |
|---|
StreamDescriptionProperty, TitleProperty |
| Constructor Summary | |
|---|---|
FormFieldDocument(FormFieldComponent field)
Creates a form field document. |
|
| Method Summary | |
|---|---|
StringConverter |
getConverter()
Gets the current converter. |
void |
insertString(int offs,
String str,
AttributeSet a)
Inserts some content into the document. |
void |
remove(int offs,
int len)
Removes some content from the document. |
void |
setConverter(StringConverter converter)
Sets the string converter. |
| Methods inherited from class javax.swing.text.PlainDocument |
|---|
createDefaultRoot, getDefaultRootElement, getParagraphElement, insertUpdate, removeUpdate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormFieldDocument(FormFieldComponent field)
field - the form field component| Method Detail |
|---|
public StringConverter getConverter()
public void setConverter(StringConverter converter)
converter - the string converter
public void insertString(int offs,
String str,
AttributeSet a)
throws BadLocationException
This method is thread safe, although most Swing methods are not. Please see How to Use Threads for more information.
Overridden to implement autoSelect, character conversion, valid and invalid character check, filler, insert/override, maxColumns, adjustment, etc...
insertString in interface DocumentinsertString in class PlainDocumentoffs - the starting offset >= 0str - the string to insert; does nothing with null/empty stringsa - the attributes for the inserted content
BadLocationException - the given insert position is not a valid
position within the documentDocument.insertString(int, java.lang.String, javax.swing.text.AttributeSet)
public void remove(int offs,
int len)
throws BadLocationException
javax.swing.text.AbstractDocumentThis method is thread safe, although most Swing methods are not. Please see How to Use Threads for more information.
remove in interface Documentremove in class AbstractDocumentoffs - the starting offset >= 0len - the number of characters to remove >= 0
BadLocationException - the given remove position is not a valid
position within the documentDocument.remove(int, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||