01: package org.columba.core.context.api;
02:
03: import javax.swing.ImageIcon;
04: import javax.swing.JComponent;
05:
06: import org.columba.api.gui.frame.IFrameMediator;
07: import org.columba.api.plugin.IExtensionInterface;
08: import org.columba.core.context.semantic.api.ISemanticContext;
09:
10: public interface IContextProvider extends IExtensionInterface {
11:
12: /**
13: * Returns technical name. Should be unique.
14: * @return
15: */
16: public String getTechnicalName();
17:
18: /**
19: * Return provider human-readable name
20: * @return
21: */
22: public String getName();
23:
24: /**
25: * Return provider human-readable description
26: * @return
27: */
28: public String getDescription();
29:
30: /**
31: * Return provider icon
32: * @return
33: */
34: public ImageIcon getIcon();
35:
36: /**
37: * Return total number of search results. Method only returns valid result after calling
38: * <code>query</code> first.
39: *
40: * @return total number of search results. <code>-1</code>, in case <code>query</code> was not called, yet
41: */
42: public int getTotalResultCount();
43:
44: public void search(ISemanticContext context, int startIndex,
45: int resultCount);
46:
47: public void showResult();
48:
49: public void clear();
50:
51: public JComponent getView();
52:
53: public boolean isEnabledShowMoreLink();
54:
55: public void showMoreResults(IFrameMediator mediator);
56:
57: }
|