public class AutoCompleteStyledDocument extends AutoCompleteDocument implements StyledDocument
adaptor, delegate, selecting, strictMatching, stringConverter
StreamDescriptionProperty, 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, render
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addDocumentListener, addUndoableEditListener, createPosition, getDefaultRootElement, getEndPosition, getLength, getProperty, getRootElements, getStartPosition, getText, getText, insertString, putProperty, remove, removeDocumentListener, removeUndoableEditListener, render
public 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 AutoCompleteDocument
public Style addStyle(String nm, Style parent)
addStyle
in interface StyledDocument
public Color getBackground(AttributeSet attr)
getBackground
in interface StyledDocument
public Element getCharacterElement(int pos)
getCharacterElement
in interface StyledDocument
public Font getFont(AttributeSet attr)
getFont
in interface StyledDocument
public Color getForeground(AttributeSet attr)
getForeground
in interface StyledDocument
public Style getLogicalStyle(int p)
getLogicalStyle
in interface StyledDocument
public Element getParagraphElement(int pos)
getParagraphElement
in interface StyledDocument
public Style getStyle(String nm)
getStyle
in interface StyledDocument
public void removeStyle(String nm)
removeStyle
in interface StyledDocument
public void setCharacterAttributes(int offset, int length, AttributeSet s, boolean replace)
setCharacterAttributes
in interface StyledDocument
public void setLogicalStyle(int pos, Style s)
setLogicalStyle
in interface StyledDocument
public void setParagraphAttributes(int offset, int length, AttributeSet s, boolean replace)
setParagraphAttributes
in interface StyledDocument
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses