public class AutoCompleteStyledDocument extends AutoCompleteDocument implements javax.swing.text.StyledDocument
delegate, strictMatching| Constructor and Description |
|---|
AutoCompleteStyledDocument(AbstractAutoCompleteAdaptor adaptor,
boolean strictMatching) |
AutoCompleteStyledDocument(AbstractAutoCompleteAdaptor adaptor,
boolean strictMatching,
ObjectToStringConverter stringConverter) |
AutoCompleteStyledDocument(AbstractAutoCompleteAdaptor adaptor,
boolean strictMatching,
ObjectToStringConverter stringConverter,
javax.swing.text.StyledDocument delegate) |
| Modifier and Type | Method and Description |
|---|---|
javax.swing.text.Style |
addStyle(java.lang.String nm,
javax.swing.text.Style parent) |
protected javax.swing.text.Document |
createDefaultDocument()
Creates the default backing document when no delegate is passed to this
document.
|
java.awt.Color |
getBackground(javax.swing.text.AttributeSet attr) |
javax.swing.text.Element |
getCharacterElement(int pos) |
java.awt.Font |
getFont(javax.swing.text.AttributeSet attr) |
java.awt.Color |
getForeground(javax.swing.text.AttributeSet attr) |
javax.swing.text.Style |
getLogicalStyle(int p) |
javax.swing.text.Element |
getParagraphElement(int pos) |
javax.swing.text.Style |
getStyle(java.lang.String nm) |
void |
removeStyle(java.lang.String nm) |
void |
setCharacterAttributes(int offset,
int length,
javax.swing.text.AttributeSet s,
boolean replace) |
void |
setLogicalStyle(int pos,
javax.swing.text.Style s) |
void |
setParagraphAttributes(int offset,
int length,
javax.swing.text.AttributeSet s,
boolean replace) |
addDocumentListener, addUndoableEditListener, createPosition, getDefaultRootElement, getEndPosition, getLength, getProperty, getRootElements, getStartPosition, getText, getText, insertString, isStrictMatching, putProperty, remove, removeDocumentListener, removeUndoableEditListener, renderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddDocumentListener, addUndoableEditListener, createPosition, getDefaultRootElement, getEndPosition, getLength, getProperty, getRootElements, getStartPosition, getText, getText, insertString, putProperty, remove, removeDocumentListener, removeUndoableEditListener, renderpublic AutoCompleteStyledDocument(AbstractAutoCompleteAdaptor adaptor, boolean strictMatching, ObjectToStringConverter stringConverter, javax.swing.text.StyledDocument delegate)
adaptor - strictMatching - stringConverter - delegate - public AutoCompleteStyledDocument(AbstractAutoCompleteAdaptor adaptor, boolean strictMatching, ObjectToStringConverter stringConverter)
adaptor - strictMatching - stringConverter - public AutoCompleteStyledDocument(AbstractAutoCompleteAdaptor adaptor, boolean strictMatching)
adaptor - strictMatching - protected javax.swing.text.Document createDefaultDocument()
createDefaultDocument in class AutoCompleteDocumentpublic javax.swing.text.Style addStyle(java.lang.String nm,
javax.swing.text.Style parent)
addStyle in interface javax.swing.text.StyledDocumentpublic java.awt.Color getBackground(javax.swing.text.AttributeSet attr)
getBackground in interface javax.swing.text.StyledDocumentpublic javax.swing.text.Element getCharacterElement(int pos)
getCharacterElement in interface javax.swing.text.StyledDocumentpublic java.awt.Font getFont(javax.swing.text.AttributeSet attr)
getFont in interface javax.swing.text.StyledDocumentpublic java.awt.Color getForeground(javax.swing.text.AttributeSet attr)
getForeground in interface javax.swing.text.StyledDocumentpublic javax.swing.text.Style getLogicalStyle(int p)
getLogicalStyle in interface javax.swing.text.StyledDocumentpublic javax.swing.text.Element getParagraphElement(int pos)
getParagraphElement in interface javax.swing.text.StyledDocumentpublic javax.swing.text.Style getStyle(java.lang.String nm)
getStyle in interface javax.swing.text.StyledDocumentpublic void removeStyle(java.lang.String nm)
removeStyle in interface javax.swing.text.StyledDocumentpublic void setCharacterAttributes(int offset,
int length,
javax.swing.text.AttributeSet s,
boolean replace)
setCharacterAttributes in interface javax.swing.text.StyledDocumentpublic void setLogicalStyle(int pos,
javax.swing.text.Style s)
setLogicalStyle in interface javax.swing.text.StyledDocumentpublic void setParagraphAttributes(int offset,
int length,
javax.swing.text.AttributeSet s,
boolean replace)
setParagraphAttributes in interface javax.swing.text.StyledDocument