org.xnap.gui.component
Class AutomaticDropDownCompletionMode

java.lang.Object
  extended by org.xnap.gui.component.CompletionMode
      extended by org.xnap.gui.component.ShortAutomaticCompletionMode
          extended by org.xnap.gui.component.AutomaticCompletionMode
              extended by org.xnap.gui.component.AutomaticDropDownCompletionMode

public class AutomaticDropDownCompletionMode
extends AutomaticCompletionMode


Constructor Summary
AutomaticDropDownCompletionMode(javax.swing.text.JTextComponent textComponent)
           
AutomaticDropDownCompletionMode(javax.swing.text.JTextComponent textComponent, boolean wholeText)
           
AutomaticDropDownCompletionMode(javax.swing.text.JTextComponent textComponent, CompletionModel model)
           
AutomaticDropDownCompletionMode(javax.swing.text.JTextComponent textComponent, CompletionModel model, boolean wholeText)
           
 
Method Summary
protected  void complete(java.lang.String prefix)
           
protected  void disable()
          Disables the completion mode letting it remove its listeners from the text component.
protected  void enable()
          Enables the completion mode letting it add its listeners to the text component.
 java.lang.String getName()
          Returns the name of this completion mode.
protected  void showPopup()
           
 
Methods inherited from class org.xnap.gui.component.CompletionMode
getModel, getText, getTextComponent, isEnabled, isWholeTextCompletion, setEnabled, setModel, setText, setText, setTextComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutomaticDropDownCompletionMode

public AutomaticDropDownCompletionMode(javax.swing.text.JTextComponent textComponent,
                                       CompletionModel model,
                                       boolean wholeText)
Parameters:
textComponent -
model -
wholeText -

AutomaticDropDownCompletionMode

public AutomaticDropDownCompletionMode(javax.swing.text.JTextComponent textComponent,
                                       boolean wholeText)
Parameters:
textComponent -
wholeText -

AutomaticDropDownCompletionMode

public AutomaticDropDownCompletionMode(javax.swing.text.JTextComponent textComponent,
                                       CompletionModel model)
Parameters:
textComponent -
model -

AutomaticDropDownCompletionMode

public AutomaticDropDownCompletionMode(javax.swing.text.JTextComponent textComponent)
Parameters:
textComponent -
Method Detail

getName

public java.lang.String getName()
Description copied from class: CompletionMode
Returns the name of this completion mode. This should be localized since it's shown to the user.

Overrides:
getName in class AutomaticCompletionMode

enable

protected void enable()
Description copied from class: CompletionMode
Enables the completion mode letting it add its listeners to the text component.

Overrides:
enable in class ShortAutomaticCompletionMode

disable

protected void disable()
Description copied from class: CompletionMode
Disables the completion mode letting it remove its listeners from the text component.

Overrides:
disable in class ShortAutomaticCompletionMode

complete

protected void complete(java.lang.String prefix)
Overrides:
complete in class AutomaticCompletionMode

showPopup

protected void showPopup()


Copyright © 2001-2005 XNap Team. All Rights Reserved.