com.mucommander.ui.autocomplete.completers
Class PathCompleter

java.lang.Object
  extended by com.mucommander.ui.autocomplete.completers.Completer
      extended by com.mucommander.ui.autocomplete.completers.PathCompleter

public class PathCompleter
extends Completer

FileCompleter is a Completer based on root folders and file paths.

Author:
Arik Hadas, based on the code of Santhosh Kumar: http://www.jroller.com/santhosh/entry/file_path_autocompletion

Constructor Summary
PathCompleter()
           
 
Method Summary
protected  java.util.Vector getUpdatedSuggestions(AutocompleterTextComponent component)
          This function gets an AutocompleterTextComponent and returns a Vector of suggestions for completion, for the component's value.
 void updateTextComponent(java.lang.String selected, AutocompleterTextComponent comp)
          update text component according to the given string.
 
Methods inherited from class com.mucommander.ui.autocomplete.completers.Completer
getPossibleCompletionsFromServices, registerService, tryToCompleteFromServices, updateListData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathCompleter

public PathCompleter()
Method Detail

getUpdatedSuggestions

protected java.util.Vector getUpdatedSuggestions(AutocompleterTextComponent component)
Description copied from class: Completer
This function gets an AutocompleterTextComponent and returns a Vector of suggestions for completion, for the component's value.

Specified by:
getUpdatedSuggestions in class Completer
Parameters:
component - - an AutocompleterTextComponent.
Returns:
Vector of suggestions for completion.

updateTextComponent

public void updateTextComponent(java.lang.String selected,
                                AutocompleterTextComponent comp)
Description copied from class: Completer
update text component according to the given string.

Specified by:
updateTextComponent in class Completer
Parameters:
selected - - selected item from auto-completion popup list.
comp - - text component.


This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard