org.xnap.commons.gui.completion
Class ShortAutomaticCompletionMode
java.lang.Object
org.xnap.commons.gui.completion.AbstractCompletionMode
org.xnap.commons.gui.completion.ShortAutomaticCompletionMode
- All Implemented Interfaces:
- CompletionMode
- Direct Known Subclasses:
- AutomaticCompletionMode
public class ShortAutomaticCompletionMode
- extends AbstractCompletionMode
This mode mimics KDE's short automatic completion mode.
While typing possible unique completions are inserted into the text
component after the cursor and set selected, so the user can type over
them in case they are not wished for.
- 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShortAutomaticCompletionMode
public ShortAutomaticCompletionMode()
complete
protected void complete(String prefix)
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
- Specified by:
disable
in class AbstractCompletionMode
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.
- Specified by:
enable
in class AbstractCompletionMode
Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.