KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > designer > model > DesignComponent


1 /*
2  * (c) Rob Gordon 2005.
3  */

4 package org.oddjob.designer.model;
5
6 import org.oddjob.designer.factory.SimpleHierarchy;
7
8 /**
9  * A DesignComponent provides the configuration for a job.
10  *
11  *
12  */

13 public interface DesignComponent {
14
15     public abstract FormDefinition form();
16     
17     /**
18      * Used to name the component in the Designer tree view. This is not
19      * a getter because the name would appear in the XML where it may not
20      * be a required attribute.
21      *
22      * @return The tag name.
23      */

24     public abstract String JavaDoc name();
25
26     /**
27      * Used by the DesignFactory to provide the component with a default name.
28      *
29      * @param name The name
30      */

31     public abstract void name(String JavaDoc name);
32     
33     /**
34      * Required for producing the XML.
35      *
36      * @return The tag name.
37      */

38     public abstract String JavaDoc tag();
39     
40     /**
41      * Used by the DesignFactory to provide the component with it's tag.
42      *
43      * @param tag The tag.
44      */

45     public abstract void tag(String JavaDoc tag);
46     
47     public SimpleHierarchy availableActions();
48 }
49
Popular Tags