org.xnap.commons.gui.completion
Class EmacsCompletionMode
java.lang.Object
org.xnap.commons.gui.completion.AbstractCompletionMode
org.xnap.commons.gui.completion.EmacsCompletionMode
- All Implemented Interfaces:
- CompletionMode
public class EmacsCompletionMode
- extends AbstractCompletionMode
This completion mode mimics Emacs' (dabbrev-expand)
.
The keys triggering the forward/backward completion can be configured
in the ShortcutManager
framework.
- Author:
- Felix Berger
Method Summary |
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 |
SHORTCUT_FORWARD
public static final DefaultShortcut SHORTCUT_FORWARD
SHORTCUT_BACKWARD
public static final DefaultShortcut SHORTCUT_BACKWARD
EmacsCompletionMode
public EmacsCompletionMode()
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.