org.xnap.commons.gui.completion
Interface CompletionMode

All Known Implementing Classes:
AbstractCompletionMode, AutomaticCompletionMode, AutomaticDropDownCompletionMode, DropDownListCompletionMode, EmacsCompletionMode, GlobalDefaultCompletionMode, ManualCompletionMode, NoCompletionMode, ShortAutomaticCompletionMode

public interface CompletionMode

Classes implementing this interface handle the way completion is actually done. They decide when and how to offer completion to the user. Completion may be triggered using a special key, it may be visible all the time, it may use a CompletionPopup to present all possibilities or may insert the text directly.

Author:
Felix Berger TODO symmetrical interface + IllegalStateException

Method Summary
 void disable()
          Disables the completion mode letting it remove its listeners from the text component.
 void enable(Completion completion)
          Enables the completion mode letting it add its listeners to the text component.
 

Method Detail

enable

void enable(Completion completion)
Enables the completion mode letting it add its listeners to the text component.

Parameters:
completion - provides all components and information the completion mode must know about

disable

void disable()
Disables the completion mode letting it remove its listeners from the text component.



Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.