KickJava   Java API By Example, From Geeks To Geeks.

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


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

4 package org.oddjob.designer.model;
5
6 /**
7  * Defines the interface for a model that allows a visual configuration
8  * to be presented for DesignElements.
9  */

10 public interface DesignDefinition {
11
12     /**
13      * The title will either be the title for a field or the title round a
14      * group or the title on a dialog depending on how the visual component
15      * is presented.
16      *
17      * @return The title.
18      */

19     public String JavaDoc getTitle();
20     
21     /**
22      * Visitor pattern. Implementations will call the appropriate method
23      * on the processor passing themselves as the argument.
24      *
25      * @param processor A design processor which will typically produce
26      * visual components for the model.
27      */

28     public void accept(DesignProcessor processor);
29     
30     /**
31      * Used by certain summary views to indicate that there is more
32      * detail.
33      *
34      * @return true if the model has some data, false if it doesn't.
35      */

36     public boolean isPopulated();
37 }
38
Popular Tags