|
swingx Version 2009-07-31 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.autocomplete.AutoCompleteDocument
org.jdesktop.swingx.autocomplete.AutoCompleteStyledDocument
public class AutoCompleteStyledDocument
Field Summary |
---|
Fields inherited from class org.jdesktop.swingx.autocomplete.AutoCompleteDocument |
---|
delegate, strictMatching |
Fields inherited from interface javax.swing.text.Document |
---|
StreamDescriptionProperty, TitleProperty |
Constructor Summary | |
---|---|
AutoCompleteStyledDocument(AbstractAutoCompleteAdaptor adaptor,
boolean strictMatching)
|
|
AutoCompleteStyledDocument(AbstractAutoCompleteAdaptor adaptor,
boolean strictMatching,
ObjectToStringConverter stringConverter)
|
|
AutoCompleteStyledDocument(AbstractAutoCompleteAdaptor adaptor,
boolean strictMatching,
ObjectToStringConverter stringConverter,
StyledDocument delegate)
|
Method Summary | |
---|---|
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)
|
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 Detail |
---|
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
- Method Detail |
---|
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
|
swingx Version 2009-07-31 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |