public class AutoCompleteStyledDocument extends AutoCompleteDocument implements StyledDocument
delegate, strictMatchingStreamDescriptionProperty, TitleProperty| Constructor and Description |
|---|
AutoCompleteStyledDocument(AbstractAutoCompleteAdaptor adaptor,
boolean strictMatching) |
AutoCompleteStyledDocument(AbstractAutoCompleteAdaptor adaptor,
boolean strictMatching,
ObjectToStringConverter stringConverter) |
AutoCompleteStyledDocument(AbstractAutoCompleteAdaptor adaptor,
boolean strictMatching,
ObjectToStringConverter stringConverter,
StyledDocument delegate) |
| Modifier and Type | Method and Description |
|---|---|
Style |
addStyle(String nm,
Style parent) |
protected Document |
createDefaultDocument()
Creates the default backing document when no delegate is passed to this
document.
|
Color |
getBackground(AttributeSet attr) |
Element |
getCharacterElement(int pos) |
Font |
getFont(AttributeSet attr) |
Color |
getForeground(AttributeSet attr) |
Style |
getLogicalStyle(int p) |
Element |
getParagraphElement(int pos) |
Style |
getStyle(String nm) |
void |
removeStyle(String nm) |
void |
setCharacterAttributes(int offset,
int length,
AttributeSet s,
boolean replace) |
void |
setLogicalStyle(int pos,
Style s) |
void |
setParagraphAttributes(int offset,
int length,
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, 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 Document createDefaultDocument()
createDefaultDocument in class AutoCompleteDocumentpublic Style addStyle(String nm, Style parent)
addStyle in interface StyledDocumentpublic Color getBackground(AttributeSet attr)
getBackground in interface StyledDocumentpublic Element getCharacterElement(int pos)
getCharacterElement in interface StyledDocumentpublic Font getFont(AttributeSet attr)
getFont in interface StyledDocumentpublic Color getForeground(AttributeSet attr)
getForeground in interface StyledDocumentpublic Style getLogicalStyle(int p)
getLogicalStyle in interface StyledDocumentpublic Element getParagraphElement(int pos)
getParagraphElement in interface StyledDocumentpublic Style getStyle(String nm)
getStyle in interface StyledDocumentpublic void removeStyle(String nm)
removeStyle in interface StyledDocumentpublic void setCharacterAttributes(int offset,
int length,
AttributeSet s,
boolean replace)
setCharacterAttributes in interface StyledDocumentpublic void setLogicalStyle(int pos,
Style s)
setLogicalStyle in interface StyledDocumentpublic void setParagraphAttributes(int offset,
int length,
AttributeSet s,
boolean replace)
setParagraphAttributes in interface StyledDocumentCopyright © 2017. All Rights Reserved.