com.mucommander.ui.autocomplete.completers.services
Interface CompletionService

All Known Implementing Classes:
AllFilesService, BookmarksService, FilesService, FilteredFilesService, RootFoldersService, SystemVariablesService

public interface CompletionService

CompletionService is used to handle completions according to certain criteria. It defines 2 methods: *

Author:
Arik Hadas

Method Summary
 java.lang.String complete(java.lang.String selectedCompletion)
          If the given completion match one of my suggested completions, return a corresponding path, null otherwise.
 java.util.Vector getPossibleCompletions(java.lang.String path)
          Return a group of suggested completions corresponding to the given path, according to this service's criteria.
 

Method Detail

getPossibleCompletions

java.util.Vector getPossibleCompletions(java.lang.String path)
Return a group of suggested completions corresponding to the given path, according to this service's criteria.

Parameters:
path - - a path.
Returns:
Vector of possible completions.

complete

java.lang.String complete(java.lang.String selectedCompletion)
If the given completion match one of my suggested completions, return a corresponding path, null otherwise.

Parameters:
selectedCompletion - - string that represent a completion.
Returns:
a path if the given completion was suggested by this service, null otherwise.


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