Class AutoCompleteStyledDocument
java.lang.Object
org.jdesktop.swingx.autocomplete.AutoCompleteDocument
org.jdesktop.swingx.autocomplete.AutoCompleteStyledDocument
- All Implemented Interfaces:
Document, StyledDocument
-
Field Summary
Fields inherited from class AutoCompleteDocument
adaptor, delegate, selecting, strictMatching, stringConverterFields inherited from interface Document
StreamDescriptionProperty, TitleProperty -
Constructor Summary
ConstructorsConstructorDescriptionAutoCompleteStyledDocument(AbstractAutoCompleteAdaptor adaptor, boolean strictMatching) AutoCompleteStyledDocument(AbstractAutoCompleteAdaptor adaptor, boolean strictMatching, ObjectToStringConverter stringConverter) AutoCompleteStyledDocument(AbstractAutoCompleteAdaptor adaptor, boolean strictMatching, ObjectToStringConverter stringConverter, StyledDocument delegate) -
Method Summary
Modifier and TypeMethodDescriptionprotected DocumentCreates the default backing document when no delegate is passed to this document.getBackground(AttributeSet attr) getCharacterElement(int pos) getFont(AttributeSet attr) getForeground(AttributeSet attr) getLogicalStyle(int p) getParagraphElement(int pos) voidremoveStyle(String nm) voidsetCharacterAttributes(int offset, int length, AttributeSet s, boolean replace) voidsetLogicalStyle(int pos, Style s) voidsetParagraphAttributes(int offset, int length, AttributeSet s, boolean replace) Methods inherited from class AutoCompleteDocument
addDocumentListener, addUndoableEditListener, createPosition, getDefaultRootElement, getEndPosition, getLength, getProperty, getRootElements, getStartPosition, getText, getText, insertString, isStrictMatching, putProperty, remove, removeDocumentListener, removeUndoableEditListener, renderMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Document
addDocumentListener, addUndoableEditListener, createPosition, getDefaultRootElement, getEndPosition, getLength, getProperty, getRootElements, getStartPosition, getText, getText, insertString, putProperty, remove, removeDocumentListener, removeUndoableEditListener, render
-
Constructor Details
-
AutoCompleteStyledDocument
public AutoCompleteStyledDocument(AbstractAutoCompleteAdaptor adaptor, boolean strictMatching, ObjectToStringConverter stringConverter, StyledDocument delegate) - Parameters:
adaptor-strictMatching-stringConverter-delegate-
-
AutoCompleteStyledDocument
public AutoCompleteStyledDocument(AbstractAutoCompleteAdaptor adaptor, boolean strictMatching, ObjectToStringConverter stringConverter) - Parameters:
adaptor-strictMatching-stringConverter-
-
AutoCompleteStyledDocument
- Parameters:
adaptor-strictMatching-
-
-
Method Details
-
createDefaultDocument
Creates the default backing document when no delegate is passed to this document.- Overrides:
createDefaultDocumentin classAutoCompleteDocument- Returns:
- the default backing document
-
addStyle
- Specified by:
addStylein interfaceStyledDocument
-
getBackground
- Specified by:
getBackgroundin interfaceStyledDocument
-
getCharacterElement
- Specified by:
getCharacterElementin interfaceStyledDocument
-
getFont
- Specified by:
getFontin interfaceStyledDocument
-
getForeground
- Specified by:
getForegroundin interfaceStyledDocument
-
getLogicalStyle
- Specified by:
getLogicalStylein interfaceStyledDocument
-
getParagraphElement
- Specified by:
getParagraphElementin interfaceStyledDocument
-
getStyle
- Specified by:
getStylein interfaceStyledDocument
-
removeStyle
- Specified by:
removeStylein interfaceStyledDocument
-
setCharacterAttributes
- Specified by:
setCharacterAttributesin interfaceStyledDocument
-
setLogicalStyle
- Specified by:
setLogicalStylein interfaceStyledDocument
-
setParagraphAttributes
- Specified by:
setParagraphAttributesin interfaceStyledDocument
-