KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > ipanema > person > search > PersonSearchFilterItemEditorHelper


1 /*
2  * Created on Dec 16, 2004
3  * by alex
4  *
5  */

6 package com.nightlabs.ipanema.person.search;
7
8 import org.eclipse.swt.widgets.Composite;
9 import org.eclipse.swt.widgets.Control;
10
11 import com.nightlabs.jdo.search.SearchFilterItem;
12
13 /**
14  * @author Alexander Bieber <alex[AT]nightlabs[DOT]de>
15  */

16 public interface PersonSearchFilterItemEditorHelper {
17
18     /**
19      * Should return the GUI-representation of this helper.
20      *
21      * @param parent
22      * @return
23      */

24     public Control getControl(Composite parent);
25     
26     /**
27      * Will be called to return results within
28      * {@link com.nightlabs.jdo.search.SearchFilterItemEditor#getSearchFilterItem()}
29      * @return
30      */

31     public SearchFilterItem getSearchFilterItem();
32     
33     /**
34      * Should return a new instance of a PersonSearchFilterItemEditorHelper.
35      * @return
36      */

37     public PersonSearchFilterItemEditorHelper newInstance();
38     
39     /**
40      * Should return a string that can be displayed
41      * within the combo of PersonSearchFilterItemEditor.
42      *
43      * @return
44      */

45     public String JavaDoc getDisplayName();
46     
47     /**
48      * Will be called when the
49      * helper is closed. It should be
50      * used for cleanup (removing listeners),
51      * not for disposing widgets.
52      */

53     public void close();
54     
55     
56 }
57
Popular Tags