info.rolandkrueger.roklib.ui.swing.rapidsuggest
Class SuggestionComboBox.SuggestionEditorComponent.AutoCompletionDocument
java.lang.Object
javax.swing.text.AbstractDocument
javax.swing.text.PlainDocument
info.rolandkrueger.roklib.ui.swing.rapidsuggest.SuggestionComboBox.SuggestionEditorComponent.AutoCompletionDocument
- All Implemented Interfaces:
- ItemListener, Serializable, EventListener, Document
- Enclosing class:
- SuggestionComboBox.SuggestionEditorComponent
private class SuggestionComboBox.SuggestionEditorComponent.AutoCompletionDocument
- extends PlainDocument
- implements ItemListener
Methods inherited from class javax.swing.text.AbstractDocument |
addDocumentListener, 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, writeUnlock |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
mother
private SuggestionComboBox mother
model
private SuggestionComboBoxModel model
component
private SuggestionComboBox.SuggestionEditorComponent component
selectionStartIndex
private int selectionStartIndex
highlight
private Object highlight
highlighterColor
private Color highlighterColor
SuggestionComboBox.SuggestionEditorComponent.AutoCompletionDocument
public SuggestionComboBox.SuggestionEditorComponent.AutoCompletionDocument(SuggestionComboBox mother,
SuggestionComboBox.SuggestionEditorComponent component)
SuggestionComboBox.SuggestionEditorComponent.AutoCompletionDocument
public SuggestionComboBox.SuggestionEditorComponent.AutoCompletionDocument(SuggestionComboBox mother,
SuggestionComboBox.SuggestionEditorComponent component,
Color highlighterColor)
insertString
public void insertString(int offs,
String str,
AttributeSet a)
throws BadLocationException
- Specified by:
insertString
in interface Document
- Overrides:
insertString
in class PlainDocument
- Throws:
BadLocationException
remove
public void remove(int offs,
int len)
throws BadLocationException
- Specified by:
remove
in interface Document
- Overrides:
remove
in class AbstractDocument
- Throws:
BadLocationException
fetchSuggestion
private void fetchSuggestion(String prefix,
AttributeSet a,
int caretPos)
throws BadLocationException
- Throws:
BadLocationException
itemStateChanged
public void itemStateChanged(ItemEvent e)
- Specified by:
itemStateChanged
in interface ItemListener
removeAllHighlights
public void removeAllHighlights()
removeSuggestionHighlight
public void removeSuggestionHighlight()
Copyright © 2007-2011. All Rights Reserved.