org.xnap.commons.gui.completion
Class AutomaticDropDownCompletionMode
java.lang.Object
org.xnap.commons.gui.completion.AbstractCompletionMode
org.xnap.commons.gui.completion.ShortAutomaticCompletionMode
org.xnap.commons.gui.completion.AutomaticCompletionMode
org.xnap.commons.gui.completion.AutomaticDropDownCompletionMode
- All Implemented Interfaces:
- CompletionMode
public class AutomaticDropDownCompletionMode
- extends AutomaticCompletionMode
This mode mimics KDE's automatic drop down mode. The longest common
unique completion is inserted after the cursor while all ambiguous
completions are presented to the user below the text field in a completion
popup window.
- Author:
- Felix Berger
Method Summary |
protected void |
complete(String prefix)
|
void |
disable()
Disables the completion mode letting it remove its listeners from the
text component. |
protected void |
enable()
Has to be implemented by subclasses which don't have to worry about
setting the completion object and simply use the accessors provided here. |
protected void |
showPopup()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutomaticDropDownCompletionMode
public AutomaticDropDownCompletionMode()
enable
protected void enable()
- Description copied from class:
AbstractCompletionMode
- Has to be implemented by subclasses which don't have to worry about
setting the completion object and simply use the accessors provided here.
- Overrides:
enable
in class ShortAutomaticCompletionMode
disable
public void disable()
- Description copied from interface:
CompletionMode
- Disables the completion mode letting it remove its listeners from the
text component.
- Specified by:
disable
in interface CompletionMode
- Overrides:
disable
in class ShortAutomaticCompletionMode
complete
protected void complete(String prefix)
- Overrides:
complete
in class AutomaticCompletionMode
showPopup
protected void showPopup()
Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.