com.mucommander.ui.autocomplete.completers
Class LocationCompleter

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

public class LocationCompleter
extends Completer

LocationCompleter is a Completer based on locations, meaning root folders, browsable file paths, bookmarks and system variables.

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

Constructor Summary
LocationCompleter()
           
 
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

LocationCompleter

public LocationCompleter()
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