|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.ui.autocomplete.completers.Completer
public abstract class Completer
Interface that each type of completion must implement. It defines 2 methods: *
| Constructor Summary | |
|---|---|
Completer()
|
|
| Method Summary | |
|---|---|
protected java.util.Vector |
getPossibleCompletionsFromServices(java.lang.String path)
Gather the possible completions for the given path from all the services registered to this completer. |
protected abstract java.util.Vector |
getUpdatedSuggestions(AutocompleterTextComponent component)
This function gets an AutocompleterTextComponent and returns a Vector of suggestions for completion, for the component's value. |
protected void |
registerService(CompletionService service)
Add service to this completer. |
protected java.lang.String |
tryToCompleteFromServices(java.lang.String selectedString)
Given the selected string (from the auto-completion's list), try to get a completion from the registered services. |
boolean |
updateListData(javax.swing.JList list,
AutocompleterTextComponent comp)
update list model depending on the data in text component |
abstract void |
updateTextComponent(java.lang.String selected,
AutocompleterTextComponent comp)
update text component according to the given string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Completer()
| Method Detail |
|---|
protected abstract java.util.Vector getUpdatedSuggestions(AutocompleterTextComponent component)
component - - an AutocompleterTextComponent.
public boolean updateListData(javax.swing.JList list,
AutocompleterTextComponent comp)
list - - auto-completion popup's list that should be updated.comp - - text component
public abstract void updateTextComponent(java.lang.String selected,
AutocompleterTextComponent comp)
selected - - selected item from auto-completion popup list.comp - - text component.protected void registerService(CompletionService service)
tryToCompleteFromServices.
- Parameters:
service - - Service to be added.
protected java.util.Vector getPossibleCompletionsFromServices(java.lang.String path)
path - - The path to be completed.
protected java.lang.String tryToCompleteFromServices(java.lang.String selectedString)
selectedString - - selected string (from the auto-completion's list).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard