KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > ipanema > person > edit > PersonDataFieldEditorFactory


1 /*
2  * Created on Mar 20, 2005
3  * by alex
4  *
5  */

6 package com.nightlabs.ipanema.person.edit;
7
8 import com.nightlabs.ipanema.person.AbstractPersonDataField;
9
10 /**
11  * @author Alexander Bieber <alex[AT]nightlabs[DOT]de>
12  *
13  */

14 public interface PersonDataFieldEditorFactory {
15     /**
16      * Should return a subclass of {@link AbstractPersonDataField}
17      * @return
18      */

19     public Class JavaDoc getTargetPersonDataFieldType();
20
21     /**
22      * Should return one static final type from {@link PersonDataFieldEditorFactoryRegistry}.
23      * @return
24      */

25     public String JavaDoc getEditorType();
26
27     /**
28      * Should return a new Instace of the editor for the supplied data.
29      * @param data
30      * @return
31      */

32     public PersonDataFieldEditor createPersonDataFieldEditor(AbstractPersonDataField data, boolean setData);
33
34     
35 }
36
Popular Tags