KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jdesktop > swing > form > ComponentCreator


1 /*
2  * $Id: ComponentCreator.java,v 1.2 2005/02/07 12:53:22 kleopatra Exp $
3  *
4  * Copyright 2004 Sun Microsystems, Inc., 4150 Network Circle,
5  * Santa Clara, California 95054, U.S.A. All rights reserved.
6  */

7 package org.jdesktop.swing.form;
8
9 import javax.swing.JComponent JavaDoc;
10
11 import org.jdesktop.swing.data.MetaData;
12
13 /**
14  * Responsible for creating a "fitting" component
15  * for the metaData.
16  *
17  * @author Jeanette Winzenburg
18  */

19 public interface ComponentCreator {
20
21   /**
22    * creates and returns a JComponent based on metaData.
23    *
24    * @param metaData
25    * @return
26    * @throws NullPointerException if metaData == null
27    */

28   public JComponent JavaDoc createComponent(MetaData metaData);
29 }
30
Popular Tags