class AutoCompletingComboBox.AutoCompletingComboBoxDocument extends PlainDocument
AbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElement| Modifier and Type | Field and Description |
|---|---|
private JosmComboBox |
comboBox |
private boolean |
selecting |
lineLimitAttribute, tabSizeAttributeBAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementNameStreamDescriptionProperty, TitleProperty| Constructor and Description |
|---|
AutoCompletingComboBoxDocument(JosmComboBox comboBox) |
| Modifier and Type | Method and Description |
|---|---|
void |
insertString(int offs,
String str,
AttributeSet a) |
private Object |
lookupItem(String pattern,
boolean match) |
void |
remove(int offs,
int len) |
private void |
setSelectedItem(Object item) |
createDefaultRoot, getDefaultRootElement, getParagraphElement, insertUpdate, removeUpdateaddDocumentListener, addUndoableEditListener, createBranchElement, createLeafElement, createPosition, dump, fireChangedUpdate, fireInsertUpdate, fireRemoveUpdate, fireUndoableEditUpdate, getAsynchronousLoadPriority, getAttributeContext, getBidiRootElement, getContent, getCurrentWriter, getDocumentFilter, getDocumentListeners, getDocumentProperties, getEndPosition, getLength, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, postRemoveUpdate, putProperty, readLock, readUnlock, removeDocumentListener, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties, writeLock, writeUnlockprivate JosmComboBox comboBox
private boolean selecting
public AutoCompletingComboBoxDocument(JosmComboBox comboBox)
public void remove(int offs, int len) throws BadLocationException
remove in interface Documentremove in class AbstractDocumentBadLocationExceptionpublic void insertString(int offs, String str, AttributeSet a) throws BadLocationException
insertString in interface DocumentinsertString in class PlainDocumentBadLocationExceptionprivate void setSelectedItem(Object item)
private Object lookupItem(String pattern, boolean match)