org.xnap.commons.gui.completion
Class AutomaticDropDownCompletionMode

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

Constructor Summary
AutomaticDropDownCompletionMode()
           
 
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 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
 

Constructor Detail

AutomaticDropDownCompletionMode

public AutomaticDropDownCompletionMode()
Method Detail

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.