org.xnap.commons.gui.completion
Class EmacsCompletionMode

java.lang.Object
  extended by org.xnap.commons.gui.completion.AbstractCompletionMode
      extended by 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

Field Summary
static DefaultShortcut SHORTCUT_BACKWARD
           
static DefaultShortcut SHORTCUT_FORWARD
           
 
Constructor Summary
EmacsCompletionMode()
           
 
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 org.xnap.commons.gui.completion.AbstractCompletionMode
enable, getCompletion, getModel, getText, getTextComponent, setText, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHORTCUT_FORWARD

public static final DefaultShortcut SHORTCUT_FORWARD

SHORTCUT_BACKWARD

public static final DefaultShortcut SHORTCUT_BACKWARD
Constructor Detail

EmacsCompletionMode

public EmacsCompletionMode()
Method Detail

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.