org.xnap.gui.component
Class ManualCompletionMode

java.lang.Object
  extended by org.xnap.gui.component.CompletionMode
      extended by org.xnap.gui.component.ManualCompletionMode

public class ManualCompletionMode
extends CompletionMode


Constructor Summary
ManualCompletionMode(javax.swing.text.JTextComponent textComponent)
           
ManualCompletionMode(javax.swing.text.JTextComponent textComponent, boolean wholeText)
           
ManualCompletionMode(javax.swing.text.JTextComponent textComponent, CompletionModel model)
           
ManualCompletionMode(javax.swing.text.JTextComponent textComponent, CompletionModel model, boolean wholeText)
           
 
Method Summary
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.
 
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

ManualCompletionMode

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

ManualCompletionMode

public ManualCompletionMode(javax.swing.text.JTextComponent textComponent)
Parameters:
textComponent -

ManualCompletionMode

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

ManualCompletionMode

public ManualCompletionMode(javax.swing.text.JTextComponent textComponent,
                            CompletionModel model,
                            boolean wholeText)
Parameters:
textComponent -
model -
wholeText -
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.

Specified by:
getName in class CompletionMode

disable

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

Specified by:
disable in class CompletionMode

enable

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

Specified by:
enable in class CompletionMode


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