org.xnap.gui.component
Interface Completable

All Known Implementing Classes:
HistoryComboBox, XNapTextField

public interface Completable

Classes implementing this interface can be adorned with a CompletionModeMenu or a TextFieldMenu which has a CompletionModeMenu as a submenu.


Method Summary
 CompletionMode getCompletionMode()
          Returns the currently set completion mode.
 CompletionModel getCompletionModel()
          Returns the currently used completion model.
 javax.swing.text.JTextComponent getTextComponent()
          Returns the text component the completion mode should operate on.
 void setCompletionMode(java.lang.String mode)
          Sets the completion mode to one of the modes provided by the CompletionModeFactory.
 void setCompletionModel(CompletionModel model)
          Sets the completion model.
 

Method Detail

setCompletionMode

void setCompletionMode(java.lang.String mode)
Sets the completion mode to one of the modes provided by the CompletionModeFactory.

Parameters:
mode - the unique id of the completion mode

getCompletionMode

CompletionMode getCompletionMode()
Returns the currently set completion mode.


setCompletionModel

void setCompletionModel(CompletionModel model)
Sets the completion model.


getCompletionModel

CompletionModel getCompletionModel()
Returns the currently used completion model.


getTextComponent

javax.swing.text.JTextComponent getTextComponent()
Returns the text component the completion mode should operate on.



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