org.xnap.commons.gui.completion
Class DropDownListCompletionMode

java.lang.Object
  extended by org.xnap.commons.gui.completion.AbstractCompletionMode
      extended by org.xnap.commons.gui.completion.DropDownListCompletionMode
All Implemented Interfaces:
CompletionMode

public class DropDownListCompletionMode
extends AbstractCompletionMode

Uses a CompletionPopup to present its completions to the user.

Author:
Felix Berger

Field Summary
protected  DocumentListener listener
           
protected  CompletionPopup popup
           
 
Constructor Summary
DropDownListCompletionMode()
           
 
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.
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
 

Field Detail

popup

protected CompletionPopup popup

listener

protected DocumentListener listener
Constructor Detail

DropDownListCompletionMode

public DropDownListCompletionMode()
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.

Specified by:
enable in class AbstractCompletionMode

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

showPopup

protected void showPopup()


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