com.mucommander.ui.autocomplete.completers.services
Class BookmarksService

java.lang.Object
  extended by com.mucommander.ui.autocomplete.completers.services.BookmarksService
All Implemented Interfaces:
BookmarkListener, CompletionService

public class BookmarksService
extends java.lang.Object
implements CompletionService, BookmarkListener

This CompletionService handles bookmarks completion.

Author:
Arik Hadas

Constructor Summary
BookmarksService()
           
 
Method Summary
 void bookmarksChanged()
          This method is invoked when a bookmark has been added, removed or modified.
 java.lang.String complete(java.lang.String selectedCompletion)
          If the given completion match one of my suggested completions, return a corresponding path, null otherwise.
protected  void fetchBookmarks()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BookmarksService

public BookmarksService()
Method Detail

getPossibleCompletions

public java.util.Vector getPossibleCompletions(java.lang.String path)
Description copied from interface: CompletionService
Return a group of suggested completions corresponding to the given path, according to this service's criteria.

Specified by:
getPossibleCompletions in interface CompletionService
Parameters:
path - - a path.
Returns:
Vector of possible completions.

complete

public java.lang.String complete(java.lang.String selectedCompletion)
Description copied from interface: CompletionService
If the given completion match one of my suggested completions, return a corresponding path, null otherwise.

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

fetchBookmarks

protected void fetchBookmarks()

bookmarksChanged

public void bookmarksChanged()
Description copied from interface: BookmarkListener
This method is invoked when a bookmark has been added, removed or modified.

Specified by:
bookmarksChanged in interface BookmarkListener


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