Package org.jdesktop.swingx.autocomplete
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 org.jdesktop.swingx.autocomplete.AutoCompleteDocument
adaptor, delegate, selecting, strictMatching, stringConverter
Fields inherited from interface javax.swing.text.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 Document
Creates 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) 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) Methods inherited from class org.jdesktop.swingx.autocomplete.AutoCompleteDocument
addDocumentListener, addUndoableEditListener, createPosition, getDefaultRootElement, getEndPosition, getLength, getProperty, getRootElements, getStartPosition, getText, getText, insertString, isStrictMatching, putProperty, remove, removeDocumentListener, removeUndoableEditListener, render
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.swing.text.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:
createDefaultDocument
in classAutoCompleteDocument
- Returns:
- the default backing document
-
addStyle
- Specified by:
addStyle
in interfaceStyledDocument
-
getBackground
- Specified by:
getBackground
in interfaceStyledDocument
-
getCharacterElement
- Specified by:
getCharacterElement
in interfaceStyledDocument
-
getFont
- Specified by:
getFont
in interfaceStyledDocument
-
getForeground
- Specified by:
getForeground
in interfaceStyledDocument
-
getLogicalStyle
- Specified by:
getLogicalStyle
in interfaceStyledDocument
-
getParagraphElement
- Specified by:
getParagraphElement
in interfaceStyledDocument
-
getStyle
- Specified by:
getStyle
in interfaceStyledDocument
-
removeStyle
- Specified by:
removeStyle
in interfaceStyledDocument
-
setCharacterAttributes
- Specified by:
setCharacterAttributes
in interfaceStyledDocument
-
setLogicalStyle
- Specified by:
setLogicalStyle
in interfaceStyledDocument
-
setParagraphAttributes
- Specified by:
setParagraphAttributes
in interfaceStyledDocument
-